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:[email protected]/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

------------------------------------------------------------------------------
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to