Blocking ICMP outgoing requests only in eth1
Posted
by
Raj
on Server Fault
See other posts from Server Fault
or by Raj
Published on 2012-10-28T22:12:08Z
Indexed on
2012/10/28
23:05 UTC
Read the original article
Hit count: 311
I am creating a NAT with iptables:
Computer A: eth0 (dhcp) + eth1 (static ip 192.168.0.1 - gateway) Computer B: eth1 (static ip 192.168.0.2, using Computer A as gateway)
I know how to block ICMP outgoing requests (-A OUTPUT -p icmp --icmp-type echo-request -j DROP), but that would block ICMP requests from Computer A, but not from Computer B (in fact, only for Computer A - Computer B can keep doing those).
I tried with the same command, but adding -o eth1, but that does not block at all. Any idea?
© Server Fault or respective owner