Using the Wifi of a notebook via ethernet for another PC

view full story

http://unix.stackexchange.com – I want to connect a PC to the internet via my notebook, which is connected to a WLAN. The setup should look like the following scheme: PC (eth0) -> Notebook (eth0) -> Notebook(wlan0) -> Router. Both are running linux - arch on the notebook and funtoo on the PC. Edit: So I tried rush's method and it didn't work for me, here is what I did: PC: ifconfig eth0 route add default gateway nameserver > resolv.conf Notebook: echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o wlan0 -j SNAT --to-source (HowTos)