Differences
This shows you the differences between two versions of the page.
install_accel_rd [2024/02/07 22:00] – created system | install_accel_rd [2024/02/08 08:18] (current) – system | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== RADIUSdesk Accel-ppp Agent ====== | ====== RADIUSdesk Accel-ppp Agent ====== | ||
===== Overview ===== | ===== Overview ===== | ||
- | * The **RADIUSdesk Accel-ppp Agent** is a lightweight add-on | + | * The **RADIUSdesk Accel-ppp Agent** is a lightweight add-on |
- | * It uses a couple | + | * It uses a set of Lua-based libraries and scripts to accomplish |
===== Installation ===== | ===== Installation ===== | ||
- | ==== Please | + | ==== Please check ==== |
- | * Make sure the iptables package is installed. (It was not installed on my Raspberry Pi OS image) | + | * Make sure that the iptables package is installed. (It was not installed on my Raspberry Pi OS image) |
<code bash> | <code bash> | ||
sudo apt-get install iptables | sudo apt-get install iptables | ||
</ | </ | ||
- | * Make sure packet forwarding for IPv4 is enabled. Edit the **/ | + | * Make sure that packet forwarding for IPv4 is enabled. Edit the file **/ |
- | * Find and uncomment | + | * Find the line **net.ipv4.ip_forward=1** |
- | ==== The Rest ==== | + | ==== The rest ==== |
- | * We assume you already have a device | + | * We assume |
* Install the following packages. | * Install the following packages. | ||
<code bash> | <code bash> | ||
Line 32: | Line 32: | ||
===== Configuration ===== | ===== Configuration ===== | ||
- | ==== Startup and config reference | + | ==== Reference |
* Copy the following reference files: | * Copy the following reference files: | ||
<code bash> | <code bash> | ||
- | #config | + | #Configuration |
sudo cp / | sudo cp / | ||
- | #startup | + | #Startup |
cp / | cp / | ||
sudo cp / | sudo cp / | ||
</ | </ | ||
- | === Config | + | === Config |
- | * Configuration | + | * The configuration |
- | * Refer to the sample below | + | * Take a look at the following example |
<code bash> | <code bash> | ||
[internet] | [internet] | ||
Line 58: | Line 58: | ||
interface=eth0 | interface=eth0 | ||
</ | </ | ||
- | * In our setup we have a RADIUSdesk server | + | * In our setup we have a RADIUSdesk server |
* We also specify the fallback ip as 164.160.89.129 in the event when DNS does not resolve. | * We also specify the fallback ip as 164.160.89.129 in the event when DNS does not resolve. | ||
- | * Protocol | + | * The protocol |
- | * We also specify the interface | + | * We also specify the interface |
- | * In our case we have a Raspberry Pi 4 with an Enternet port (eth0) | + | * In our case, we have a Raspberry Pi 4 with an Enternet port (eth0), which we will use to run the PPPoE service. |
- | * The agent will then fetch the MAC Address | + | * The agent then retrieves |
* Make changes to this file so that it works with your environment and device. | * Make changes to this file so that it works with your environment and device. | ||
- | === Startup | + | === Startup |
- | * Disable | + | * Deactivate the automatic startup of Accel-ppp. |
<code bash> | <code bash> | ||
sudo systemctl disable accel-ppp | sudo systemctl disable accel-ppp | ||
</ | </ | ||
* The startup file is /// | * The startup file is /// | ||
- | * You also have to tweak it to work on the device | + | * You must also adapt it so that it works on the device |
- | * Refer to the sample below | + | * Take a look at the following example |
<code bash> | <code bash> | ||
#!/bin/bash | #!/bin/bash | ||
Line 88: | Line 88: | ||
</ | </ | ||
* The important line is the one with the iptables rule for NAT. | * The important line is the one with the iptables rule for NAT. | ||
- | * With our setup the WAN connection / uplink is the WiFi interface, **wlan0**. | + | * In our setup, the WAN connection / uplink is the WiFi interface, **wlan0**. |
- | * Make sure that your setup matches your device's configuration. | + | * Make sure that your setup matches |
<alert type=" | <alert type=" | ||
- | Since PPPoE works on Layer2, you can have both the PPPoE and the WAN connection on one physical interface e.g eth0 in our case with the Pi. | + | Since PPPoE works on Layer2, you can have both the PPPoE and WAN connection on a physical interface, e.g. eth0 in our case with the Pi. |
</ | </ | ||
- | * On the Raspberry Pi the rc.local script was called automatically | + | * On the Raspberry Pi, the rc.local script was called automatically |
* On Ubuntu you'll probably have to follow these instructions to ensure that it starts up during boot time | * On Ubuntu you'll probably have to follow these instructions to ensure that it starts up during boot time | ||
* http:// | * http:// | ||
- | * Everything | + | * Now everything |
- | ==== RADIUS | + | ==== RADIUS |
- | * If your Accel-ppp server | + | * If your Accel-ppp server |
- | * You can do its RADIUS | + | * You can perform |
- | * After you completed the on-boarding be sure to specify the Client Type as **Accel-On-RADIUSdesk**. | + | * Once you have completed the onboarding, make sure you specify the client type as **Accel-On-RADIUSdesk**. |
- | * This will allow the code to follow | + | * This will allow the code to apply the correct procedure when a user' |
{{: | {{: | ||