GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PDEL_PPP(3) FreeBSD Library Functions Manual PDEL_PPP(3)

pdel_ppp
PPP library for VPNs that uses netgraph(3)

PDEL Library (libpdel, -lpdel)

#include <sys/types.h>
#include <pdel/ppp/*.h>

The libpdel(3) library includes a PPP stack with support for:
  • The IP network layer (IPCP)
  • Authentication via PAP, CHAP-MD5, MS-CHAPv1, MS-CHAPv2, and RADIUS
  • The PPTP transport layer with PPTP server support
  • The L2TP transport layer with L2TP server support
  • Microsoft MPPE encryption

This library works in conjunction with the various netgraph(4) nodes that come with the FreeBSD kernel and is a PPP library, not a PPP server. That is, it handles all the PPP state machinery, while deferring all “policy” decisions to the application code via callbacks. For example, the application is ultimately responsible for acquiring and verifying user credentials, determining what IP addresses may be negotiated, etc.

The library constructs netgraph node graphs that have a “loose end” netgraph hook which transmits and receives IP packets; the application is responsible for connecting this hook to something useful (e.g., an ng_iface(3) node), configuring the interface, etc. The library makes available to the application all the information that it needs in order to properly do such configuration (such as the negotiated IP addresses).

At this time, there is no documentation other than this man page and the comments in the code. There is a fully functioning sample PPTP/L2TP test server in the test subdirectory that is statically configured and allows a single connection at a time. It demonstrates how to create a server and the application callbacks. The application callbacks are documented in the corresponding header files.

Because PPTP and L2TP are the only supported transport types, this library is most useful for implementing VPN software.

libpdel(3),

The PDEL library was developed at Packet Design, LLC. http://www.packetdesign.com/

Archie Cobbs ⟨archie@freebsd.org⟩
June 2, 2004 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.