On 2/13/07, Jan Pechanec <[EMAIL PROTECTED]> wrote:
On Tue, 13 Feb 2007, Nicolas Williams wrote:

># route add -blackhole <server IP> ...

        I tried that but I found out that it wasn't working the way I
expected:

root:andal:amd64:~# route add -blackhole 1.2.3.4 127.0.0.1
add host 1.2.3.4: gateway 127.0.0.1
root:andal:amd64:~# time telnet 1.2.3.4
Trying 1.2.3.4...
telnet: Unable to connect to remote host: Network is unreachable

real    0m0.005s
user    0m0.001s
sys     0m0.003s

ipf maybe?  Something like:

block out quick on if0 proto tcp from any to 1.2.3.4 port = 23

should do it.

--
Eric Enright
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to