This started this morning, I woke up and my site was there, checked my mail, and then my site was gone. When I login locally and try and ping google.ca I get "Connect : Network is unreachable" ifconfig eth0 shows the ip address has changed to a .101 from a .103 so I change it back, however the site cannot be seen and I cannot connect to it using putty.... I am at a loss, I have googled and searched and I can find many others with this issue, however very few if any solutions. Any help would be welcomed... -Lee
please try this: /sbin/route add -net 0.0.0.0 gw 1.1.1.1 eth0 where you have to replace 1.1.1.1 with the internal IP address of your router (gateway).
Absolutely Stunning... It works Thank you for the great reply times and accuracy. May I ask what may have caused this so I can possibly prevent future issues? Again thanks so much.... you rock! -Lee
Something has deleted the route to the gateway on your server. Can you check with the "uptime" command if your server rebootet at the time the problems begun?
Maybe a server oops... To be on the safe side I'd run chkrootkit and Rootkithunter to check if your system has been hijacked. You can never know...
I get this as output from chkrootkit Code: Checking `rexedcs'... not found Checking `sniffer'... eth0: not promisc and no PF_PACKET sockets Checking `w55808'... not infected Checking `wted'... chkwtmp: nothing deleted Checking `scalper'... not infected Checking `slapper'... not infected Checking `z2'... chklastlog: nothing deleted Checking `chkutmp'... The tty of the following user process(es) were not found in /var/run/utmp ! ! RUID PID TTY CMD ! root 7684 tty6 /sbin/getty 38400 tty6 chkutmp: nothing deleted There is more to the list however everything else states that there was nothing found, this however list eth0 and I dont know what it is telling me. Rootkit Hunter Finds this Code: System checks * Allround tests Checking hostname... Found. Hostname is mikethetv Checking for passwordless user accounts... OK Checking for differences in user accounts... [ NA ] Checking for differences in user groups... Creating file It seems this is your first time. Checking boot.local/rc.local file... - /etc/rc.local [ Not found ] - /etc/rc.d/rc.local [ Not found ] - /usr/local/etc/rc.local [ Not found ] - /usr/local/etc/rc.d/rc.local [ Not found ] - /etc/conf.d/local.start [ Not found ] - /etc/init.d/boot.local [ Not found ] Checking rc.d files... [ Not found ] Checking history files Bourne Shell [ Not Found ] * Filesystem checks Checking /dev for suspicious files... [ OK ] Scanning for hidden files... [ Warning! ] --------------- /dev/.static /dev/.udevdb /dev/.initramfs-tools /etc/.pwd.lock --------------- Please inspect: /dev/.static (directory) /dev/.udevdb (directory) I noticed that it created a user file... do you think this will interfere with ISPconfig? Any ideas or does everything look ok?
I think this is normal, as far as i know these directories where created when you install raid. Chkrootkit and rkhunter work fine together with ISPConfig. I think its ok.
Network Unreachable I can't connect to the internet. If I try to ping the default gateway or proxy server, I get a "network unreachable" error. Similarly, if I try to open Firefox to browse the internet, I get the "proxy server is refusing connections" page. And "Add/Remove Software" returns "Unable to retrieve software information". It did work directly after installation, but I changed to static IP, played with a few settings and then back to DHCP. Now this unreachable error. I'm using Fedora 5 My settings are: DHCP enabled IP: xxx.xxx.179.254 SUBNETMASK 255.255.254.0 DEFAULT GATEWAY xxx.xxx.176.8 DNS: 1 xxx.xxx.178.75 DNS: 2 xxx.xxx.178.74 DNS: 3 196.36.199.229 (internet) Connection settings in Firefox proxy : xxx.xxx.176.108:3128 Any help to solve this? Thanks !!!
Thanks Reboot? Yes, no resolution. ifconfig? I get the following output? bash: ifconfig: command not found. I'm using Fedora 5 default install? If not ifconfig, how do I ipconfig my system?
You must run that command as root, as Till said. If you still get the error message, please post the output of Code: echo $PATH
Question for Till Till I am having the same problem as the other dude described; but when I try to run the command /sbin/route add 0.0.0.0 gw 1.1.1.1 eth0 (1.1.1.1 being the ip of my router) I get the following error: SIOCADDRT: Network is unreachable: mad: Any suggestions?? thanks for the help
One more tidbit After all these years, I finally have something to add. I've been having this problem on a brand new Intrepid server I just installed. This thread helped me realize the error of my ways. I rechecked the file in /etc/network/interfaces and discovered I'd made an error where I'd specified a static IP address. I had given it the incorrect IP address of my router. So if anyone else out there finds this thread, with this problem, be sure to recheck your IP addresses. One digit obviously means a lot.
Till, After I ran this: /sbin/route add -net 0.0.0.0 gw 192.168.0.1 eth0 if fixed my problem, but when i restart the network by: /etc/init.d/network restart it removes the route again and I loose connection. How do I save that route permanently? so even after restarts it was there? thanks.