Date: Thu, 02 Feb 2006 10:08:55 -0200 From: Tiago Cruz <tiagocruz@b4br.net> To: freebsd-pf@FreeBSD.org Subject: Rules to do VPN works when the host and client have the same network address Message-ID: <1138882135.4561.31.camel@localhost.localdomain>
next in thread | raw e-mail | index | archive | help
Hi guys, I'm using the OpenVPN in my net 192.168.0.0/22 but, if my mobile client was in one network like me, the VPN will not work. I've founded this in the OpenVPN FAQ: ================ 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 ================ Is this what I want!!! But... how can I do this in PF/FreeBSD? For more information, please: http://lists.freebsd.org/pipermail/freebsd-net/2006-February/009645.html Thank you!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1138882135.4561.31.camel>
