IPtables web interface?? / Life with a dynamic ip...

Feb 16, 2005 2 Replies

I ssh to my works' webservers. However, I have a dynamic ip at home and have to constantly add my new ip address to the iptables. Is there a easy way around this, or is there some sort of backend webscript out there for adding ip via a web interface? Any direction or help is appriciated.



Thanks in advance,



Josh


Get yourself an account with a dynamic IP/hostname service for your home account (eg dyndns)

formatting link
and set up your home system so it updates the service when the IP is changed

On the work computer run a cron job every 10 minutes to check the IP for

formatting link
. If it has changed re-run iptables with the new IP address.

Robert L. Ziegler, in Linux Firewalls, 2nd ed., p.178, mentions that...

"One of the configuration parameters that you can specify in /etc/pump.conf is the path and name of an executable script that pump will run when it recieves an IP address and again at each lease renewal."

One could imagine an executable script that contains the iptables -R command for changing iptables every time the DHCP server issued a lease, although I'm not familiar with the global variables needed.

regards, roza9000

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required