This is an old revision of the document!


Routing traffic between two networks with iptables

# sysctl -w net.ipv4.conf.all.forwarding=1
# iptables -I FORWARD -i eth0 -o wlan0 -s wi.red.net.work/24 -d wire.less.net.work/24 -j ACCEPT
# iptables -I FORWARD -i wlan0 -o eth0 -s wire.less.net.work/24 -d wi.red.net.work/24 -j ACCEPT

References