FolkeHacks - Linux PPPD per User Options Plugin
Linux PPPD per User Options Plugin
This is a hack for the linux pppd (www.samba.org/ppp
If you want to set options depending on a per user basis you probably need this pppd-plugin.
It is for ppp-servers (or pptpd with pppd) and not for use with pppd as client.
Copy the user_options.c
source-tree and add
the following line into the Makefile
(same directory) after the 'PLUGINS=' line:
PLUGINS += user_options.so
Then run make install
in the ppp-2.4.X
directory (or just in the plugins dir
if you know what you're doing).
1) Enable this plugin in your ppp config (e.g. /etc/ppp/options, /etc/ppp/pptpd-options or however):
2) define the per-user config directory:
(/etc/ppp/user-options is default
3) create the per user configfiles as needed:
config style is like any other ppp config file (see pppd(8)
All characters _not_ matching [a-zA-Z0-9_@#!+=% -] will be converted to '_
Not any ppp option can be set/overwritten, you can't change e.g. authentication options since the remote
peer is already authenticated at this point!
When you want to overwrite ms-dns
you have to set it twice (even if you only
have one wins-server/dns-server.
Patch for ppp-2.4.X: user_options.c
© 1999-2018 by