Date: Mon, 01 Jun 2009 23:56:03 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> To: aftaha@cirp.usp.br Cc: freebsd-pf@freebsd.org Subject: Re: Connect to port 5432 Message-ID: <4A244E73.8040203@quip.cz> In-Reply-To: <4A2415EF.1070206@cirp.usp.br> References: <4A2415EF.1070206@cirp.usp.br>
next in thread | previous in thread | raw e-mail | index | archive | help
Ali Faiez Taha wrote: > Dear Sirs. > > What I need to redirect connections from any Internet valid IP and port 5432 to one intranet server running (PostgreSQL Database) on > 5432 port ? > I am using FreeBSD 7.2 with PF firewall. > > The rule on Linux iptables now is: > > iptables -t nat -A PREROUTING -p tcp -s 0/0 -d AAA.BBB.CCC.DDD --dport 5432 -j DNAT --to-destination 192.168.2.253:5432 It could be something like this rdr pass on $ext_if proto tcp from any to AAA.BBB.CCC.DDD port 5432 -> 192.168.2.253 but better read some docs (man pf.conf and examples on the net) Miroslav Lachman
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A244E73.8040203>