View Single Post
  #8   (View Single Post)  
Old 14th May 2008
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default

Quote:
Originally Posted by alternico View Post
It's not that you can tell me what are, for each regular following iptables, the rules that match in PF:

Code:
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport pop3 -j REDIRECT --to 8110
iptables -t nat -I OUTPUT -p tcp --dport 110 -j REDIRECT --to 8110
Ah, ...

Code:
rdr on rl0 proto proto inet tcp \
 from any to (rl0:0) port 110 \
 tag MYRDR110 -> 127.0.0.1 port 8110
# ...
pass in log quick on rl0 inet proto tcp \
 tagged MYRDR110 keep state
#
I believe we need to turn the from and to values around.
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.
Reply With Quote