My problem is that my ISP keep changing the IP assigned to me and I use DynDNS so I can access my PC wherever I am. Ofcourse I need to set up a bit of a firewall to atleast defend from some wannabe hackers or whatever they are called (China guys).
Anyway, I found a small chunk of code that finds my Public IP whenever the firewall script is run. Ive set this in rc.local. However, I found that sometimes, my ISP just changes my IP leaving my iptables using the old IP.
I usually go to my router and re run the iptable script. Its kind of a pain to do especially when I am out of town and had to access my PC from there.
Is there as easy way to do this or will I have to find a script I can run in a cron to detect the change in IP.