Using iptables to block ALL outgoing traffic from one NIC?
- by edanfalls
Hi,
I must pretty bad at Googling as this seems like a very basic question but I can't seem to find the answer anywhere... and man iptables is a very long read!
I have two NICs - eth0 and eth1 - on a linux box and I want to block ALL outbound traffic (TCP and UDP across all ports) from one of the NICs, so that no traffic makes its way back up to the router.
What is the command for this? I have only seen examples with specific ports.
Thanks in advance.