Thread: port forwarding woes to web server
hi all... trying convince our staff ubuntu server better way go windows server, i'm stuck getting port forwarding working.
have tomcat installed (port 8080) on ubuntu server 9.04. ufw disabled. have dual port nic, 1 port connected router on our private local network, , second port connected router on our public local network. each router (both linksys wrt320n) directly connected our modem.
/etc/network/interfaces
both routers configured assign ip's based on mac address.code:auto lo iface lo inet loopback # primary network interface auto eth0 iface eth0 inet dhcp ## network bridge declaration auto br0 ## start on boot iface br0 inet dhcp bridge_ports eth1 iface eth1 inet manual ifconfig $iface 0.0.0.0 ip link set $iface promisc on down ip link set $iface promisc off down ifconfig $iface down
eth1 bridged openvpn goodness, , port connected local private network, leaving eth0 connected our public network.
steps i've taken:
1) set port forwarding modem router
-- port 80 inbound forwarded port 80 on public local router
2) set port forwarding router server
-- port 80 inbound forwarded port 8080 on ubuntu server
3) confirmed ufw inactive
4) confirmed can hit web server local network web browser
expect able hit web server browser coming in world wide web.. doesn't work. can see log messages on router i've made attempt web, that's far gets. further complicates matter can take laptop, ubuntu 9.10, single network port, tomcat running on 8080, , works browser on web! gives?
please help!
thanks
iruff
hey there,
when say
what mean? mean have tomcat installed on private network, , can browse there?what further complicates matter can take laptop, ubuntu 9.10, single network port, tomcat running on 8080, , works browser on web!
think may looking @ nat limitations imposed router. had similar issue trying "get can out of single ip address." of sites hosted off of single ip address, wanted host multiple sites. figured have primary webserver (using port 80) , link of others (using non standard ports such 3000 , 5000)
i'm used working cisco routers allow nat overload, or take incoming packets 1.2.3.4 on port 80 , send them internal server 4.2.3.1 port 8080. port forwarding different, however, , literally forwards tcp queries internal server, port not changing. cannot combine port forwarding on router service.
here's quick test. take public url (whatever public ip address of server you're trying access) , instead of putting www.mydomain.com enter www.mydomain.com:8080 , see if works. if that's case, you're router primary limiting factor.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [ubuntu] port forwarding woes to web server
Ubuntu
Comments
Post a Comment