Typical usage of YFi Hotspot Manager include that NAS devices behind NAT firewalls try to connect to the FreeRADIUS server running on the server where YFi Hotspot Manager is installed on.
These NAT firewalls usually incorporate DHCP. With a changing IP the solution we use is to connect the NAS device via a pptp tunnel to the FreeRADIUS server.
You can read up more about the technology VPN Discussion
Install the pptpd service
sudo apt-get install pptpd
Edit the config file of the server ( sudo vi /etc/pptpd.conf) and change the bottom part:
# (Recommended) localip 10.20.30.1 #remoteip 10.20.30.2-10.20.30.254 #localip 192.168.0.1 #remoteip 192.168.0.234-238,192.168.0.245 # or #localip 192.168.0.234-238,192.168.0.245 #remoteip 192.168.1.234-238,192.168.1.245
This will cause the server to create a virtual interface with IP 10.20.30.1.
Poin to point virtual connections can be set-up from the NAS devices, using this IP when you specify the RADIUS server's IP.
Make the file where the clients to the pptpd program gets defiend writable by the user running Apache.
sudo chown root.www-data /etc/ppp/chap-secrets sudo chmod 664 /etc/ppp/chap-secrets
Restart the pptpd program to apply the changes
sudo /etc/init.d/pptpd restart
Next we will setup YFi Hotspot Manager's housekeeping scripts: Cron setup
Wiki: Home
Wiki: YfiTechNginx
Wiki: yfi_setup_FreeRADIUS
Wiki: yfi_setup_centos_cron
Wiki: yfi_setup_cron
Wiki: yfi_tech_vpn