[SOLVED] Port forwarding for web server not working
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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)?
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.
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.