Installing Accel-ppp on Ubuntu 20.04 LTS

For example, I will install Accel-ppp on Ubuntu Server 20.04 LTS.

Update the system and reboot if the kernel was updated:

sudo apt update
sudo apt upgrade
sudo reboot

Switch to the root user and install the necessary components:

sudo -i
apt-get install -y build-essential cmake gcc linux-headers-`uname -r` git libpcre3-dev libssl-dev liblua5.1-0-dev

Download Accel-ppp:

git clone https://github.com/accel-ppp/accel-ppp.git /opt/accel-ppp-code

Let’s install:

mkdir /opt/accel-ppp-code/build
cd /opt/accel-ppp-code/build/
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=Ubuntu20 -DCMAKE_BUILD_TYPE=Release /opt/accel-ppp-code/
make
cpack -G DEB
dpkg -i accel-ppp.deb

Load the necessary kernel modules:

lsmod | grep ipoe
modprobe ipoe
cp ./drivers/ipoe/driver/ipoe.ko /lib/modules/`uname -r`/kernel/net
depmod -a
cp ./drivers/vlan_mon/driver/vlan_mon.ko /lib/modules/`uname -r`/kernel/net
depmod -a
modprobe ipoe
modprobe vlan_mon
lsmod | grep ipoe
lsmod | grep vlan_mon

Let’s make them also loaded at the start of the operating system:

nano /etc/modules
ipoe
vlan_mon

Let’s edit the configuration file to suit our needs and make a test run:

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

I will give another example of a manual start:

/usr/sbin/accel-pppd -d -c /etc/accel-ppp.conf -p /var/run/accel-ppp.pid
netstat -tulpn | grep accel
ps ax|grep accel
killall accel-pppd

Check if Accel-ppp is running:

ps ax|grep accel
systemctl status accel-ppp

apt install net-tools
netstat -tulpn | grep :67
netstat -tulpn | grep :2000
netstat -tulpn | grep :2001
netstat -tulpn | grep :3799

Activate Accel-ppp autorun when the operating system starts:

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

Let’s do the optimization:

cp /lib/systemd/network/99-default.link /root/
rm /lib/systemd/network/99-default.link
cp /lib/udev/rules.d/99-systemd.rules /root/
nano /lib/udev/rules.d/99-systemd.rules

KERNEL!="lo"
to
KERNEL!="lo|ppp*|ipoe*"

See also my articles:
Accel-ppp installation
Installing Accel-ppp on Ubuntu 18
Install and configure accel-ppp (IPoE) for ABillS

Leave a comment

Leave a Reply