Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Feb 2001 03:15:12 -0800 (Pacific Standard Time)
From:      Joseph Stein <joes@joescanner.com>
To:        <questions@freebsd.org>
Subject:   port forwarding with natd over a vpn?
Message-ID:  <Pine.WNT.4.31.0102090315010.1312-100000@hood>

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

Greetings.

I am running:

FreeBSD shasta.wstein.com 4.2-STABLE FreeBSD 4.2-STABLE #0: Tue Jan 30
22:27:01 PST 2001     root@shasta.wstein.com:/usr/obj/usr/src/sys/SHASTA
i386

and have installed vtun from ports.  The VPN established works quite well,
however, I am now trying to get requests to my public IP routed over the
VPN and it doesn't appear to be working.  After searching the archives, I
found references on how to configure natd, and so I wrote a natd.conf
file:

use_sockets yes
port 8668
interface rl0
redirect_port tcp 192.168.250.12:8080 8080
redirect_port tcp 192.168.225.2:22 8443

The first address (192.168.250.12) is on my RFC-1918 network, and that
line forwards the connection properly.

The second address is the "far-side" address of the VPN; that is the line
that doesn't appear to be working...

I get 'trying 64.6.196.149...', and then the connection just hangs (like
it is filtered).

Any ideas?  Is this possible?

Do I need to do something else?  According to ipfw show, the packets are
not being filtered on either machine.

TIA for any help.




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.WNT.4.31.0102090315010.1312-100000>