Thread: nat HELP
View Single Post
  #4   (View Single Post)  
Old 2nd February 2009
dextro dextro is offline
Port Guard
 
Join Date: Dec 2008
Posts: 21
Default

pf.conf
Code:
ext1="nfe0"
int1="rl0"

pc1="10.0.0.2"
pc2="10.0.0.3"

set skip on lo

# only one of the following 2 lines uncommented at a time!
nat on $ext1 from !($ext1) -> ($ext1:0)
#binat on $ext1 from $pc1 to any -> $ext1

rdr-anchor "miniupnpd"

rdr on $ext1 proto tcp from any to any port 54378 -> $pc1
rdr on $ext1 proto tcp from any to any port 1337 -> $pc1
rdr on $ext1 proto tcp from any to any port 3389 -> $pc1
rdr on $ext1 proto {tcp, udp} from any to any port 39004 -> $pc1
rdr on $ext1 proto {tcp, udp} from any to any port 1234 -> $pc1
rdr on $ext1 proto {tcp, udp} from any to any port 3074 -> $pc2

anchor "miniupnpd"
Reply With Quote