tortixd acl

Customer support forums for Atomic Protector (formerly Atomic Secured Linux). There is no such thing as a bad question here as long as it pertains to using Atomic Protector. Newbies feel free to get help getting started or asking questions that may be obvious. Regular users are asked to be gentle. :-)
KREATOR
New Forum User
New Forum User
Posts: 3
Joined: Thu Sep 10, 2015 5:46 am
Location: USA

tortixd acl

Unread post by KREATOR »

Hello,

I'm trying to restrict access to tortixd to one IP, but I have a dynamic IP address. I want to know if I can set a hostname in /etc/asl/firewall/tortixd-access-list instead of an IP?

Thanks.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: tortixd acl

Unread post by scott »

Thats something we just implemented in the asl-4.0-testing channel (v4.0.15-30.2 atm). I could actually use the feedback on the feature.

The nature of using hostnames here are that

1) the firewall will do a DNS lookup at the time the rule is loaded, and convert it to an IP address.
2) Once that is loaded, a change to the hostname wont have any effect until the firewall rules get reloaded.
3) When it is reloaded a DNS query is run and we hope that DNS server doesn't have the old IP still cached.

Nothing we can do about 1, since thats just how the IP stack works. But for item 2, what we can do is have a special rule class that reloads periodically (currently, every 24 hours), and 3 is outside the scope here. The dynamic DNS services usually set the TTL on a record pretty low to help with that.

If you want to try it out, upgrade to the latest build:
1) yum --enablerepo=asl-4.0-testing upgrade asl asl-web

2) set FW_DYN_WHITELIST="yes" in /etc/asl/config

3) add your hostname(s) to /etc/asl/dyn-whitelist

4) reload the firewall: service asl-firewall restart
Post Reply