Main Page | Report this Page
Linux Forum Index  »  Linux Networking  »  poptop setting for subnet traffic...
Page 1 of 1    

poptop setting for subnet traffic...

Author Message
joe...
Posted: Mon Nov 02, 2009 3:38 am
Guest
Hello Is there a way to set up poptop so only traffic to my office
subnet goes across vpn. In other words I want to set up poptop so if I
am at home and I go to google, the traffic goes directly to google and
not through my vpn. Is this possible . Thanks.
 
joe...
Posted: Mon Nov 02, 2009 5:27 am
Guest
On Nov 2, 9:42 am, Pascal Hambourg <boite-a-s... at (no spam) plouf.fr.eu.org>
wrote:
Quote:
Hello,

joe a écrit :

Hello Is there a way to set up poptop so only traffic to my office
subnet goes across vpn. In other words I want to set up poptop so if I
am at home and I go to google, the traffic goes directly to google and
not through my vpn. Is this possible . Thanks.

Poptop runs on the PPTP server, and you want this on the PPTP client.
PPTP uses the PPP protocol which in turn uses the IPCP protocol to pass
IPv4 parameters, and I don't know any IPCP options allowing the server
to "push" routes to the client like OpenVPN does. On the client side, if
it uses pppd you can add a command in the script /etc/ppp/ip-up or
create a script in /etc/ppp/ip-up.d/ to add the route to your office
subnet when the PPTP link is up. On Debian I would do this :

/etc/ppp/ip-up.d/pptp :

#!/bin/bash
Thanks for the reply Ill leave like this for now. My client is win

xp.
Quote:

# Environnement variables :
#    Variable     Name                          Example
#    PPP_IFACE    Interface name                ppp0
#    PPP_TTY      The tty                       ttyS1
#    PPP_SPEED    The link speed                38400
#    PPP_LOCAL    Local IP number               12.34.56.78
#    PPP_REMOTE   Peer  IP number               12.34.56.99
#    PPP_IPPARAM  Optional "ipparam" value      foo

# match the ipparam string in pppd options if you have several peers
if [ $PPP_IPPARAM == "pptp_office" ]; then
  ip route add <office_subnet> dev $PPP_IFACE
fi
 
Pascal Hambourg...
Posted: Mon Nov 02, 2009 9:42 am
Guest
Hello,

joe a écrit :
Quote:
Hello Is there a way to set up poptop so only traffic to my office
subnet goes across vpn. In other words I want to set up poptop so if I
am at home and I go to google, the traffic goes directly to google and
not through my vpn. Is this possible . Thanks.

Poptop runs on the PPTP server, and you want this on the PPTP client.
PPTP uses the PPP protocol which in turn uses the IPCP protocol to pass
IPv4 parameters, and I don't know any IPCP options allowing the server
to "push" routes to the client like OpenVPN does. On the client side, if
it uses pppd you can add a command in the script /etc/ppp/ip-up or
create a script in /etc/ppp/ip-up.d/ to add the route to your office
subnet when the PPTP link is up. On Debian I would do this :

/etc/ppp/ip-up.d/pptp :

#!/bin/bash

# Environnement variables :
# Variable Name Example
# PPP_IFACE Interface name ppp0
# PPP_TTY The tty ttyS1
# PPP_SPEED The link speed 38400
# PPP_LOCAL Local IP number 12.34.56.78
# PPP_REMOTE Peer IP number 12.34.56.99
# PPP_IPPARAM Optional "ipparam" value foo

# match the ipparam string in pppd options if you have several peers
if [ $PPP_IPPARAM == "pptp_office" ]; then
ip route add <office_subnet> dev $PPP_IFACE
fi
 
Pascal Hambourg...
Posted: Mon Nov 02, 2009 10:40 am
Guest
joe a écrit :
Quote:

My client is win xp.

Then you should ask in a Windows networking newsgroup.
If there is no other solution, you can add the route manually after the
PPTP connexion is established, even though it is not very convenient.
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Wed Dec 09, 2009 11:57 am