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":
After that, install the hotspot package on the System/Package manager/Packages
page
Also make sure the device is on the latest firmware.
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.
and click on the "Generate Wireguard keys" and use them to create Wireguard interface on your device.
set the public and private keys as well as IP from the Powerlynx instance
Add a Peer and configure it with the public key from Powerlynx (input here)
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
:
Setup hotspot server
Next navigate to hotspot package (1):
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:
Under General:
- Enable the hotspot
- Set the hotspot network range & IP (different from any existing IP used on the LAN or WLAN)
- Set Authentication mode to Radius
- Set Landing page to External
- Enable Password encoding
- Set Landing page address to
https://powerlynx_domain/redirect-flow
where powerlynx_domain should be replaced by your Powerlynx domain - Set Success page to
Original URL
After that, In the Radius tab:
- Set Radius server #1 to
172.16.0.1
- 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. - Set Radius secret key to the key used in Powerlynx under Locations - Hotspot
Add the NAS identifier into the SSIDs field under your location and under your splash page:
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
Then make sure wireless has no password and no encryption:
Walled garden
In the walled garden section set:
one.powerlynx.app
fra1.digitaloceanspaces.com
one.powerlynx.app
fra1.digitaloceanspaces.com
Where one.powerlynx.app
is your Powerlynx domain. Replace it with your URL.
Also set any other required walled garden entries that might be required by your payment gateway/provider (see the individual payment gateways here