Shorewall Port Forwarding
Hello,
I hope there's no post like this already, I have an ubuntu machine acts as a firewall, with eth0 connects to the internet with ip 219.83.1.0 and eth2 connects to the lan with ip 192.168.1.4. inside the lan, i have a web server with ip 192.168.1.5. I set its http port to 15000. now, I want to browse to the webserver from the internet. How can I set the routing? I'm using shorewall. I want that if I type http://219.83.1.0:15000, then I will be connected to the webserver inside the lan thank you Faizal |
btw, in etc/shorewall/rules, i wrote this line:
DNAT net loc:192.168.1.5:8082 tcp 8082 just like the FAQ, but I can't browse 192.168.1.5's web server from the internet |
Quote:
if not, you may try this in your /etc/shorewall/rules DNAT net loc:192.168.1.5:15000 tcp 15000 every connection from net zone to your firewall (ip 219.83.1.0) port 15000 will be NAT-ed into your server (ip 192.168.1.5) port 15000. Then, you can access http://219.83.1.0:15000 from internet to browse your http server. FYI, you can't use this 219.83.1.0 as IP Address, because that is network-address, but in this case I ignore that.0 *sorry for to late answer* |
All times are GMT -5. The time now is 11:06 PM. |