Back again with yet another networking question
(Sorry if this is in the wrong location, is a bit of a mix between linux, and networking)
This time there is the setup
I have a linux router, doing portforwarding using IPtables.
External client logs into internal server using ssh on routers external IP
What im looking for is a graceful way to close the connection
Not block it, just close it.
Currently I am adding a forward drop to the top of the tables list, and that breaks the connection, but it doesn't drop it properly, and as soon as I remove the rule, the connection just pops back up
What im wanting is for when I drop the connection, the client drops properly and has to re connect to the server, rather than just auto connecting
(If that makes any sense?)
And yes I know there is a timeout, (putty will timeout if no connection is made within a certain time), but I want it to work for everything, even if the timeout isn't set on the client side
Thanks again for any help, and fingers crossed there is a good way of doing this