* Drop the Current Established Connections
@ 2005-06-01 6:28 bright true
2005-06-01 16:17 ` Taylor, Grant
2005-06-06 20:19 ` R. DuFresne
0 siblings, 2 replies; 3+ messages in thread
From: bright true @ 2005-06-01 6:28 UTC (permalink / raw)
To: netfilter
Hello ,
i want to know the right way of blocking an ip and drop the current Established
connections from that ip
Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Drop the Current Established Connections
2005-06-01 6:28 Drop the Current Established Connections bright true
@ 2005-06-01 16:17 ` Taylor, Grant
2005-06-06 20:19 ` R. DuFresne
1 sibling, 0 replies; 3+ messages in thread
From: Taylor, Grant @ 2005-06-01 16:17 UTC (permalink / raw)
To: netfilter
iptables -t filter -I INPUT -s ${IPAddress} -j DROP
#iptables -t filter -I INPUT -d ${IPAddress} -j DROP
iptables -t filter -I FORWARD -s ${IPAddress} -j DROP
iptables -t filter -I FORWARD -d ${IPAddress} -j DROP
#iptables -t filter -I OUTPUT -s ${IPAddress} -j DROP
iptables -t filter -I OUTPUT -d ${IPAddress} -j DROP
This should rather abruptly take care of it for you. The two lines that I commented out should arguable not be needed but I put them there just in case and to serve as a reminder.
Grant. . . .
bright true wrote:
> Hello ,
>
> i want to know the right way of blocking an ip and drop the current Established
>
> connections from that ip
>
> Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Drop the Current Established Connections
2005-06-01 6:28 Drop the Current Established Connections bright true
2005-06-01 16:17 ` Taylor, Grant
@ 2005-06-06 20:19 ` R. DuFresne
1 sibling, 0 replies; 3+ messages in thread
From: R. DuFresne @ 2005-06-06 20:19 UTC (permalink / raw)
To: bright true; +Cc: netfilter
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 31 May 2005, bright true wrote:
> Hello ,
>
> i want to know the right way of blocking an ip and drop the current Established
>
> connections from that ip
>
The best way is to not allow the connections to become Established, deny
the syn.
Thanks,
Ron DuFresne
- --
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
admin & senior security consultant: sysinfo.com
http://sysinfo.com
Key fingerprint = 9401 4B13 B918 164C 647A E838 B2DF AFCC 94B0 6629
...We waste time looking for the perfect lover
instead of creating the perfect love.
-Tom Robbins <Still Life With Woodpecker>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFCpK+6st+vzJSwZikRAgBHAKCMn+XtEd3Z/K0Hn6gnlG7QQcHTUACeNXvC
qjfMFtBDD5TevOzrcvt+qAE=
=Kjsm
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-06-06 20:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-01 6:28 Drop the Current Established Connections bright true
2005-06-01 16:17 ` Taylor, Grant
2005-06-06 20:19 ` R. DuFresne
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.