Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

poptop setting for subnet traffic

10 views
Skip to first unread message

joe

unread,
Nov 2, 2009, 8:38:47 AM11/2/09
to
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.

Pascal Hambourg

unread,
Nov 2, 2009, 9:42:39 AM11/2/09
to
Hello,

joe a ᅵcrit :

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

joe

unread,
Nov 2, 2009, 10:27:06 AM11/2/09
to
On Nov 2, 9:42 am, Pascal Hambourg <boite-a-s...@plouf.fr.eu.org>
wrote:
> 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.

Pascal Hambourg

unread,
Nov 2, 2009, 10:40:39 AM11/2/09
to
joe a ᅵcrit :

>
> 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.

0 new messages