LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2009, 06:50 AM   #1
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Rep: Reputation: 16
Problems connecting after Power cut


First post:

Hello everybody.

I recently installed Debian etch 4.0, (only successful after reading posts on this forum!) So I thought this would be the best place to seek assistance:

I have a server running Debian etch connected to a BT Adsl modem. On the MODEM I have port forwarding on 21, 80, 3306 and 10000. I have a remote machine that I used to connect over the internet to the server ie xxxx.dynalias.org. Evertyhing was working just fine, then a power cut shut everything down. So I rebooted and discovered that I was not able to connect from the remote machine on port 80 or 10000 but still able to connect on 3306..........ARGGGGGGHHH!!!!

ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:00:6C:41:4F:AA
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::200:6cff:fe41:4faa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10357 errors:0 dropped:0 overruns:0 frame:0
TX packets:9856 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8081252 (7.7 MiB) TX bytes:1627308 (1.5 MiB)
Interrupt:225 Base address:0x4000

/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
# allow-hotplug eth0
# iface eth0 inet dhcp

auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1

What else should I check? On the top right of my desktop I see an icon that states "No Network connection" Yet I am still able to connect to the internet!
 
Old 02-12-2009, 09:27 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
So I rebooted and discovered that I was not able to connect from the remote machine on port 80 or 10000 but still able to connect on 3306..........ARGGGGGGHHH!!!!
Are you sure that these ports are listening on your box? Because if it was your route, it would also block port 3306. What is the output of:
Code:
netstat -tan|grep -E '80|10000'
 
Old 02-13-2009, 04:29 AM   #3
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 16
Ok here goes...

Many thanks for your help,

I issued the command: netstat -tan|grep -E '80|10000'

tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.10:47990 69.88.148.130:80 ESTABLISHED
tcp 0 0 192.168.1.10:47994 69.88.148.130:80 ESTABLISHED
tcp 0 0 192.168.1.10:37037 75.126.162.205:80 ESTABLISHED
tcp 0 0 192.168.1.10:37038 75.126.162.205:80 ESTABLISHED
tcp 0 0 192.168.1.10:44892 74.201.118.102:80 TIME_WAIT
tcp 0 0 192.168.1.10:44902 74.201.118.102:80 TIME_WAIT
tcp 0 0 192.168.1.10:44899 74.201.118.102:80 TIME_WAIT
tcp 0 0 192.168.1.10:39953 213.123.85.200:80 ESTABLISHED
tcp 0 0 192.168.1.10:50329 212.140.233.223:80 ESTABLISHED
tcp 0 0 192.168.1.10:34922 74.201.118.102:80 TIME_WAIT
tcp 1 0 192.168.1.10:38467 66.102.9.166:80 CLOSE_WAIT
tcp 1 0 192.168.1.10:58260 66.102.9.155:80 CLOSE_WAIT
tcp 1 0 192.168.1.10:58258 66.102.9.155:80 CLOSE_WAIT
tcp 1 0 192.168.1.10:58265 66.102.9.155:80 CLOSE_WAIT
tcp 1 0 192.168.1.10:44418 216.239.59.127:80 CLOSE_WAIT
tcp6 0 0 :::80 :::* LISTEN

I'm not an expert, but it seems all is not well.

Any ideas?

TYIA
 
Old 02-13-2009, 04:55 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN
tcp6 0 0 :::80 :::* LISTEN
Both ports are listening, so I guess it's your router that has lost either the port-forwarding (NAT) rules, or a firewall on the router or on your server that blocks the trafiic to these ports.
 
Old 02-13-2009, 05:00 AM   #5
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 16
OK

I'll try to reset the NAT rules on the router.

Thanks again.
 
Old 02-13-2009, 05:54 AM   #6
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 16
ok

Reset the router and re-entered the port forwarding...no luck.

Then I set a DMZ to 192.168.1.10 on the router..still no luck.

I still have that annoying icon on the top right of my desktop saying no network connection.

Also, everytime I do an ifconfig, my eth0 has a different HWAddress???

Has my network card got dementia?

Thanks again.
 
Old 02-13-2009, 08:05 AM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Network-manager will not manage interfaces that you have manually assigned a static IP addrss to in the configuration file, that is why network manager is telling you there is "No Network connection"

Some nvidia chipset motherboards have a BIOS option that causes the MAC address to change on every boot.. that is one possible cause of you changing MAC. If you have an option like that in the BIOS it can easily be disabled.


If your router hasd forwarding enabled the next thing i would look at is local firewall rules..

iptables -L
 
Old 02-15-2009, 04:53 AM   #8
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 16
Solved

Hello,

Happy ending!

Many thanks to both of you for taking the time to help me.
So after your comments much googling was done and various fixes attempted, none successful! So I upgraded to debian lenny. Had a problem loading the video driver on reboot "vesa" does not exist, so I did some more googling and ran "aptitude remove xserver-xorg" and then "aptitude install xserver-xorg" and viola!

I rebooted a few times, HWADDRESS and IP address stayed the same, adjusted my /etc/hosts file accordingly......Job done!

Once again, your help is greatly appreciated.

Cheers.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
power company idiots cut power while system was on, now hangs at boot with # prompt shroomy_bee Linux - Newbie 10 07-04-2008 12:12 AM
date resets when power is cut Josephus Ross Programming 2 05-09-2007 05:55 AM
KDE Setting LOST on power cut, help :D duryodhan Slackware 3 01-17-2007 10:27 PM
Power cut and internet robingazi Debian 2 08-25-2006 09:54 AM
USB Flash Drive - can't cut power malone1234 Linux - Hardware 4 08-19-2005 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration