I made "iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE" in a terminal in the netbook.
"route -n" on the netbook gave
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
10.64.64.64 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
127.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 lo
So, I was thinking about using 10.64.64.64 instead of 1.2.3.4.
I made "route add default gw 10.64.64.64" in the netbook
Then now, "route -n" gives
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.64.64.64 0.0.0.0 UG 0 0 0 ppp0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
10.64.64.64 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
127.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 lo
When I connect the PC to the netbook via LAN, the PC see a LAN connection (eth0).
But "ping -c 4
www.google.de" in a PC terminal says "bad address"
Perhaps it is a question of resolv.conf?
The content of it in the PC is:
search fritz.box
nameserver 192.168.178.1
I doubt the content is correct. Which content it should be?