Internet Connection Sharing kind of working
How do I establish the ICS all the way?
I was able to get Ubuntu working with Puppy Linux, however, I seem to be unable to get it working with Debian etch. Ubuntu 7.10 is the server. Debian etch is the client. Debian etch has been giving me an error such as Quote:
Here's what I have been able to accomplish so far. I have been able to get the debian computer to obtain an IP address from the ubuntu box. I have also been able to ping google.com, and it seems that it's domain was rendered into its IP, so I am assuming it knows google exists. Perhaps it is the case that it only knows google exists because the ubuntu computer says says, and nothing further, as in it might be in ubuntu's cache or something. Here is the script I used on the ubuntu computer to start ICS. Code:
#!/bin/sh I was able to get this working on Puppy Linux, but I can't get it to work with Debian etch. I know that the ethernet cards and the wireless device works. On the client, I do the following: Code:
sudo dhclient eth0 Code:
route add default gw 192.168.0.123 Code:
ping google.com Quote:
Quote:
Quote:
|
Quote:
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. |
All times are GMT -5. The time now is 03:06 PM. |