Skip to contentSkip to conversation

help needed-VPN

DISCUSSION Steven Mugassa 3 participants 3 messages May 27, 2003

lore
Share & tools
lore
#0 lore raw

Hello,

I'm trying to implement VPN of two remote LANs(LAN A & LAN B) using CIPE (on RedHat 9.0). I have tried to follow instructions from "CIPE-How to" from tldp.org and it seems to work (the machines on the two LANs can ping & traceroute each other using the internal IP addresses)

However i have one more requirement which i need advice on how to do it:- -One of the machines(call it machine X) in LAN B is not using CIPE gateway as its gateway( it is going to the internet using another gateway, which is also in the same LAN). This machine don't need to access machines in LAN A, but machine in LAN A need to access this machine. Since this machine is using another gateway(not CIPE gateway), then the classical CIPE-based VPN implementation will not allow it to be accessible by remote LAN.

-My question is, what modifications (routings, or SNAT/DNAT, ...) can i do to allow machine in remote LAN A to access that machine X (in LAN B)?

Thanks,
Steven

#1 lore raw

Hi

Quoted 7 lines · Steven Mugassa

Hello,

I'm trying to implement VPN of two remote LANs(LAN A & LAN B) using CIPE (on RedHat 9.0). I have tried to follow instructions from "CIPE-How to" from tldp.org and it seems to work (the machines on the two LANs can ping & traceroute each other using the internal IP addresses)

Quoted 8 lines

However i have one more requirement which i need advice on how to do it:- -One of the machines(call it machine X) in LAN B is not using CIPE gateway as its gateway( it is going to the internet using another gateway, which is also in the same LAN). This machine don't need to access machines in LAN A, but machine in LAN A need to access this machine. Since this machine is using another gateway(not CIPE gateway), then the classical CIPE-based VPN implementation will not allow it to be accessible by remote LAN.

On machine X you need a static route to tell it how to get back to LAN A (i.e. via the VPN gateway). Since your VPN LAN is setup and working for the other machines in LAN A and LAN B, the routes should already be there for LAN A to get to machine X on LAN B.

Quoted 8 lines

-My question is, what modifications (routings, or SNAT/DNAT, ...) can i do to allow machine in remote LAN A to access that machine X (in LAN B)?

Thanks,
Steven

#2 lore raw
In reply to Steven Mugassa

You have to add a static route on the machine X which say :

to the remote lan (the lan on the other side of the tunnel) use the Cipe Gateway. That's all.

Quoted 21 lines · Steven Mugassa

Hello,

I'm trying to implement VPN of two remote LANs(LAN A & LAN B) using CIPE (on RedHat 9.0). I have tried to follow instructions from "CIPE-How to" from tldp.org and it seems to work (the machines on the two LANs can ping & traceroute each other using the internal IP addresses)

However i have one more requirement which i need advice on how to do it:- -One of the machines(call it machine X) in LAN B is not using CIPE gateway as its gateway( it is going to the internet using another gateway, which is also in the same LAN). This machine don't need to access machines in LAN A, but machine in LAN A need to access this machine. Since this machine is using another gateway(not CIPE gateway), then the classical CIPE-based VPN implementation will not allow it to be accessible by remote LAN.

-My question is, what modifications (routings, or SNAT/DNAT, ...) can i do to allow machine in remote LAN A to access that machine X (in LAN B)?

Thanks,
Steven