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

From: Robbie (robbie_syd_au_at_lycos.com)
Date: 07/16/05

  • Next message: Grant: "Re: How do I run a web server behind a modem/router on port 80."
    Date: 15 Jul 2005 22:11:38 -0700
    
    

    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://
    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


  • Next message: Grant: "Re: How do I run a web server behind a modem/router on port 80."

    Relevant Pages

    • Re: Cannot telnet some ports
      ... Some with remote administration feature I believe. ... >> From a Windows 2003 Server SP2 ... >> fromn the 2k3 serrver but can telnet into any other port. ... kerberos 750/udp kdc # Kerberos udp ...
      (microsoft.public.windows.server.general)
    • RE: Remote Web Workplace not completely working.
      ... In order to allow a remote desktop connection to a client computer through ... TS requests through a firewall on TCP port 4125, ... To open the port 4125 on ISA, we can re-run CEICW to confirm it. ... server certificate) and then click Next. ...
      (microsoft.public.windows.server.sbs)
    • Re: ISA Rule for Remote Desktop?
      ... My server has a private IP address on the WAN NIC. ... I've just had an opportunity to try testing Remote Desktop through RWW from ... attempts being made from the logging interface in ISA to port 4125 when I ... There are three connection ...
      (microsoft.public.windows.server.sbs)
    • Re: Unable to Connect to Server/Client Desktop using RWW
      ... Please post the results of an ipconfig /all for the sbs server. ... I did another test after turning off the firewall on the remote. ... If port 4125 was not forwarded on the sbs machine, ...
      (microsoft.public.backoffice.smallbiz)
    • Re: Kazzaa- spyware
      ... > server, then file retrievals from your machine must be done with the ... >>- Allow all UDP for both direction, for local port 123 and remote port ... > But unfortunately RR is changing the DNS addresses all the time. ...
      (comp.security.firewalls)