A how-to by niels.
Published: 2020-08-17 11:43:32. Updated: 2020-08-17 11:43:32.
This how-to explains how to build Ubuntu/Debian packages for accel-ppp. Accel-ppp is a PPP based VPN daemon that supports PPTP, SSTP, L2TP and more.
Ubuntu 20.04 server. Other Debian/Ubuntu based distributions are likely to work as well.
We'll be using accel-ppp, which is an advanced PPP daemon that supports PPTP, SSTP and more. Unfortunately it's not included with Ubuntu, so we'll have to build it ourselves.
First we setup our build environment:
sudo apt-get install -y build-essential cmake gcc linux-headers-`uname -r` git libpcre3-dev libssl-dev liblua5.1-0-dev
Then we download the accel-ppp sources to our home directory
git clone https://github.com/accel-ppp/accel-ppp.git ~/accel-ppp
We proceed by building the binaries:
cd ~/accel-ppp
mkdir build
cd build
cmake -DBUILD_IPOE_DRIVER=TRUE -DBUILD_VLAN_MON_DRIVER=TRUE -DCMAKE_INSTALL_PREFIX=/usr -DKDIR=/usr/src/linux-headers-`uname -r` -DLUA=TRUE -DCPACK_TYPE=Ubuntu20 ..
make
Finally, we create the DEB package:
cpack -G DEB
Install the accel-ppp.deb package in your preferred way. I'm using the command-line:
sudo dpkg -i ~/accel-ppp/build/accel-ppp.deb