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:
ifconfig eth0 192.168.2.3 route add default gateway 192.168.2.2 nameserver 184.108.40.206 > resolv.conf
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.101 is the wlan0 IP address. I can't ping 192.168.2.2 (connect: Network is unreachable) and the connection doesn't seem to be working anymore on the notebook.