Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2014 18:48:33 +0200
From:      Luciano Mannucci <luciano@vespaperitivo.it>
To:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   NAT question
Message-ID:  <3hYH0x3vTtzCy1h@baobab.bilink.it>

next in thread | raw e-mail | index | archive | help

Hello, I'm still migrating machines from linux to FreeBSD. I'm wondering if
my translation from this iptables linux rule

iptables -t nat -A POSTROUTING -s 192.168.7.234/32 -d 172.16.1.0/24 -o eth1 -j
MASQUERADE

(which means moreless if Mr 192.168.7.234 wherever he comes fom passes
through our eth1 interface to go to 172.16.1 network should get our
eth1 address instead of his)

is moreless correctly translated in FreeBSD ipnat rules as

map em0 192.168.7.234/32 -> 0/32

or I'm missing something?

Cheers,

Luciano.
-- 
 /"\                         /Via A. Salaino, 7 - 20144 Milano (Italy)
 \ /  ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250
  X   AGAINST HTML MAIL    /  E-MAIL: posthamster@sublink.sublink.ORG
 / \  AND POSTINGS        /   WWW: http://www.lesassaie.IT/



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