REDIRECTING using the NAT table

Brandon Penglase sysupdates at spaceservices.net
Fri Jun 30 01:26:44 UTC 2006


> Hi,
> 
> I am new to FreeBSD and PF but was wondering how I could do using PF
> a rule from iptables on Linux.
> 
> The rule using iptables in Linux is:
> iptables -t nat -A PREROUTING -p udp --dport 3322 -j REDIRECT
> --to-ports 3323

rdr on $ext_if proto tcp from any to $ext_if port 86 -> 10.0.1.10 port
80

$ext_if is the interface facing the net, or I suppose the side from
that you want to modify. if your looking to just change port, I suppose
you could remove the IP at the end. Hope this helps.

      Brandon


More information about the freebsd-pf mailing list