====== filter table ====== allow forward for specific in/out interface: iptables -I FORWARD --in-interface --out-interface -j ACCEPT ====== mangle table ====== mark packet: iptables -t mangle -I PREROUTING --in-interface -j MARK --set-mark 0x10086 ====== nat table ====== postrouting masquerade: iptables -t nat -I POSTROUTING --out-interface -j MASQUERADE --match prerouting masquerade: iptables -t nat -I PREROUTING --in-interface -j MASQUERADE --match