Skip to contentSkip to conversation

-m physdev

DISCUSSION bend chen 2 participants 2 messages Jun 26, 2005 – Jun 27, 2005

lore
Share & tools
lore

bend chen

author
#0 lore raw

hi,netfilter

who can give me some examples from "iptables -m physdev"?

thanks your help

����������������

#1 lore raw
Quoted 9 lines · bend chen

hi,netfilter

who can give me some examples from "iptables -m physdev"?

thanks your help

����������������

You need it to check the INPUT and OUTPUT Pyshical Interface for a BRIDGE you want to filter with Iptables.

I mean, if you have an eth0 and eth1 bridged in a br0 interface all the packets coming and exiting to and from the bridge will result with IN-INTERFACE and OUT-INTERFACE as br0. If you need to filter the packets based on incoming and outcoming interfaces you need to use -m physdev

iptables -A FORWARD -m physdev --physdev-in eth0 -j ACCEPT

bye
P.