I am trying to use iptables to reject packets as well as reset the TCP connection. My rule is:
iptables -I FORWARD -p tcp -s 10.0.0.10 -j REJECT --reject-with tcp-reset
If 10.0.0.10 is SSH'ing into 172.16.50.1 and we run the above rule then the session will drop. However, if say we do the above rule and then for whatever reason we delete it then the SSH session will keep working.
How do I tell iptables to kill the current session?
I tried using: http://www.digitage.co.uk/cutter but for some reason it keeps thinking the sessions I am trying to kill are local connections.