Discussion:
[Shorewall-users] Using Extension Scripts for Dynamic IP address refresh?
Csányi Pál
2016-11-16 18:11:34 UTC
Permalink
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?
--
Best, Pali

------------------------------------------------------------------------------
Tom Eastep
2016-11-16 20:55:58 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Post by Csányi Pál
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
s" "$new_ip_address"
Post by Csányi Pál
fi [/code]
Where to put this script and how to set Shorewall to start this
script after Shorewall started?
See http://www.shorewall.org/shorewall_extension_scripts.htm. You
will probably want to put that logic in the 'started' script.

- -Tom
- --
Tom Eastep \ When I die, I want to go like my Grandfather who
Shoreline, \ died peacefully in his sleep. Not screaming like
Washington, USA \ all of the passengers in his car
http://shorewall.net \________________________________________________
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJYLMfdAAoJEJbms/JCOk0QK3MQAIv4iESp6lYvUm4NsJXuNMFW
63NWNwy1L3MuCzsQacg6M43HobH+xuDShTgx1jRtlBGXcloJ/3PVSbBYvx9b3kWi
Uoc4NK0Q0awS30e0FO7cVWKWjj8nztyk+XPvH00fpa5dAbKeT7XAamZtRa/IIz4K
AExY3IcDcDLYidNLJzNvy+G7BXRkUhJ1b+OdpHcSImob9SEV6rKEGSdPIdwtiZA8
X9RCY0hrpJTLXMY9fs3gyo7rWzaKXeQHj4OIGN4NIVe7HuKVnFlba5oANz48+Neb
ykw20Fd/Ds3gQWAAM6RJfzyYLo1Aa1Hgfn5W+F5AXv2CXa6kc3W4XFGq8VeaLxXz
/oCK7CoNw73beTbRPtqnXPgOu/HgJLZ31ErXtqgCu2oX8kp4rfOavVIjK3T73tX3
0hX6V+C1/zbkvlQEiEB3c2m1F6pFVLJUDmrihGl7qa6H2PQm9BqUCl4EXctOFw2P
bQxQUCVbHTc2KS2Np+BmrdvZjeskmin4D36FHxTSQyUvNHtJQM9n/Pwtc35zh3uF
KBMu9SAQSU2h/UShxVLU129hmqGqbCuc5BPV4dB2TMkV8bqRqBUudT3q4s32GOrD
UXAULmMaRxKGq/SQqjFMyLgEAOCp43kB9iBIolFt4cQ0pVlz6GznneKoQy5i30/s
fLh8/qZwqnIGsveFgszm
=jw4C
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Continue reading on narkive:
Loading...