Quote:
Originally Posted by schnappi
Code:
-A INPUT -i lo -p tcp --dport 80 --dport 443 -j ACCEPT
Wondering if can include two ports in the same rule and if an interface (-i lo) can be specified in addition to a protocol (-p tcp).
|
Not that way, but that's exactly what "--dports" does.
Code:
-A INPUT -i lo -p tcp -m multiport --dports 80,443 -j ACCEPT
You have to specify the "multiport" module to make "--dports" available.