Date: Tue, 9 Jan 2007 16:02:14 +0700 From: budsz <budiyt@gmail.com> To: freebsd-ipfw@freebsd.org Subject: Need help to convert rule iptables to ipfw Message-ID: <4d4dc3640701090102y7e3bb929h2d306ec6776b4498@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Dear, I've some problem with nat and rdr onto the same network like sample: iptables -t nat -I PREROUTING -i eth1 -p tcp -d 202.xxx.yyy.123 --dport 6112 -j DNAT --to-destination 192.168.0.1:6112 iptables -t nat -I PREROUTING -i eth0 -p tcp -s 192.168.0.0/24 -d 202.xxx.yyy.123 --dport 6112 -j DNAT --to-destination 192.168.0.1:6112 iptables -t nat -I POSTROUTING -o eth0 -s 192.168.0.0/24 -d 192.168.0.0/24 -j SNAT --to-source 202.xxx.yyy.123 That rules using iptables on Linux mechine. Now, I've already run ipfw2 with FreeBSD box. My questions is how to implement rule like that if use ipfw2. Does ipfw support feature PREROUTING/POSTROUTING like iptables on Linux system?. Thanks you. -- budsz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4d4dc3640701090102y7e3bb929h2d306ec6776b4498>