[pptp-server] Want pptpd server to assign routes to clients when then connect
webmaster at lotr.ws
Thu Jun 6 12:22:00 CDT 2002
You have it right in the second part. I want the server to assign routes to
the client when the client connects to the server.
Currently after the client connects to the pptpd server, I have to (from the
client, in this case windows) type something along the lines of:
route add 192.168.3.0 192.168.1.0 (shortened for brevity, don't worry about
Then everything works fine for the client to access that network.
I need some way for the server to do that for the client when the client
It might be simple, but I suspect it is more involved otherwise it would
seem that it would be more readily available.
Any suggestions on how to pull this off anyone?
From: Igor Maciel Macaubas [mailto:igor.maciel at mailbr.com.br]
Sent: Thursday, June 06, 2002 9:47 AM
To: Hawke; pptp-server at lists.schulte.org
Subject: Re: [pptp-server] Want pptpd server to assign routes to clients
when then connect
Well, let me see if I understand what you want to do:
You want to add a route to your clients when they connect, at Server side?
If is this what you want, you can use the ip-up.local script, that depending
of the version of your pppd, may be located in /etc/ppp/ or
This is script is executed imediatly after the connection of the client - so
you can make a bash script to add this routes dinamically.
But if you want to add a route at client side, I don't think that pppd/pptpd
can carry this. I think that you want to make some really crazy system to do
If you want any help in seting-up this script (ip-up.local), please send me
e-mails in private and be sure that i'll help as I can!
igor.maciel at mailbr.com.br
----- Original Message -----
From: "Hawke" <hawke.robinson at dev2dev.biz>
To: <pptp-server at lists.schulte.org>
Sent: Thursday, June 06, 2002 11:04 AM
Subject: [pptp-server] Want pptpd server to assign routes to clients when
> I'm already aware of the option in the client side (windows) vpn
> option to use default route. However, unless I want all their Internet
> traffic to run through my vpn server that is not a good option.
> Everything works fine in that the vpn client connects, is given an ip,
> I want to be able to add (as many as needed) routes to the client upon
> Currently I have to manually type the add route command from the command
> line after the client connects to get the desired results. Sure, I can
> script that on the client side, but when there can be scores of different
> people connecting that is inefficient to have to distribute and setup this
> script for everyone. I want the server to assign the routes in typical ISP
> fashion. Since pptp is based on ppp isn't there some simple script I can
> somewhere that will do this?
> Any help is most appreciated.
> pptp-server maillist - pptp-server at lists.schulte.org
> --- To unsubscribe, go to the url just above this line. --
More information about the pptp-server