PDA

View Full Version : Using names in shorewall firewall rules instead of IP addresses


adam
3rd November 2006, 17:36
Is it possible to somehow use a domain instead of an ip address to filter traffic?

Because my home ips are dynamic, they change from time to time which means i have to filter my SSH port like this

ACCEPT net:211.155.0.0-211.155.255.255 fw tcp ssh

Using a service like no-ip.com gives me a fixed address that updates everytime my ip address does, so is it possible to get shorewall to do this instead

ACCEPT net:test.no-ip.com fw tcp ssh

this would solve a lot of problems and close off complete ranges that can potentially access my SSH.

falko
4th November 2006, 17:41
Yes, you can use domain names. Have a look here: http://linuxgazette.net/103/odonovan.html