README.inetd 1.5 KB

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