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

rdr in nat.conf



Hi all,
I'm trying to set up a webserver on a home machine behind a OBSD 3.1 stable box. My isp blocks port 80 so I set up a url redirect on my ddns provider (changeip.com) www.foodomain.net points at OBSDfirewall.foodomain.net:8080. Reading the nat.conf man page/faq I thought I could redirect to port 80 on an internal machine (192.168.0.2) with a rule like:
rdr on fxp0 proto tcp from any to any port 8080 -> 192.168.0.2 port 80
in my nat.conf file. It's not working. 
I have 3 nics in the firewall one to 192.168.2.1 internal lan. One to a dmz 192.168.0.1. one to the internet. pf.conf is passin all pass out all for the time being. nat.conf reads:
nat on fxp0 from 192.168.2.0/24 to any -> fxp0
nat on fxp0 from 192.168.0.0/24 to any -> fxp0
rdr on fxp0 proto tcp from any to any port 21 -> 127.0.0.1 port 8081
rdr on fxp0 proto tcp from any to any port 8080 -> 192.168.0.2 port 80.
Any ideas.
joe

_____________________________________________________________
I subscribe to a free email newsletter about Windows, phones, websites, shareware, gadgets, jokes, tips, tricks: http://www.webskulker.com

_____________________________________________________________
Select your own custom email address for FREE! Get you_(_at_)_yourchoice_(_dot_)_com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag



Visit your host, monkey.org