MottS Posted April 29, 2003 Report Share Posted April 29, 2003 Hi all. This is a very annoying problem and I hope someone will understand what is going on because I don't My server (the one that has my drunden tux on it .. right at your left) connects to the net with an ADSL connection (dhcp). Usually, I receive 66.36.*.* as IP. Now this server shares the internet connection with computers connected to it via a hub (configured via the MCC). Everything is working fine. But then, don't know why, the server stops sharing the net when my ISP changes my IP to something sike 217.92.*.*. If I login on the server with SSH and try to browse somewhere with 'lynx', I always get 'connection refused' .. but 'adsl-status' shows that the connection is up and running. Now if I stop the net connection and reconfigure it via the MCC, I can connect to the net with the server. However, the clients cannot connect .. the server does not share the net anymore! So I have to plug the monitor and keyboard to it and reconfigure everything... I hate it! This happened twice in 1 month (last time 5 minutes ago). Anyone have a clue of what is going on? MOttS Quote Link to comment Share on other sites More sharing options...
SoulSe Posted April 29, 2003 Report Share Posted April 29, 2003 In most setups, where windows machines are involved especially, the first two values of your gateway (i.e 1.2.3.4) must be the same for internet sharing as the rest of your network. There is a workaround for it, but I'm not sure how to tackle it, anyone else? Quote Link to comment Share on other sites More sharing options...
MottS Posted April 29, 2003 Author Report Share Posted April 29, 2003 No windows machine here. Only Mac OS and Linux. And the IP of my gateway does not change .. only my ADSL address as specified above. eth0 (10.0.0.10) is connected to an ADSL modem. The ADSL service receives an IP (different from time to time .. the problem) from my ISP. eth1 (192.168.1.0) is connected to the LAN. Gateway address is ALWAYS 192.168.1.1. Quote Link to comment Share on other sites More sharing options...
coverup Posted May 2, 2003 Report Share Posted May 2, 2003 What is in your /etc/resolv.conf /etc/hosts? Does your ISP dynamically assign nameserver IPs? Make sure that the nameservers are consistent with IPs in your /etc/resolv.conf and /etc/hosts. Quote Link to comment Share on other sites More sharing options...
MottS Posted May 2, 2003 Author Report Share Posted May 2, 2003 I'll check this up tonight ! Quote Link to comment Share on other sites More sharing options...
MottS Posted May 2, 2003 Author Report Share Posted May 2, 2003 from my server [gd@localhost gd]$ cat /etc/resolv.conf search localdomain AEI nameserver 206.123.6.10 nameserver 206.123.6.11 # ppp temp entry nameserver 206.123.6.11 # ppp temp entry nameserver 206.123.6.10 # ppp temp entry [gd@localhost gd]$ cat /etc/hosts 10.0.0.10 localhost.localdomain localhost 192.168.1.1 localhost.localdomain localhost 127.0.0.1 localhost.localdomain localhost 192.168.0.1 localhost.localdomain localhost From my computer on the LAN gd@localhost gd $ cat /etc/resolv.conf nameserver 192.168.1.1 search homeland.net gd@localhost gd $ cat /etc/hosts # /etc/hosts: This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. Just add the names, addresses # and any aliases to this file... # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.7 2002/11/18 19:39:22 azarah Exp $ # 127.0.0.1 localhost 192.168.1.100 localhost.localdomain What's wrong with those files? .. and how are they related to my problem? Quote Link to comment Share on other sites More sharing options...
coverup Posted May 3, 2003 Report Share Posted May 3, 2003 Can't see anything wrong with those files. To me, a weird thing is that your LAN breaks when ISP assigns a different IP to the server... When that happens next time, check outputs of ifconfig and route on both the server and clients for default gateway. Quote Link to comment Share on other sites More sharing options...
DragonMage Posted May 3, 2003 Report Share Posted May 3, 2003 Forgive me since I don't know anything about ip routing, but does your server have any kind of dns software installed? Do you think this is a side effect of tmdns or whatever it is? If your clients are using 192.168.1.1 for the nameserver that means the server needs to have a DNS server of some kind, no? I guess if you change the nameserver from your clients to a real dns server maybe it can work better... Again.. forgive me if I am just talking nonsense. Quote Link to comment Share on other sites More sharing options...
MottS Posted May 3, 2003 Author Report Share Posted May 3, 2003 Hey DragonMage .. that make sense. When that problem arise, the computers on my lan cannot access the net (with dns) .. but I will try to use IPs instead. I'll try something like http://216.239.39.99 and see if it work (this is Google). I say that it make sense because in my Windows days, I had to provide my ISP's DNS to the computer on my LAN so that they could access the web. XP wasn't able to 'share' the net as cleanly as Mandrake does. But if that is the case, where do I put the DNS address in /etc ? ... I know how to do that for the MAC OS X machine but not my machine actually. Quote Link to comment Share on other sites More sharing options...
coverup Posted May 4, 2003 Report Share Posted May 4, 2003 For private subnets and static IP addresses, you don't have to run a dns server, 'cause names can be resolved using hosts file. I don't have dns server running. As long as static IP addresses are listed in /etc/hosts and /etc/lmhosts (for samba), everything works fine. I think that its a routing or NAT problem 'cause things go wrong after ISP assigns different IPs. Once you've been assigned a different IP, you must change the default gateway as well. Quote Link to comment Share on other sites More sharing options...
coverup Posted May 4, 2003 Report Share Posted May 4, 2003 I had to provide my ISP's DNS to the computer on my LAN so that they could access the web. XP wasn't able to 'share' the net as cleanly as Mandrake does. But if that is the case, where do I put the DNS address in /etc ? That's already been done: gd@localhost gd]$ cat /etc/resolv.conf search localdomain AEI nameserver 206.123.6.10 nameserver 206.123.6.11 # ppp temp entry nameserver 206.123.6.11 # ppp temp entry nameserver 206.123.6.10 # ppp temp entry You may want to try to add these lines to /etc/resolv.conf on the clients... Quote Link to comment Share on other sites More sharing options...
MottS Posted May 4, 2003 Author Report Share Posted May 4, 2003 Ok. So I will run TWO tests next time that problem arise. 1) Try to access webpages with IP 2) Put the DNS of my ISP in /etc/resolv.conf of my computer (client) and restart the network (client). Thanks guys .. I appreciate your help MOttS Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted May 5, 2003 Report Share Posted May 5, 2003 I had a problem with using ICS between my Linux box (the dhcp server) and my WinXP box (client) and I had to actually put the real dns server IPs in /etc/dhcpd.conf rather than the local ip of my dhcp server. For some reason it wasn't accepting the dns servers listed in my /etc/resolv.conf file, even though the man pages said that it should. Quote Link to comment Share on other sites More sharing options...
MottS Posted May 8, 2003 Author Report Share Posted May 8, 2003 That happened again So I tried 1) Try to access webpages with IP Did not work. So not a DNS problem. Then I tried 2) Put the DNS of my ISP in /etc/resolv.conf of my computer (client) and restart the network (client). Didn't work either. So WTF is the problem? .. well, I was able to access the web from my server (using LYNX) but not from the clients on the network. So I 'service shorewall restart' and BAM .. everything started to work again. I like it :P MOttS Quote Link to comment Share on other sites More sharing options...
static Posted June 4, 2003 Report Share Posted June 4, 2003 So it's gotta be the firewall rules on the gateway somehow... Is your gateway a proxy server too? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.