Answer the question
In order to leave comments, you need to log in
How to specify multiple interfaces for an iptables rule?
Tell me, is it possible to specify several interfaces for a rule? For example:
iptables -A FORWARD -i eth0,eth1 -o eth2 -j ACCEPT
And if possible, how to separate? Through space, comma, slash?
Answer the question
In order to leave comments, you need to log in
You can do this and not list anything
iptables -A FORWARD -i eth0 -o eth2 -j ACCEPT
iptables -A FORWARD -i eth1 -o eth2 -j ACCEPT
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question