-o in iptables is for specifying the interface for OUTPUT, FORWARD, and POSTROUTING Correct?
yep, man page debian;
[!] -o, --out-interface name
Name of an interface via which a packet is going to be sent (for packets entering the FORWARD, OUTPUT and POSTROUTING chains). When the "!" argument is used before the
interface name, the sense is inverted. If the interface name ends in a "+", then any interface which begins with this name will match. If this option is omitted, any
interface name will match.
Related videos on Youtube
leeand00
Projects jobdb - Creator of Open Source Job Search Document Creator/Tracker http://i9.photobucket.com/albums/a58/Maskkkk/c64nMe.jpg Received my first computer (see above) at the age of 3, wrote my first program at the age of 7. Been hooked on programming ever since.
Updated on September 18, 2022Comments
-
leeand00 over 1 year
Reading in detail about iptables / netfilter here, when I read about the
-o
argument:"Indicates the interface through which the outgoing packets are sent through the INPUT, FORWARD, and PREROUTING chain."
This seems to me to be wrong as they have written the same thing for the
-i
argument.It seems to me it should instead be:
"Indicates the interface through which the outgoing packets are sent through the OUTPUT, FORWARD, and POSTROUTING chain."
correct?