[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: redirection problem
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: redirection problem
- From: Vahur Rebas <vahur_(_at_)_tpu_(_dot_)_ee>
- Date: Sun, 05 Sep 2004 21:45:08 +0300
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
First you allow other hosts to connect to your firewall's port 80 and
then you rdr it away
to your web server.
Visit your host, monkey.org