Incoming and Outgoing Interface |
Prev | Filtering and Manipulation of Packets | Next |
iptables -A INPUT --in-interface eth0 -j LOG
Name of an interface via which a packet is going to be received (only for packets entering the INPUT, FORWARD and PREROUTING chains). When the "!" argument is used before the interface name, the sense is inverted. If the interface name ends in a "+", then any interface which begins with this name will match. If this option is omitted, any interface name will match.
iptables -A OUTPUT --out-interface ! ippp1 -j DROP
Name of an interface via which a packet is going to be sent (for packets entering the FORWARD, OUTPUT and POSTROUTING chains). When the "!" argument is used before the interface name, the sense is inverted. If the interface name ends in a "+", then any interface which begins with this name will match. If this option is omitted, any interface name will match.
Prev | Home | Next |
Checking for the protocol | Up | Source MAC |