LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-08-2006, 05:36 AM   #1
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
Router and DynDNS


Hi,

I configured my ZyXEL Prestige 660H-61 to act as a router. Then I made so that it would get a dynamic IP-address from my ISP and then act as a DHCP-server for my own network of 3 computers. Then I noticed that ZyXEL supports domains gotten from DynDNS.org. This would direct users to my webpage even if my IP-address changes.
So I registered one from there and configured it in my ZyXEL.

My problem now is that instead of directing browsers to my apache server, the domain directs users to configure my router/modem


So, how could I configure the domain and router to route the user to my apache server?

Last edited by Zmyrgel; 04-08-2006 at 05:38 AM.
 
Old 04-08-2006, 07:23 AM   #2
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
you forward port 80 to your webserver and switch off access to your router configuration from outside your network. the latter is something you should have done first thing when you connected it.
 
Old 04-08-2006, 09:17 AM   #3
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 37
Okay, I turned off the remote access to my modem... Forgot to do that.

But on to the matter. I do believe the thing I need is the firewall settings on the router, right? Confing special rules so that connections from WAN on LAN are forwarded instead of blocked when trying to access my LAN IP.

Is my reasoning correct?

How to correctly get browser to go into my homepage?

I registered the domain and the domain IP assigned in DynDNS.org is my router's IP. Now, when users try to access my domain, they go into my router using port 80. Then router default setting blocks it. So I need to set a special rule that all connections from WAN to LAN are to my server on LAN?

What kind of rule should it be? Allow all connections from WAN to LAN and forward them to my server or what? I'm confused as the ZyXEL rules follow pattern like the following:

Code:
Source IP | Destination IP | Service | Action | Schedule | Log | Alert
What about my Slack-server? All I need to enable in hosts.allow is that connections from my routers LAN IP are allowed to access httpd?

Last edited by Zmyrgel; 04-08-2006 at 09:36 AM.
 
Old 04-08-2006, 10:41 AM   #4
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
http://portforward.com/english/route...0HW61/HTTP.htm
 
Old 04-08-2006, 10:45 AM   #5
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 37
I got it to work. Appaerantly I can't access my apache server using the domain name from my network. That works from outside, my friend just tested. If I want to access my apache within the network I need to use the servers ip-address.
 
Old 04-08-2006, 10:51 AM   #6
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
That's because your nameserver responds with the external ip of your router. Then your LAN client comes from the internal router interface asking to be connected to the external interface and is then forwarded back to some server in the LAN. This gets all very messy and the router firewall probably blocks requests like this cause they seem fishy.

To get the server from the lan using its dyndns name either use an entry in /etc/hosts or set uo an internal dns server.
 
Old 04-09-2006, 04:58 AM   #7
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 37
Nah, If it's not broken, don't fix it

Trying to get mysql working on my server at the moment. Then the fun part of converting the pages to use PHP and databases as I haven't done that sort of thing yet. Little experience on ASP. Luckily PHP is C-based
 
  


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
DynDNS IP bastardchild Linux - Newbie 2 08-02-2005 09:55 PM
own dyndns server stoffell Linux - Software 0 09-11-2004 06:40 AM
DYNDNS / Linksys BEFSX41 router VincentB Linux - Networking 1 03-09-2004 02:41 PM
Is anyone using dyndns.org??? cojo Linux - Software 7 03-05-2003 12:09 AM
dynamic IP without dyndns etc...? acid_kewpie Linux - Networking 7 07-29-2002 08:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:20 PM.

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