LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-02-2008, 07:17 PM   #1
Ernie_Werbel
LQ Newbie
 
Registered: May 2008
Posts: 3

Rep: Reputation: 0
Cannot connect from outside source through DynDns.org; Debian 4, AMD64


I set up a linux server on an AMD Athlon X2 64 -based PC using the network install ISO from Debian.org. Static IP of 192.168.1.200, SSH installed and forwarded to port 22 on my router. I can now access the server from any computer within my LAN using Putty with no problems.

I also installed Apache and am able to view the placeholder web page when I enter 192.168.1.200 from my LAN computers.

I then registered at Dyndns.org, entered my ISP-provided IP in the box, and set up Dynamic DNS through my router firmware. When I enter the dyndns address from behind my LAN, I get my router's login screen, which tells me that it updated. However, when I try to access the domain from an outside computer the connection times out. It seems like it is not making the link somewhere but I cannot seem to find out what I am doing wrong. Any insight would be appreciated.
 
Old 05-03-2008, 06:54 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Quote:
When I enter the dyndns address from behind my LAN, I get my router's login screen, which tells me that it updated.
That is normal behavior for some routers.

Quote:
However, when I try to access the domain from an outside computer the connection times out. It seems like it is not making the link somewhere but I cannot seem to find out what I am doing wrong. Any insight would be appreciated.
There are two places to start:
1) Make sure port 80 is being forwarded from your router to your server
2) Make sure your server's firewall isn't blocking the connections.

If those two things are fine, then the next step would be to check the Apache logs and see if the requests are even getting there from the outside world. If they're not, you'll either have to set up some firewall rules to see what is happening or use a tool like wireshark to see if the packets are making it past your router.
 
Old 05-03-2008, 07:19 AM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,960

Rep: Reputation: Disabled
Your ISP may block port 80, they often do. They think running a webserver is commercial activity and do not allow it on home-grade connections. Workaround is to run server on some other port, I believe there is a dyndns option to redirect transparently. You can check if ISP is blocking the port with Shields-Up, all ports that are not blocked by you are blocked by ISP.
 
Old 05-03-2008, 08:14 AM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
While you're checking, be sure to look at /etc/ddclient/ddclient.conf (wherever you have ddclient.conf installed) and double-check your settings, particularly the router settings (which can be a pains sometimes).

I did fiddle with the "router" settings (I have a Linksys BEFSR41) and fiddled too much to get and keep it going, so I switched to the "web" settings (rather than the "router" settings); works fine. Parts of my configuration file look like this:
Code:
## To obtain an IP address from Web status page (using the proxy if defined)
use=web, web=checkip.dyndns.org/, web-skip='IP Address' # found after IP Address
#
...
use=web                                         # via web
#
...
## dyndns.org dynamic addresses
##
## (supports variables: wildcard,mx,backupmx)
##
server=members.dyndns.org,              \
protocol=dyndns2                        \
ronayne.dyndns.org
If you try the "web" and everything works, then you can go back to the "router" and fiddle until you get it, eh?

Hope this helps some.
 
Old 05-03-2008, 09:30 AM   #5
Ernie_Werbel
LQ Newbie
 
Registered: May 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Hangdog42
There are two places to start:
1) Make sure port 80 is being forwarded from your router to your server
2) Make sure your server's firewall isn't blocking the connections.
Ok I went into the router this morning and saw that I did NOT have HTTP set to forward to port 80, so this could have been the problem. I don't want to install Putty on a work computer, but if I can get this part of it working it it should indicate that the DynDNS is functioning properly.

Quote:
Originally Posted by Emerson
Your ISP may block port 80, they often do. They think running a webserver is commercial activity and do not allow it on home-grade connections. Workaround is to run server on some other port, I believe there is a dyndns option to redirect transparently. You can check if ISP is blocking the port with Shields-Up, all ports that are not blocked by you are blocked by ISP.
Good point. If it still doesn't work after all this should I use port forwarding to set HTTP to a higher value as in:

HTTP - TCP Any -> 40,000 ?

Quote:
Originally Posted by tronayne
While you're checking, be sure to look at /etc/ddclient/ddclient.conf (wherever you have ddclient.conf installed) and double-check your settings, particularly the router settings (which can be a pains sometimes).
I went to edit the file using pico and it appears ddclient.conf is not installed. I use apt-get install ddclient an error and it doesn't install:

Quote:
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
ddclient
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 47.1kB of archives.
After unpacking 279kB of additional disk space will be used.
Err http://ftp.us.debian.org etch/main ddclient 3.6.7-2
Temporary failure resolving 'ftp.us.debian.org'
Failed to fetch http://ftp.us.debian.org/debian/pool....6.7-2_all.deb Temporary failure resolving 'ftp.us.debian.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I tried that last night and this morning. I was able to apt-get install/remove other programs, so the internet connection is working.

Then I run apt-get update and I get:

Quote:
Err http://security.debian.org etch/updates Release.gpg
Temporary failure resolving 'security.debian.org'
Err http://ftp.us.debian.org etch Release.gpg
Temporary failure resolving 'ftp.us.debian.org'
Failed to fetch http://ftp.us.debian.org/debian/dists/etch/Release.gpg Temporary failure resolving 'ftp.us.debian.org'
Failed to fetch http://security.debian.org/dists/etc...es/Release.gpg Temporary failure resolving 'security.debian.org'
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
I am fresh out of ideas.
 
Old 05-03-2008, 10:01 AM   #6
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
Have you tried reading the information at https://www.dyndns.com/services/dns/dyndns/howto.html?

Might be worth a shot, eh?
 
Old 05-03-2008, 11:08 AM   #7
Ernie_Werbel
LQ Newbie
 
Registered: May 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the link. I went through thir page, and also tried their port diagnostic tool, and it is telling me it is blocked. I have tried disabling all of the firewalls and it still does not resolve through dyndns's open port tool (http://www.dyndns.com/support/tools/openport.html). It appears port forwarding is set up correctly.

Quote:
Networked Computer / Device Network Address Public IP Address Remote Host IP Address Protocols WAN Connection Type Status Action
localhost localhost Verizon FiOS Service TCP Any -> 4567 All Broadband Devices Active
192.168.1.200
192.168.1.200
SSH - TCP Any -> 22 All Broadband Devices Active

192.168.1.200
192.168.1.200
HTTP Web Access - TCP Any -> 3127-3128
TCP Any -> 80-81
TCP Any -> 8080
TCP Any -> 8000
TCP Any -> 8888 All Broadband Devices Active

Add
I can't seem to trace down if it is an issue with the router or the server? Again, Putty connects to it through SSH fine and I can access the placeholder website through the browser, both on the LAN side.
 
Old 05-03-2008, 03:49 PM   #8
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Quote:
localhost localhost Verizon FiOS Service – TCP Any -> 4567 All Broadband Devices Active
If this is an indication that you have Verizon as an ISP, then it is nothing you're doing. Verizon is a known scumbag, er, I mean blocker, of port 80 for residential users. You'll have to move to a higher port if Verizon is your ISP.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
updating dyndns.org keratos Linux - Networking 2 11-24-2007 04:36 AM
Open Source dyndns/no-ip.org replacement? dlublink Linux - Software 3 05-04-2006 09:47 AM
dyndns.org cojo Linux - Newbie 3 04-20-2003 02:10 PM
Is anyone using dyndns.org??? cojo Linux - Software 7 03-04-2003 11:09 PM
dyndns.org d3funct Linux - Networking 1 04-25-2002 12:38 PM

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

All times are GMT -5. The time now is 12:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration