On Mon, Oct 07, 2002 at 08:53:32PM -0400, Bob Mariotti wrote:
> Fellow Mongers:
> 
> Not perl but absolutely necessary:  When a VPN is established between to
> points from one private LAN to a remote private LAN... when referencing
> a specific device on the remote lan does one reference the private IP on
> the remote private LAN or the remote public IP which is nat'ed to the
> private IP???
> 
> Simple yet elusive!
> 
> Thanks in advance to any helpful answers...

Geez, really off-topic.

Since the VPN joins the two networks, you'd use the remote private IP.
Obviously this will only work if the VPN gateway routes packets for the remote LAN 
through
the secure connection: which it is supposed to do.

The nat'ting of the remote public IP to private IP is a red herring: it may allow you 
access,
but probably not securely, and limits you to one private IP (You could play tricks 
with ports and source IPs,
but your're still limited.)

Here's the obligatory perl reference:

% perl -e 'exec route -n' | grep 'remote LAN address' || echo "You're bumming!"

-Gyepi  
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to