Skip to main content

Thread: Re: Port Forwarding


hi there,

have ubuntu vps set dmz node, , connect other ubuntu box (my tomcat server) through pptp vpn. both machines can ping each other on 10.1.1.0 network.
want port forward requests (port 8080 essentially) dmz node tomcat server - not working... thoughts?


$iptables-save

# generated iptables-save v1.4.4 on tue jan 3 07:47:35 2012
*nat
rerouting accept [698:38520]
ostrouting accept [1122:89354]
:output accept [1105:88470]
-a prerouting -p tcp -m tcp --dport 8080 -j dnat --to-destination 10.1.1.155:8080
-a postrouting -d 10.1.1.155/32 -p tcp -m tcp --dport 8080 -j snat --to-source 123.123.123.123
commit
# completed on tue jan 3 07:47:35 2012
# generated iptables-save v1.4.4 on tue jan 3 07:47:35 2012
*mangle
rerouting accept [8807:864273]
:input accept [8671:857281]
:forward accept [136:6992]
:output accept [8352:1180725]
ostrouting accept [8410:1181549]
commit
# completed on tue jan 3 07:47:35 2012
# generated iptables-save v1.4.4 on tue jan 3 07:47:35 2012
*filter
:input accept [309:33618]
:forward accept [0:0]
:output accept [147:14813]
-a input -p tcp -m tcp --dport 8080 -j accept
-a forward -d 10.1.1.155/32 -p tcp -m state --state new,related,established -m tcp --dport 8080 -j accept
commit
# completed on tue jan 3 07:47:35 2012



$ip route

10.1.1.0/24 via 123.123.123.123 dev venet0 scope link
127.0.0.0/8 dev lo scope link
default dev venet0 scope link

to port forward server there excellent site called portforward.com select modem , provide full list of information on how job done


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms Re: Port Forwarding


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account