linux #raspberrypi router with dynamic dns

廖华翰
2023-12-01
One more article about controlling your home network with the raspberry pi router. This article is the sequel of "  Creating a wireless router...  ". 
In this "episode" I will walkthrough the configuration of the dynamic dns for an easier access to your home network when you are not there! 
For this you need to create an account in   http://freedns.afraid.org/   and then create an A record on the Dynamic DNS section of the site. After this, click on "Wget Script". On the downloaded file you will see something like this: 
wget -q --read-timeout=0.0 --waitretry=5 --tries=400 --background http://freedns.afraid.org/dynamic/update.php?UPDATE_TOKEN  
The dns update token is represented above as UPDATE_TOKEN. 
Next step is: 
sudo apt-get install inadyn  
Edit the file "/etc/inadyn.conf" with the following content, replacing USER, PASSWORD, HOSTNAME, UPDATE_TOKEN. 
--username USER
--password PASSWORD
--update_period 60000
--forced_update_period 320000
--alias HOSTNAME, UPDATE_TOKEN
--background
--dyndns_system default@freedns.afraid.org
--syslog
 
Then add the update instruction to root crontab: 
sudo crontab -e */10 * * * * /usr/sbin/inadyn  
The last step is to configure your root to Forward the network traffic into your rooter ip. You can check "/var/log/syslog" for errors on the update. 
Next step for me is configure the openvpn to allow full network access to the others raspberries. 
If you like this Share it and will be like a bookmark for your future remembering. 
 类似资料: