[pptp-server] Control over device name (ppp0, ppp1, ppp2)

James Cameron cameron at fax.sno.cpqcorp.net
Wed Apr 3 16:58:07 CST 2002


I had same problem.  Solution I used was to change the firewall scripts
so that they accepted the interface name as an argument, and used
ipparam option on pppd to identify the purpose of the interface.

So, my ISP connection has "ipparam isp", and my pptp connection has
"ipparam pptp".  In the scripts executed when an interface comes up (in
/etc/ppp/ip-up.d/* for my system, Debian) the parameter is checked, and
the interface name is used.

One of my ip-up scripts detects the pptp connection coming up and adds
routes, like this;

#!/bin/sh
if [ $PPP_IPPARAM == "pptp" ]; then
    route add -net 10.1.0.0/8 dev ${IFNAME}
fi

Hope that helps.

-- 
James Cameron                                 (james.cameron at compaq.com)

"Think of it as evolution in action." -- Larry Niven



More information about the pptp-server mailing list