Re: How to add PPTP routes to alternate routing tables?

James Cameron <[email protected]> Mon, 16 Jul 2012 12:05:15 +1000
Newsgroups gmane.network.poptop
Organization Netrek Vanilla Server Dictator
Message-ID <[email protected]>
I can't say if you are on the right track with your routing, because I
don't understand the basis for it, but I can answer your question on
how to dynamically add routes when a client connects.

pptpd uses pppd for setting up the network interface and routes.

pppd can call out to scripts at the time the connection is made.

/etc/ppp usually contains these scripts.  You might write one that
recognises the client and makes routing changes accordingly.

The details are Linux distribution specific, and you didn't mention
which one you are using.  Look for ip-up.d in that directory.  Look
for references to ip-up, ip-pre-up and ip-down in man pppd.

-- 
James Cameron
http://quozl.linux.org.au/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/