Skip to content

Connect Teltonika hotspot with Powerlynx

In this manual, we will guide you on how to add a Teltonika router as a hotspot in Powerlynx. In our example, we are using a Teltonika router with wireless interfaces. Customers will connect to the Wi-Fi provided by the router.

Configure your device

Open your Teltonika router configs and switch the mode to "Advanced":

Teltonika advanced settings

After that, install the hotspot package on the System/Package manager/Packages page

Teltonika install hotspot

Also make sure the device is on the latest firmware.

Teltonika latest firmware

Go to the System/Maintenance/CLI page and log in to the CLI terminal. Use root as the login and your administrator password as the password. Use these commands to enable the Radius incoming port:

uci set chilli.@chilli[0].coaport='3799'
uci set chilli.@chilli[0].coanoipcheck='1'
uci commit
/etc/init.d/chilli restart
uci set chilli.@chilli[0].coaport='3799'
uci set chilli.@chilli[0].coanoipcheck='1'
uci commit
/etc/init.d/chilli restart

Teltonika CLI commands

Then make sure wireless has no password and no encryption:

Teltonika no encryption

Teltonika no encryption 2

Teltonika no password

Connect your device with Powerlynx using Wireguard.

Create a new hotspot in Powerlynx with NAS type set to Teltonika and connection type set to WireGuard.

Powerlynx add hotspot

and click on the "Generate Wireguard keys" and use them to create Wireguard interface on your device.

Teltonika wireguard

set the public and private keys as well as IP from the Powerlynx instance

Teltonika wireguard 2

Teltonika wireguard 3

Add a Peer and configure it with the public key from Powerlynx (input here)

Teltonika wireguard peer

Teltonika wireguard peer port

Use this public key: lPYDyIwk5X4tyUMNT9ny/nyPSyHwk31mzm2ahOH7iV0=

And all other values as per the screenshots above.

Confirm the VPN is up by using the Diagnostics tool located on the System/Maintenance/Troubleshoot page to ping 172.16.0.1:

Teltonika wireguard ping

Setup hotspot server

Next navigate to hotspot package (1):

Teltonika setup hotspot server

and set up a hotspot on the default wireless interface (SSID) (2 & 3) - this will create the hotspot you see in step 4.

Then edit the hotspot:

Teltonika edit hotspot

Under General:

  1. Enable the hotspot
  2. Set the hotspot network range & IP (different from any existing IP used on the LAN or WLAN)
  3. Set Authentication mode to Radius
  4. Set Landing page to External
  5. Enable Password encoding
  6. Set Landing page address to https://powerlynx_domain/redirect-flow where powerlynx_domain should be replaced by your Powerlynx domain
  7. Set Success page to Original URL

Teltonika hotspot general

Teltonika hotspot general 2

After that, In the Radius tab:

  1. Set Radius server #1 to 172.16.0.1
  2. Put a unique value in the NAS identifier field that will be used to match the router with a location and a splash page in Powerlynx, for instance, teltonika. This value should be inserted into Powerlynx's location SSIDs and splash page SSIDs fields.
  3. Set Radius secret key to the key used in Powerlynx under Locations - Hotspot

Teltonika radius hotspot

Powerlynx hotspot

Add the NAS identifier into the SSIDs field under your location and under your splash page:

Powerlynx location

Powerlynx splash page

Walled garden

In the walled garden section set:

*.digitaloceanspaces.com 
*.powerlynx.app
*.digitaloceanspaces.com 
*.powerlynx.app

Also set any other required walled garden entries that might be required by your payment gateway/provider (see the individual payment gateways here

Teltonika walled garden