Re: physical vs. logical network interfaces



stf a écrit :

On tcpdump level they are on "eth1", while on iptables level it is already "eth0".

Oops I skipped this part, replying now.
Both tcpdump and netfilter/iptables see the packets coming from the interface they actually come from, i.e. eth1.

The iptables ruleset may contain rules filtering source|destination addresses that don't match the outgoing|incoming interface, such as :

iptables -A INPUT -i eth1 -d ! $eth1_addr -j DROP
iptables -A OUTPUT -o eth1 -s ! $eth1_addr -j DROP
.



Relevant Pages

  • Re: A weird routing question.
    ... , and whichever the incoming interface, ... interface in respect to the current routing policy. ... like to do a special treatment on packets incoming via eth0 and whose ... be re-emitted through eth1. ...
    (comp.os.linux.networking)
  • A weird routing question.
    ... , and whichever the incoming interface, ... interface in respect to the current routing policy. ... like to do a special treatment on packets incoming via eth0 and whose ... be re-emitted through eth1. ...
    (comp.os.linux.networking)
  • Re: A weird routing question.
    ... interface in respect to the current routing policy. ... like to do a special treatment on packets incoming via eth0 and whose ... output via interface eth1. ...
    (comp.os.linux.networking)
  • Re: Port Mirroring in Linux
    ... looks at its table's entry and says that packets with the mac 'Mi' ... must be forwarding to interface X.Bridge does flooding,learning and ... interface X must be given to another interface Y. ... You mean having something like an interface "eth1" which has all the ...
    (comp.os.linux.networking)
  • Re: Wireless interface stopped working in Etch
    ... The rt2500 modules seem identical on the working system and the fresh install. ... I have begun again with a new fresh install, so the wireless interface has been autmatically named 'eth1'. ...
    (Debian-User)