Thread: pf rdr problem
View Single Post
  #5   (View Single Post)  
Old 19th March 2010
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

Quote:
Originally Posted by SchippStrich View Post
Code:
pass out proto tcp from xl0 to any port 666
I'm not sure if that is what you meant but it still doesn't work.
No.

You need this 'combo':

Code:
rdr pass on xl1 inet proto tcp from any to xl1 port 666 -> 192.168.1.20
pass out quick on xl0 inet proto tcp from any to 192.168.1.20 port 666
Note that the 'any' in these rules is the external IP address, so suppose you allow the connection only to e.g. public IP address 123.123.123.123, 'any' gets changed to '123.123.123.123' in both rules.
Reply With Quote