Csányi Pál
2016-11-16 18:11:34 UTC
Hi,
on my Gentoo Linux system I'm running Shorewall 5.0.4 .
I wish to start a script that is refreshing my Dynamic IP address.
The script follows:
[code]
#!/bin/bash
# Csanyi Pal
echo "Refreshing my Dynamic IP address.."
username="myusername"
password="mypassword"
hostname="myipdnshostname"
if [ "$new_ip_address" ] && [ "$new_ip_address" !=
"$old_ip_address" ]; then
curl -v
"http://$username:$***@update.ipdns.hu/update?hostname=$hostname&myip=$new_ip_addres
s" "$new_ip_address"
fi
[/code]
Where to put this script and how to set Shorewall to start this script
after Shorewall started?
on my Gentoo Linux system I'm running Shorewall 5.0.4 .
I wish to start a script that is refreshing my Dynamic IP address.
The script follows:
[code]
#!/bin/bash
# Csanyi Pal
echo "Refreshing my Dynamic IP address.."
username="myusername"
password="mypassword"
hostname="myipdnshostname"
if [ "$new_ip_address" ] && [ "$new_ip_address" !=
"$old_ip_address" ]; then
curl -v
"http://$username:$***@update.ipdns.hu/update?hostname=$hostname&myip=$new_ip_addres
s" "$new_ip_address"
fi
[/code]
Where to put this script and how to set Shorewall to start this script
after Shorewall started?
--
Best, Pali
------------------------------------------------------------------------------
Best, Pali
------------------------------------------------------------------------------