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:53:23 +0800 |
hi, I don't think iptables is the one to do this kind of active kill of established connection, what you need is a packet crafting tool, such as hping to craft a packets with RST or FIN set as you have mentioned. Alternatively you may look at IPS tools such as snort-inline although this is a bit overkill. regards, Rick Zhong Liming ==================================================== Welcome to SINgapore <IN>FOSECurity Interest Group at: www.sinfosec.org <http://www.sinfosec.org> 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: | Re: iptables - drop ESTABLISHED connection, Brendan Murray |
|---|---|
| Next by Date: | Re: Problem with Contivit y and Certificates from Verisign, Rodrigo Blanco |
| Previous by Thread: | Re: iptables - drop ESTABLISHED connection, Brendan Murray |
| Next by Thread: | Re: iptables - drop ESTABLISHED connection, Lupu Alex |
| Indexes: | [Date] [Thread] [Top] [All Lists] |