Date: Sat, 24 Jun 2006 20:07:19 -0400 From: Brandon Penglase <sysupdates@spaceservices.net> To: freebsd-pf@freebsd.org Subject: Re: REDIRECTING using the NAT table Message-ID: <20060624200719.43ccaa04@Neptune.SpaceServices.net> In-Reply-To: <BAY108-DAV17FE1D895B08197201CE2CB87B0@phx.gbl> References: <BAY108-DAV17FE1D895B08197201CE2CB87B0@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060624200719.43ccaa04>