> iptables --table nat --append POSTROUTING --out-interface wlan -j MASQUERADE > iptables --append FORWARD --in-interface eth0 -j ACCEPT > echo 1 > /proc/sys/net/ipv4/ip_forward
This require that my "old" computer have access (same network domain), to my laptop and set its gateway to its eth0 ip adress.
> ifconfig eth0 inet 192.168.1.34 > route add default gw 192.168.1.35
finally, DNS is also configured.
Aucun commentaire:
Enregistrer un commentaire