Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Feb 2006 11:19:54 -0300
From:      Tiago Cruz <tiagocruz@forumgdh.net>
To:        Dimitry Andric <dimitry@andric.com>
Cc:        freebsd-pf@FreeBSD.org
Subject:   Re: Dirty NAT tricks
Message-ID:  <1140704394.4824.13.camel@localhost.localdomain>
In-Reply-To: <43FC7E4E.1070103@andric.com>
References:  <1140612265.5617.25.camel@localhost.localdomain> <43FC7E4E.1070103@andric.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2006-02-22 at 16:07 +0100, Dimitry Andric wrote:

> Read pf.conf(5), especially the parts about binat.  This is probably
> what you want.

Ok, thank you... I'm reading about but think that I some of some
example... reading the FAQ of OpenVPN I saw this one:

=======================================================================================
Does anybody know how to remap local addresses, if I want to connect two
networks with an overlap in the private address range?
Using iptables 1.2.7a+ and the NETMAP target:

        iptables -t nat -A PREROUTING -d 192.168.0.0/24 -j NETMAP --to 192.168.1.0/24
or
        iptables -t nat -A POSTROUTING -d 192.168.1.0/24 -j NETMAP --to 192.168.0.0/24
=======================================================================================

Maybe is some like this?
binat on $vpn_if from any to 192.168.0.1 -> 192.168.1.0

But... I have this error: pfctl: Syntax error in config file: pf rules
not loaded

Well... I'm a little bit of lost... is someone have some tip...

Thanks!

-- 
Tiago Cruz
http://linuxrapido.org





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