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 07-24-2013, 02:23 AM   #1
sudeep_mansh
Member
 
Registered: Jun 2008
Posts: 33

Rep: Reputation: 0
Thumbs up Port forwarding for web server not working


Hello,

I have started apache web server(LINUX SYSTEM) and I want that to be accessed using my static IP from outside. I have set the NAT. But when I try to access the IP it asks for router username/password. My router is not forwarding the webport.

Below is the structure of my network. (We have a LAN)
1. DSL modem is (DNA-A211-I).
2. Modem is connected to internet in ppp0E mode
3. Modem line is connected to a proxy server (192,168.15.100)
4. The apache runs in the proxy server.
5. From the proxy the line connects to a switch which inturn connect to our internal LAN network.

I have set the NAT for port 80(incoming/outgoing) to 192.168.15.100:80. but still I am unable to solve.

Do i have to edit the httpd.conf file?
or do i have to do anything else...
Please help


thanks.
 
Old 07-24-2013, 02:36 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

not sure, but you may need to disable the router from providing its web configuration on the external network interface (presumably that is why you are begin prompted for the router usrname/password).

What happens if you try to use a different port on the router (eg forward port 8080 on the router to 192.168.15.100:80)?

Evo2.
 
Old 07-24-2013, 02:47 AM   #3
sudeep_mansh
Member
 
Registered: Jun 2008
Posts: 33

Original Poster
Rep: Reputation: 0
I get the same prompt if i use a different port.
 
Old 07-24-2013, 02:51 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by sudeep_mansh View Post
I get the same prompt if i use a different port.
Sorry, that makes no sense to me. Are you saying that your router is running a web server on all ports on its external interface?

Evo2.
 
Old 07-24-2013, 02:58 AM   #5
sudeep_mansh
Member
 
Registered: Jun 2008
Posts: 33

Original Poster
Rep: Reputation: 0
Sorry... I was wrong.. If i forward 8080 on to port 192.168.15.100:80 i get an error "unable to connect".
 
Old 07-24-2013, 03:39 AM   #6
sudeep_mansh
Member
 
Registered: Jun 2008
Posts: 33

Original Poster
Rep: Reputation: 0
Please help.....
 
Old 07-24-2013, 03:58 AM   #7
scourgebg
LQ Newbie
 
Registered: Jul 2013
Posts: 6

Rep: Reputation: Disabled
I am sorry if it is a stupid suggestion but is the httpd service is running ? (/etc/init.d/httpd status)

If it is running so it will be work great in local network ... - try it. If the problem is not only on Public IP address so you didn't set everything in modem or router firewall.

Best regards
Yavor
 
Old 07-24-2013, 04:31 AM   #8
sudeep_mansh
Member
 
Registered: Jun 2008
Posts: 33

Original Poster
Rep: Reputation: 0
the http is running. If i give the local server address 192.168.15.100 it shows the apache test page. Locally within the LAN the web server is accessible. But from outside, if i access using static ip it display router page instead of forwarding to the web server.
 
Old 07-24-2013, 07:08 AM   #9
scourgebg
LQ Newbie
 
Registered: Jul 2013
Posts: 6

Rep: Reputation: Disabled
Hmmm.. Where did you set NAT(on which device) and how you do it ?
 
Old 07-24-2013, 07:43 AM   #10
sudeep_mansh
Member
 
Registered: Jun 2008
Posts: 33

Original Poster
Rep: Reputation: 0
Most of the problem is now solved. I am now out of my LAN area and just tried if it works..... Thank God now i am able to access my webserver from outside. But I think from within the LAN it show s the router page when i try to access static IP.. I have to check tomorrow and will post the status...
 
  


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
redirect web server with no-ip and port forwarding in livebox tmedtcom Linux - Networking 1 11-22-2012 08:40 AM
[SOLVED] Port forwarding 80 to lan (web server) JokerBoy Linux - Networking 19 02-05-2010 06:24 AM
port forwarding to internal web-server using iptables linaru Linux - Networking 3 08-13-2008 03:22 AM
port forwarding via web server nerd32768 Linux - Networking 1 09-21-2005 01:21 PM

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

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