Hello.
I have two machines, slick and swift. They communicate over a WIFI link
(both are set in Ad-Hoc mode), using addresses 192.168.1.3 for swift and
192.168.1.4 for slick. I can ssh from one to the other without trouble.
swift is connected to the internet through an ethernet cable to a DSL modem.
I'd like it to act as a router for slick.
I have installed and started dnsmaq on swift, which acts as a DNS server for
slick (this works).
However, I can't ping google.com from slick. It is served an IP, but can't
reach its destination:
fab@slick:~$ ping google.com
PING google.com (64.233.187.99) 56(84) bytes of data.
From swift.airforce-one.org (192.168.1.3): icmp_seq=1 Redirect Host(New nexthop: 192.168.1.254)
From swift.airforce-one.org (192.168.1.3): icmp_seq=2 Redirect Host(New nexthop: 192.168.1.254)
From swift.airforce-one.org (192.168.1.3): icmp_seq=3 Redirect Host(New nexthop: 192.168.1.254)
From swift.airforce-one.org (192.168.1.3) icmp_seq=1 Destination Host Unreachable
From swift.airforce-one.org (192.168.1.3) icmp_seq=2 Destination Host Unreachable
From swift.airforce-one.org (192.168.1.3) icmp_seq=3 Destination Host Unreachable
From swift.airforce-one.org (192.168.1.3): icmp_seq=4 Redirect Host(New nexthop: 192.168.1.254)
From swift.airforce-one.org (192.168.1.3): icmp_seq=5 Redirect Host(New nexthop: 192.168.1.254)
From swift.airforce-one.org (192.168.1.3): icmp_seq=6 Redirect Host(New nexthop: 192.168.1.254)
From swift.airforce-one.org (192.168.1.3) icmp_seq=5 Destination Host Unreachable
From swift.airforce-one.org (192.168.1.3) icmp_seq=6 Destination Host Unreachable
From swift.airforce-one.org (192.168.1.3) icmp_seq=7 Destination Host Unreachable
From swift.airforce-one.org (192.168.1.3): icmp_seq=8 Redirect Host(New nexthop: 192.168.1.254)
--- google.com ping statistics ---
9 packets transmitted, 0 received, +6 errors, 100% packet loss, time 8010ms
, pipe 3
Here is slick's routing table:
root@slick:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.1.254 0.0.0.0 UG 0 0 0 wlan0
default swift.airforce- 0.0.0.0 UG 0 0 0 wlan0
and here is swift's routing table:
root@swift:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
82.230.24.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 ath0
default 192.168.1.254 0.0.0.0 UG 0 0 0 ath0
default 82.230.24.254 0.0.0.0 UG 0 0 0 eth0
Any help? Thanks!
--
Fabrice DELENTE
|