[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: redirection problem



Kiraly Zoltan wrote:

I have two OpenBSD 3.5 box, a gateway and a web-server. The OpenBSD
gateway do nat for web-server.

I read the documentaion "Firewall for Home or Small Office" but the
example not really work for me using redirection rules :

This is my configuration on gateway (192.168.10.1) :

ext_if = "de0"
int_if = "rl0"
web_server = "192.168.10.2"

nat on de0 from rl0/24 to any -> de0

rdr on $ext_if proto tcp from any to any port 80 -> $web_server


maybe try to specify port form $web_server

pass in on $ext_if proto tcp from any to $web_server port 80 \
flags S/SA synproxy state


If $web_server is behind this firewall, then $web_server should be replaced with your
firewall ip.


First you allow other hosts to connect to your firewall's port 80 and then you rdr it away
to your web server.



Vahur



Visit your host, monkey.org