Installing Accel-ppp on Ubuntu 18

On the test I will install Accel-ppp in Ubuntu Server 18.04.
I downloaded from the official site “ubuntu-18.04.2-live-server-amd64”.

After installing the system, update it and reboot if the kernel is updated:

sudo apt update
sudo apt upgrade
sudo reboot

Install the necessary components:

sudo apt install linux-headers-`uname -r` build-essential cmake libnl-3-dev libnl-utils libssl-dev libpcre3-dev libnet-snmp-perl libtritonus-bin lua5.1 liblua5.1-0-dev snmp git libelf-dev

I noticed on some versions of Ubuntu 18 that lua5.1 is not installed, in this case we will add a repository:

sudo add-apt-repository universe

Or you can install, for example, lua5.3 liblua5.3-dev and specify during the build:

-DLUA=5.3

If on this system Accel-ppp was previously collected from sources not in the /usr directory, then we will find the files and delete:

which accel-pppd
which accel-cmd
rm /dir/file

Download the new Accel-ppp source code:

cd /opt/
sudo git clone git://git.code.sf.net/p/accel-ppp/code accel-ppp-code

And install it from the package in /usr:

sudo mkdir /opt/accel-ppp-code/build
cd /opt/accel-ppp-code/build
sudo cmake -DCMAKE_INSTALL_PREFIX=/usr -DKDIR=/usr/src/linux-headers-`uname -r` -DRADIUS=TRUE -DSHAPER=TRUE -DLOG_PGSQL=FALSE -DNETSNMP=FALSE -DLUA=TRUE -DBUILD_IPOE_DRIVER=TRUE -DBUILD_VLAN_MON_DRIVER=TRUE -DCPACK_TYPE=Ubuntu18 -DCMAKE_BUILD_TYPE=Release /opt/accel-ppp-code
sudo make
sudo cpack -G DEB
sudo dpkg -i accel-ppp.deb

Installation is complete, copy the sample configuration file, edit it for your own needs and run:

sudo cp /etc/accel-ppp.conf.dist /etc/accel-ppp.conf
sudo nano /etc/accel-ppp.conf
sudo systemctl start accel-ppp

Check if Accel-ppp is running:

sudo ps ax|grep accel
sudo systemctl status accel-ppp
sudo netstat -tulpn | grep :67
sudo netstat -tulpn | grep :2000
sudo netstat -tulpn | grep :2001
sudo netstat -tulpn | grep :3799

Check whether Accel-ppp launch is enabled when the operating system starts and will be turned on if necessary:

sudo systemctl is-enabled accel-ppp.service
sudo systemctl enable accel-ppp.service

See also my articles:
Accel-ppp installation
How to update accel-ppp

Did my article help you? How about buying me a cup of coffee as an encouragement? Buy me a coffe.

Leave a comment

Leave a Reply