Accept DNS Suffix
I currently have an ISP that has multiple address ranges that I wish to accept in my iptables ruleset. Is it possible for me to use the DNS Suffix instead of the actual ip as they are currently dynamically assigned. e.g. iptables -s nsw.bigpond.net.au (current assigned address is cpe-203-45-103-100.nsw.bigpond.net.au).
Alternatively if the above is not available would I be able to setup a dyndns account and get my dsl modem to update the account and within my iptables config set: iptables -s homegw.dynalias.com
Thanks
Dominic
Quoted 6 lines · Dominic Caputo
I currently have an ISP that has multiple address ranges that I wish to accept in my iptables ruleset. Is it possible for me to use the DNS Suffix instead of the actual ip as they are currently dynamically assigned. e.g. iptables -s nsw.bigpond.net.au (current assigned address is cpe-203-45-103-100.nsw.bigpond.net.au).
Not possible*. iptables is handling ip, not dns.
Quoted 3 lines
Alternatively if the above is not available would I be able to setup a dyndns account and get my dsl modem to update the account and within my iptables config set: iptables -s homegw.dynalias.com
See your distro documentation. openSUSE for example accepts custom scripts in /etc/sysconfig/network/if-up.d with which you can call iptables after dial-in. Anyway, not really a netfilter issue.
* I refrain from posting possibilities that would end up as Layering Violations. Also, this would be prone to either (a) deadlock or (b) slipthrough.
Jan
Quoted 5 lines
I currently have an ISP that has multiple address ranges that I wish to accept in my iptables ruleset. Is it possible for me to use the DNS Suffix instead of the actual ip as they are currently dynamically
assigned. e.g. iptables -s nsw.bigpond.net.au (current assigned
address is cpe-203-45-103-100.nsw.bigpond.net.au).
AFAIK: no.
An iptables rule will do a DNS lookup for a *hostname*, but only once:
when the rule is created.
Grts,
Rob
Dominic
Quoted 8 lines
I currently have an ISP that has multiple address ranges that I wish to
accept in my iptables ruleset. Is it possible for me to use the DNS Suffix
instead of the actual ip as they are currently dynamically assigned. e.g.
iptables -s nsw.bigpond.net.au (current assigned address is
cpe-203-45-103-100.nsw.bigpond.net.au).
dig -t ptr 254.127.45.203.in-addr.arpa
2 minutes with dig.. Tells me that Bigponds block for nsw is 203.45.64.0/18
CPE-203-45-64-0.nsw.bigpond.net.au.
CPE-203-45-127-255.nsw.bigpond.net.au.
Which is what you want but I'm not sure I'd want to let all the bots through my firewall
John