Working my way through understanding Linux.
I still consider myself a newbie. I recently installed a 10.04 server with LAMP and others on it. I wish to get it surfing the net: apt-get update and install webmin.
My setup: Ubuntu 10.04 PC Ubuntu 10.04 SERVER
PC connects to www through WiFi:
Kernel IP routing table Destination Gateway Genmask Flags Iface 10.0.0.0 * 255.255.255.0 U wlan0 192.168.122.0 * 255.255.255.0 U eth0 link-local * 255.255.0.0 U eth0
eth0 Link encap:Ethernet HWaddr 6c:f0:49:c1:20:48 inet addr:192.168.122.100 Bcast:192.168.122.255 Mask:255.255.255.0 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host wlan0 Link encap:Ethernet HWaddr 00:1f:1f:3c:f5:37 inet addr:10.0.0.4 Bcast:10.0.0.255 Mask:255.255.255.0
Destination Gateway Genmask Flags Iface 192.168.122.0 * 255.255.255.0 U eth0 default 192.168.122.100 0.0.0.0 UG eth0
When I ping from server:
ping 10.0.0.4 - GOOD ping 192.168.122.100 - GOOD ping -b 192.168.122.253 OR 0 - GOOD
I have defined Gateway as
What am I doing wrong? Does anyone have any idea how to get the server to get to the Internet through the PC? They see each other, the server sees the ip given by the WWW router to the PC but he does not exit through it.
I did some experimenting here trying to replace the gateway with all sorts but with no luck.
up route add -net 10.0.0.0 netmask 255.255.255.0 gw 192.168.122.253 (=router static ip)
How to fix this?