Quote:
Originally Posted by Cyberman
Code:
PING google.com (72.14.207.99) 56(84) bytes of data.
PING 192.168.0.3 imcp_seq=2 Destination Host Unreachable
PING 192.168.0.3 imcp_seq=2 Destination Host Unreachable
PING 192.168.0.3 imcp_seq=2 Destination Host Unreachable
--- google.com ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3000ms, pipe3
|
My interpretation of that is:
- Debian successfully did a DNS resolution of goggle.com to 72.14.207.99
- Debian then tried to to ping 72.14.207.99 and was told by Ubuntu that the host was unreachable.
Interpreting this is where I am not certain. My experience is if there is no entry in the routing table the message is something like "no route to destination." My recollection is that I've seen "Destination Host Unreachable" on a LAN when the forwarding computer can't get any response when it tries ARP (address resolution protocol) to determine the host's MAC address (for example, if the computer is off). I am not too sure what it would mean when the host is not on the LAN.
I do have some questions and and observations ...
It looks to me like the script is a combination of things you need to do once (such as install/configure packages and change configuration files), and things you need to do at every boot (like the
iptables commands). So is this a script you only ran once? And if so did you make any provisions for the results of those commands being persistent across reboots? (I am not sure about Debian, but on some distros, if you send the output of
iptables-save to a particular file at a particular location, then the existing rules will be re-established on every boot. If you have a script called /etc/init.d/iptables, it may give you some clues about this.)
If my first question doesn't lead to understanding this difficulty it might be useful to use a packet sniffer such as
wireshark or
tcpdump on the Ubuntu machine to see what, if anything, is going out and coming back from your Internet connection. (Edit: Look in particular for any inappropriate ARP packets -- for example asking "who has 72.14.207.99" -- or type 3 icmp messages coming from further upstream.)
Normally, setting the default route (gateway) is handled automatically by DHCP (so you wouldn't need to do it with a
route or
ip command), although things can be configured where this is not true. (And doing it unnecessarily should not cause this problem.)
I have wondered whether you really want to MASQUERADE packets on both
eth0 and
wlan0. But unless one of those provides the connection to your Ubuntu machine, I don't see how it can cause this problem.
And just to make sure I am understanding you, by
ICS do you mean
Internet Connection Sharing?
EDIT: I am not sure the IPv6 message is related to your problem, but my knowledge of IPv6 is quite limited. I do know I see that message on one of my boxes every time I bring up wireless w/o apparent ill effects.