This is a discussion on Iptables rules for eth0 and eth0:1 within the Linux Security forums, part of the System Security and Security Related category; Can I specify in-interface and out-interface for virtual interfaces (configured eth0 and eth0:1)? Or in other words, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Can I specify in-interface and out-interface for virtual interfaces
(configured eth0 and eth0:1)? Or in other words, is it possible in iptables to set rules as iptables -i eth0 -o eth0:1 (Does it differentiate between eth0 and eth0:1?) Nirnimesh |
|
|||
|
Nirnimesh wrote:
> > Can I specify in-interface and out-interface for virtual interfaces > (configured eth0 and eth0:1)? Or in other words, is it possible in > iptables to set rules as iptables -i eth0 -o eth0:1 > (Does it differentiate between eth0 and eth0:1?) I don't think that is possible. You could specify -i eth0 -o eth0 and specify the source and destination IP ranges as well. -- Kasper Dupont |