Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 May 2008 01:02:13 +0300
From:      Oleksandr Samoylyk <oleksandr@samoylyk.sumy.ua>
To:        freebsd-pf@freebsd.org
Subject:   iptables rule in pf
Message-ID:  <482226E5.4090802@samoylyk.sumy.ua>

next in thread | raw e-mail | index | archive | help
Dear Community,

I want to move some of our firewalls from Linux/iptables to FreeBSD/pf.

After reading man pf.conf for a couple of minutes I couldn't find the 
realization of such iptables rule in pf:

iptables -t nat -A PREROUTING -i ethX -d ! my.smtp.server -p tcp --dport 
25 -j DROP
iptables -t nat -A PREROUTING -i ethX -p tcp --dport 2525 -j DNAT 
--to-destination :25

How it can be rewriting in pf.conf?

Thanks!

-- 
  Oleksandr Samoylyk
  OVS-RIPE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?482226E5.4090802>