From owner-freebsd-questions@FreeBSD.ORG Wed Aug 13 16:57:27 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 60CC4347 for ; Wed, 13 Aug 2014 16:57:27 +0000 (UTC) Received: from baobab.bilink.net (baobab.bilink.net [212.45.144.44]) by mx1.freebsd.org (Postfix) with ESMTP id 1A828214D for ; Wed, 13 Aug 2014 16:57:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by baobab.bilink.it (Postfix) with ESMTP id 3hYH0x6DHyzCy1l for ; Wed, 13 Aug 2014 18:48:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at mcs.it Received: from baobab.bilink.net ([127.0.0.1]) by localhost (baobab.mcs.it [127.0.0.1]) (amavisd-new, port 11027) with ESMTP id Y78R7JiieHYt for ; Wed, 13 Aug 2014 18:48:33 +0200 (CEST) Received: from hermes.mcs.it (hermes.mcs.it [192.168.132.21]) by baobab.bilink.it (Postfix) with ESMTP id 3hYH0x3vTtzCy1h for ; Wed, 13 Aug 2014 18:48:33 +0200 (CEST) Received: from mordeus (unknown [192.168.44.6]) by hermes.mcs.it (Postfix) with ESMTP id 6F5C01B7443 for ; Wed, 13 Aug 2014 18:48:33 +0200 (CEST) Date: Wed, 13 Aug 2014 18:48:33 +0200 From: Luciano Mannucci To: FreeBSD Mailing List Subject: NAT question X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) X-Face: 4qPv4GNcD; h<7Q/sK>+GqF4=CR@KmnPkSmwd+#%\F`4yjKO3"C]p'z=(oWRnsYBQGM\5g:4skqQY0NnV'dM:Mm:^/_+I@a"; [-s=ogufdF"9ggQ'=y MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <3hYH0x3vTtzCy1h@baobab.bilink.it> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2014 16:57:27 -0000 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/