On Mon, 2003-02-10 at 07:44, patryck wrote: > webserver="192.168.0.225" > > rdr on $ext_if proto tcp from any to $external_addr port 80 -> 192.168.0.200 port 80 > > pass in on $ext_if proto tcp from any to $ext_if/32 port 80 keep state > NAT works fine, but i never managed to forward traffic from outside to > the internal 192.168.0.225 webserver. What am i doing wrong here?
You're kidding, right? :) First, you need to have the right IP listed in your rdr rule. I'd suggest using your macro, since you went to the trouble of creating it. Next, your pass rule is only allowing traffic to your external IP address. However, NAT occurs before filtering, so you'll need to allow inbound to your $webserver, not your $ext_if. Of course, your primary problem appears to be the wrong IP, but you'd eventually run into the 2nd problem as well. -J.
