Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 May 2008 21:51:26 +0300
From:      Oleksandr Samoylyk <oleksandr@samoylyk.sumy.ua>
To:        freebsd-ipfw@freebsd.org
Subject:   ipfw and smtp port rewriting
Message-ID:  <48307AAE.9010906@samoylyk.sumy.ua>

next in thread | raw e-mail | index | archive | help
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

Reading man ipfw and playing a bit with rules I composed this rule, 
which doesn't however work:

ipfw add fwd any,2525 tcp from any to any 25 via ${tun}

How to achieve the same functionality as in iptables for smtp port 
rewriting for any destination?

Thanks!

-- 
  Oleksandr Samoylyk
  OVS-RIPE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48307AAE.9010906>