problem configuring a gateway

Ouattara Oumar Aziz wattazoum at gmail.com
Wed Mar 14 11:11:20 UTC 2007


Hi,

For a year of using vmware on ubuntu I never had a problem this though.
I tend to believe it's an ubuntu bug :s .

My computer is connected to the web by a modem. So I use it as a gateway
 for my VMs.

I am connected to the internet on my computer . My VMs are on a local
network and My computer is a gateway/firewall for that local network.

I can ping my gateway from the local network (I can even share some
files ) . But I can't ping google.com from the local network.

After I listen to the networking interface of my gateway, I realized the
ping packets goes through but the response from google never comes. So I
believe the problem is not on my firewal setting, since I should have
been able to see the DROP/REJECT of the packet. Then I think the only
option left is that, when the ping packet goes to google, it misses some
informations :( .




On my computer (up-to-date Ubuntu EDGY)
**********

# cat /proc/sys/net/ipv4/ip_forward
1

~$ ifconfig

eth1      Lien encap:Ethernet  HWaddr 00:0C:76:1C:A2:C3
          inet adr:82.242.110.34  Bcast:82.242.110.255  Masque:255.255.255.0
          adr inet6: fe80::20c:76ff:fe1c:a2c3/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:4078 erreurs:0 :0 overruns:0 frame:0
          TX packets:5495 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          Octets reçus:2430502 (2.3 MiB) Octets transmis:492035 (480.5 KiB)
          Interruption:185 Adresse de base:0xdc00


vmnet1    Lien encap:Ethernet  HWaddr 00:50:56:C0:00:01
          inet adr:192.168.99.1  Bcast:192.168.99.255  Masque:255.255.255.0
          adr inet6: fe80::250:56ff:fec0:1/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:1564 erreurs:0 :0 overruns:0 frame:0
          TX packets:137 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          Octets reçus:0 (0.0 b) Octets transmis:0 (0.0 b)


:~# route
Table de routage IP du noyau
Destination     Passerelle      Genmask       Indic Metric Ref Use Iface
10.10.0.2       *               255.255.255.255 UH    0      0  0 tun0
82.242.110.0    *               255.255.255.0   U     0      0  0 eth1
172.16.128.0    *               255.255.255.0   U     0      0  0 vmnet8
192.168.2.0     *               255.255.255.0   U     0      0  0 eth0
10.10.0.0       10.10.0.2       255.255.255.0   UG    0      0  0 tun0
192.168.99.0    *               255.255.255.0   U     0      0  0 vmnet1
default         82.242.110.254  0.0.0.0         UG    0      0  0 eth1

vmnet1 is my VMs network card ( consider it like a network card for my
local network). Naturally my computer is connected to the web .

On The local network
***********

~$ route
Table de routage IP du noyau
Destination     Passerelle      Genmask       Indic Metric Ref Use Iface
192.168.99.0       *          255.255.255.0   U    0      0  0 eth0
default         192.168.99.1  0.0.0.0         UG   0      0  0 eth0





More information about the ubuntu-users mailing list