LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-04-2007, 03:50 PM   #1
soccercisco
Member
 
Registered: Dec 2006
Location: Fullerton, CA
Distribution: Debian
Posts: 36

Rep: Reputation: 15
[Solved] IP Address webserver


Hi all,

I am setting up a webserver using Debian linux.

My setup is:
Internet -->ISP modem -->Router -->webserver.

I know my ip from going to the websites that provide you such information.

When I try accessing my ip-address it goes into the setup page of my modem. How can I have the ip-address point to my webserver instead?

Thanks,

Last edited by soccercisco; 02-05-2007 at 12:15 AM.
 
Old 02-04-2007, 03:53 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
check out http://www.portforward.com
 
Old 02-04-2007, 04:27 PM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Are you connecting to the web server from the lan side of your router?
Or is the setup page being seen from the wan side from a remote internet computer?

If the last then you need to disable the setup tool from the outside and change the port to anything other than 80. Most normally use port 8080.

Now for the first one, assuming it is a store bought router, this is not normal if the setup resides on port 8080 but if port 80 then that will happen. Now changing the store bought routers port to 8080 will still not help. Reason many of these router do not support the ability to dnat back through the router using the external IP.

Brian
 
Old 02-04-2007, 09:26 PM   #4
soccercisco
Member
 
Registered: Dec 2006
Location: Fullerton, CA
Distribution: Debian
Posts: 36

Original Poster
Rep: Reputation: 15
Please see below.

Last edited by soccercisco; 02-04-2007 at 09:33 PM.
 
Old 02-04-2007, 09:32 PM   #5
soccercisco
Member
 
Registered: Dec 2006
Location: Fullerton, CA
Distribution: Debian
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks Brian, here's setup to aid me on my explanation. The | followed by a "v" indicates a down pointing arrow. I'm a newbie, so sorry if my terminology is off (although I've spent quite some time on linuxhomenetworking and other tutorials)

Internet
(WAN)
|
v
(WAN)
Modem Earthlink
(LAN)
|
v
Router Linksys
(192.168.5.1)
| ------------- |
v ------------- v
Web
server ------- *This_PC*
(192.168.5.50) (192.168.5.103)

1) I went to my Linksys router setup page and forwarded port 80 to point at the Webserver's IP address (192.168.5.50)

2) Now, from *This_PC* I can type on my web browser 192.168.5.50 and I can access the Webserver's startup page (apache's default page).

3) My problem is getting access to the webserver from the WAN. If I type my WAN IP Address on a browser from *This_PC* I get to the Earthlink modem configuration page, which has no options of port forwarding.

How can I point the WAN IP address to my webserver? I have tried forwarding port 8080 on the Linksys router to point at the Webserver's IP address (192.168.5.50) but this does not help.

Thanks,
 
Old 02-04-2007, 11:08 PM   #6
soccercisco
Member
 
Registered: Dec 2006
Location: Fullerton, CA
Distribution: Debian
Posts: 36

Original Poster
Rep: Reputation: 15
Please see below

Last edited by soccercisco; 02-04-2007 at 11:11 PM.
 
Old 02-04-2007, 11:11 PM   #7
soccercisco
Member
 
Registered: Dec 2006
Location: Fullerton, CA
Distribution: Debian
Posts: 36

Original Poster
Rep: Reputation: 15
This is exactly my problem:

http://www.portforward.com/help/doub...forwarding.htm

Everything on the LAN side works (I can see my webserver at both LAN levels) the probem is that l can't see it from the WAN side


My first router is the ZyXEL Prestige 600 provided by the ISP (Earthlink)

My second router (already configured) is a Linksys Wireless-G

Thanks for you time and help,
 
Old 02-05-2007, 12:16 AM   #8
soccercisco
Member
 
Registered: Dec 2006
Location: Fullerton, CA
Distribution: Debian
Posts: 36

Original Poster
Rep: Reputation: 15
Solution

Thanks to all for trying to help.

If anyone follows this:

1) Go to the modems help tab.

2) Click on advance settings.

3) Disable PPoE.

4) Configure your router to handle PPoE.

For more details pm me.

Cheers,
 
Old 02-05-2007, 05:17 PM   #9
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
So you are now able to use the wan IP to see the web server from a lan machine?

Brian
 
Old 02-06-2007, 02:04 AM   #10
soccercisco
Member
 
Registered: Dec 2006
Location: Fullerton, CA
Distribution: Debian
Posts: 36

Original Poster
Rep: Reputation: 15
Yes sir :-)

The problem was (I believe) that my first router (Linksys) (the one closest to the webserver) was forwarding port 80 just fine. But when it got to the the second router (built-in to my ISP-provided modem) things would get messed up (the firmware has very little configuration options). So I just pretty much disabled the modem (as I am not able to see it's configuration page) and when I type my WAN IP on a browser (from A LAN machine as you pointed out) I can get either to the first router (Linksys) or to my webserver (depending if i am forwarding port 80 or not).

So 'tis all good :-)

I still need to learn a whole bunch of security stuff (the books are thick), but I'm on my way.

Thanks for your help,
 
Old 02-06-2007, 05:09 PM   #11
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I see what you are saying. Did not catch both routers from the post. Anyways glad you have it going.

Brian
 
  


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
Can't access my apache2 webserver using external address from LAN eldoran Linux - Networking 6 10-26-2008 03:51 PM
Cannot see my webserver using the external IP address shazam75 Linux - Networking 12 09-30-2005 08:32 PM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
Cannot access webserver using "public" address yanar99 Linux - Newbie 2 12-20-2003 07:23 AM
Can't see WebServer from outside... Can see WebServer locally as http://localhost friddick Linux - Networking 13 08-19-2003 06:27 PM

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

All times are GMT -5. The time now is 06:05 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