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 \If $web_server is behind this firewall, then $web_server should be replaced with your
flags S/SA synproxy state
Vahur