New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
iptables rules base on Dymanic DNS
Hi,
Is it possible to set iptable allow a traffic base on Dynamic DNS?
e.g. my home internet has dynamic ip address. I have setup to update aaabbbccc.com to my home ip address. Is there a way to configure iptable to allow SSH only if source ip match whatever ip aaabbbccc.com domain resolve to?
Thanks
Comments
Never tried this script: http://techblog.conglomer.net/manage-a-dynamic-remote-ip-in-iptables-firewall-automatically/
Maybe that on cron with a hostname from dyndns.org could work.
I don't think iptables even knows that DNS exists. You'd have to set it from a script.
@dnwk - we are going to introduce dynamic DNS next week, if you combine it with shell script fetching the record value via our API (add it to cron or something) it should be possible to do.
CSF does this.
What is CSF?
ConfigServer Firewall: http://www.configserver.com/cp/csf.html
It's excellent and usually one of the first things I install on a box.