5

Using the Wifi of a notebook via ethernet for another PC

view full story
linux-howto

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 192.168.2.3 route add default gateway 192.168.2.2 nameserver 8.8.8.8 > resolv.conf Notebook: echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o wlan0 -j SNAT --to-source 192.168.2.101 192.168.2.10 (HowTos)