Date: Mon, 19 May 2008 17:18:13 +0300 From: Oleksandr Samoylyk <oleksandr@samoylyk.sumy.ua> To: Paolo Pisati <piso@freebsd.org> Cc: freebsd-ipfw@freebsd.org Subject: Re: ipfw and smtp port rewriting Message-ID: <48318C25.2090703@samoylyk.sumy.ua> In-Reply-To: <20080519141602.GB7648@tin.it> References: <48307AAE.9010906@samoylyk.sumy.ua> <20080519141602.GB7648@tin.it>
next in thread | previous in thread | raw e-mail | index | archive | help
Paolo Pisati wrote: > On Sun, May 18, 2008 at 09:51:26PM +0300, Oleksandr Samoylyk wrote: >> Hello freebsd-ipfw, >> >> I'd like to make smtp port rewriting for any destination by means of ipfw. >> >> With iptables I just used this rule in order to achieve this functionality: >> >> iptables -t nat -A PREROUTING -i ppp+ -p tcp --dport 2525 -j DNAT >> --to-destination :25 > > ipfw nat 123 config redirect_port tcp YOURIP:2525 25 > ipfw add nat 123 tcp from any to any > > or something along the line. > Will it work for any destination? -- Oleksandr Samoylyk OVS-RIPE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48318C25.2090703>