I have a FreeBSD server with a static IP address and a home PC with a dynamic IP address accessible through two dynamic DNS services for redundancy.
In /etc/pf.conf I have the line (line 35):
to identify the dynamic DNS services. CRON flushes and reloads the rules to keep the address current.
I use this to ensure the server's SSH port is only visible from my home.
However, this morning I received several e-mails from CRON containing:
Obviously, this is not what I'm trying to achieve by having two dynamic DNS services. I don't want to double the chance of failure; I want to reduce it through redundancy, so I need pfctl(8) to ignore any host in myhosts which is unavailable for some reason rather than to error out. How can I do this?
In /etc/pf.conf I have the line (line 35):
Code:
table <myhosts> { me.xxx.com, me.yyy.com }
I use this to ensure the server's SSH port is only visible from my home.
However, this morning I received several e-mails from CRON containing:
Code:
no IP address found for me.xxx.com
/etc/pf.conf:35: could not parse host specification
pfctl: Syntax error in config file: pf rules not loaded
Obviously, this is not what I'm trying to achieve by having two dynamic DNS services. I don't want to double the chance of failure; I want to reduce it through redundancy, so I need pfctl(8) to ignore any host in myhosts which is unavailable for some reason rather than to error out. How can I do this?