Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

How do I run a web server behind a modem/router on port 80.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-16-2005, 06:11 AM
Default How do I run a web server behind a modem/router on port 80.



Hi.

I have a Billion BiPac ADSL Modem/Router that has NAT configured to
forward all traffic on all ports to eth1 on my machine which has the IP
192.168.1.102.

I set up Apache Tomcat to run on port 80 and port 8080. Both are
accessible locally fine using http://localhost and
http://localhost:8080 in my browser.

However, the weird thing is that even when I run my web server as root,
going to port 80 on my IP address from a remote unix shell does not
work (links says "making connection" for ages then times out), but
going to it from a remote shell with links specifing http://<my
ip>:8080 it works fine. I do not have iptables compiled into my kernel
however I did try to install it using "emerge iptables" on linux
however it complained that the kernel didnt support it.


Solutions ive tried so far that havent worked:

Setting up rinetd to forward all traffic from port 80 to 8080. This
worked locally only.
Running Tomcat as root. This worked locally only.

Anyone got any solutions?
I need to have users be able to access my machines port 80 remotely. Im
running Gentoo Linux. Being able to not have the server run as root
would also be nice. Does xinetd drop root privileges if you specify in
its config file that it starts a server as the root user?

Regards,
Robbie



Robbie
Reply With Quote
  #2  
Old 07-16-2005, 06:59 AM
Grant
Guest
 
Posts: n/a
Default Re: How do I run a web server behind a modem/router on port 80.

On 15 Jul 2005 22:11:38 -0700, "Robbie" <(E-Mail Removed)> wrote:
>
> I have a Billion BiPac ADSL Modem/Router that has NAT configured to
> forward all traffic on all ports to eth1 on my machine which has the IP
> 192.168.1.102.


Check if ISP blocks port 80, some do, charge more for it... Check
if modem is forwarding port 80. Some block it by default.

Don't worry about a firewall until you brave enough to turn off the
modem's firewall

--Grant.

Reply With Quote
  #3  
Old 07-16-2005, 11:49 AM
Robbie
Guest
 
Posts: n/a
Default Re: How do I run a web server behind a modem/router on port 80.

They definately dont as I used to run this website on a windows 2000
server with no problems and each time I reboot to windows it works.

Reply With Quote
Reply

Tags
modem or router, port, run, server, web

Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 05:23 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.