1It is possible to run from inetd but you must consider 2the following: 3 4 You use pptpctrl not pptpd. 5 6 You must put pptpctrl in /etc/services as port 1723. 7 8 You must configure pppd to allocate IP addresses (eg, 9 use /etc/options.ttyXX, the pppd erpcd hack and an erpcd, 10 or some other modification to pppd). 11 12 libwrap is not used in this mode - you should use tcp 13 wrappers in inetd like with any other network service. 14 15 The configuration file is ignored in this mode. 16 17 An example command line is: 18 19 pptpctrl 0 0 0 0 0 20 21 This would be put in inetd.conf as (assuming Linux tcp 22 wrappers): 23 24 pptpctrl stream tcp nowait root /usr/sbin/tcpd /usr/local/sbin/pptpctrl 0 0 0 0 0 --buffer-- 25 26 Note the --buffer-- is just to make the process name 27 longer so it can modify its name to something meaningful. 28 29 First option: debugging (0 for off, 1 for on) 30 Second option: PPP options file (0 for off, 1 followed 31 by a file name for on) 32 Third option: TTY speed (0 for default, 1 followed 33 by a speed to set a speed) 34 Fourth option: Local IP address (0 for pppd-determined, 35 1 followed by an address to set) 36 Fifth option: Remote IP address (0 for pppd-determined, 37 1 followed by an address to set) 38 39 Another example, debugging on, alternate config file, 40 setting tty speed and specifying the local IP address: 41 42 pptpctrl 1 1 /etc/ppp/options.PPTP 1 115200 1 192.168.0.1 0 43 44David Luyer, luyer@ucs.uwa.edu.au 45Tue Jun 15 16:06:05 WST 1999 46