Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: iptables - drop ESTABLISHED connection |
|---|---|
| Date: | Tue, 6 Sep 2005 09:04:47 +1200 |
I don't think you can use iptables to kill a connection with a fin or rst. You could start dropping the connection once it's there by putting an explicit drop rule in the forward table, but then you'd need to take it out again. There's a whole discussion on this topic at http://www.lowth.com/cutter/"TCP/IP Connection cutting on Linux Firewalls and Routers" On 9/1/05, roderick tapang <retapang@gmail.com> wrote:
hi, forgive me if this is OT for this list. :) i've been struggling for this since yesterday: how do i disconnect an ESTABLISHED connection (say an ssh session) using iptables? here's from ip_conntrack: tcp 6 431998 ESTABLISHED src=172.23.8.38 <http://172.23.8.38> dst= 172.23.229.200 <http://172.23.229.200> sport=41824 dport=22 packets=10 bytes=856 src=172.23.229.200<http://172.23.229.200> dst=172.23.8.38 <http://172.23.8.38> sport=22 dport=41824 packets=7 bytes=700 [ASSURED] use=1 i can do this: netstat -patun | grep 172.23.8.38 <http://172.23.8.38> and then kill the PID. but i need a *graceful* way of doing it. its in the PREROUTING is it possible to send a FIN packet to that connection? or an RST maybe (which has the shortest timeout). tia. erik -- roderick e. tapang, nclp retapang at gmail dot com (o_.' http://counter.li.org/ //\ ---------------------- V_/_ Linux User # 253842
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Cisco PIX VPN Client issue, Hodgson, Tim |
|---|---|
| Next by Date: | Re: iptables - drop ESTABLISHED connection, Brendan Murray |
| Previous by Thread: | Re: iptables - drop ESTABLISHED connection, Chris . McGinley |
| Next by Thread: | Re: iptables - drop ESTABLISHED connection, Brendan Murray |
| Indexes: | [Date] [Thread] [Top] [All Lists] |