Networking Forums

Networking Forums > Computer Networking > Linux Networking > How do I run a web server behind a modem/router on port 80.

Reply
Thread Tools Display Modes

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

 
 
Robbie
Guest
Posts: n/a

 
      07-16-2005, 05:11 AM
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

 
Reply With Quote
 
 
 
 
Grant
Guest
Posts: n/a

 
      07-16-2005, 05:59 AM
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
 
Robbie
Guest
Posts: n/a

 
      07-16-2005, 10:49 AM
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

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How many sockets when using 4 port router modem? Geoff Mills Home Networking 8 11-08-2006 01:24 PM
ADSL modem router with USB NAS port ? Dave Broadband 6 03-26-2005 07:39 AM
modem (4 port router) to switch Warner Oldenziel Windows Networking 13 04-04-2004 01:13 AM
What is the difference between a multi-port ASDL modem/router and one with a 4 port hub? Tim Lyons Broadband 4 02-27-2004 06:07 AM
Is a single-port ADSL router the same as a single-port ethernet modem? Graeme Allen Broadband 8 01-26-2004 10:55 PM



1 2 3 4 5 6 7 8 9 10 11