/proc/sys/net/ipv4/ip_forward iptables --table nat --append POSTROUTING --out-interface $eth1 -j MASQUERADE (1) iptables --append FORWARD --in-interface $eth0 -j ACCEPT (2) 1 Network interface connected to internet 2 Network interface connected to local machines">

Grimoire-Command.es

GNU+Linux command memo

Internet access point

Faire une passerelle vers le net

echo "1" > /proc/sys/net/ipv4/ip_forward
iptables --table nat --append POSTROUTING --out-interface $eth1 -j MASQUERADE (1)
iptables --append FORWARD --in-interface $eth0 -j ACCEPT (2)
1 Network interface connected to internet
2 Network interface connected to local machines