iptables
Table of Contents
filter table
allow forward for specific in/out interface:
iptables -I FORWARD --in-interface <name> --out-interface <name> -j ACCEPT
mangle table
mark packet:
iptables -t mangle -I PREROUTING --in-interface <name> -j MARK --set-mark 0x10086
nat table
postrouting masquerade:
iptables -t nat -I POSTROUTING --out-interface <name> -j MASQUERADE --match <value>
prerouting masquerade:
iptables -t nat -I PREROUTING --in-interface <name> -j MASQUERADE --match <value>
iptables.txt · Last modified: by 2406:da18:864:f101:4d58:28e8:644:2ed5
