[pptp-server] linux2linux

Cowles, Steve Steve.Cowles at gte.net
Wed Aug 23 17:59:49 CDT 2000


I'm confused on what your referring to as remote lan. The central office LAN
or the LAN where the pptp client is running.

If your referring to the LAN where the PPTP client is running routing to the
Central Office, then...

The pptp client does NOT add the network route automatically when the tunnel
is brought up. Thus you will need to add this route manually. I simply wrote
a script to 1) bring up the tunnel (pptp client) and 2) add the network
route.

Say that your central office lan's address is 192.168.1.0/24 and your linux
system running the pptp client is assigned an address of 192.168.1.51 after
the tunnel is brought up, you would then execute the following (as root) to
add the network route to the system running pptp client.

I'm going from memory here... but I think this is correct syntax

route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.51
  or
route add -net 192.168.1.0 netmask 255.255.255.0 dev ppp0

Now if your referring to the "Central Office" LAN systems being able to
route back to your pptp client, then the PopTop server "MUST" be setup to
proxyarp for your remote ip address. In your /etc/ppp/options file, make
sure you include the "proxyarp" option. You can tell if pppd (PopTop) is
properly assigning eth* to act as a proxarp for your connection by examining
/var/log/messages and look for a line that says something like "Found eth*
for proxyarp" shortly after the lines that specifies the local/remote ip
addresses when the tunnel is brought up. BTW: If PopTop is running on the
linux firewall, the proper ipchain rules "might" need to be added. Your post
does not mention any relevant info regarding this area.

Steve Cowles

> -----Original Message-----
> From: jesus soro [mailto:jesussoro at hotmail.com]
> Sent: Wednesday, August 23, 2000 11:37 AM
> To: pptp-server at lists.schulte.org
> Subject: [pptp-server] linux2linux
> 
> 
> I want to connect my remote office with a linux pptp client 
> to the central office with the pptp linux server. I have
> established the pptp connection but i don't know how to route
> the traffic from the remote LAN to the pptp tunnel.
> 
> Any ideas?
> 
> Thanks



More information about the pptp-server mailing list