[Ferm] Simulate (-n) does not catch missing variables

Max Kellermann max at duempel.org
Thu Sep 26 16:13:23 CEST 2013


On 2013/09/26 11:42, Anders Nordby <ferm at anders.fupp.net> wrote:
> Hi,
> 
> I wrote one mistake in a rule file. I have defined:
> 
> @def $NET_BUDSTIKKA_BERGEN = (212.4.55.189);
> 
> However I forgot a dollar sign when trying to use it:
> 
> saddr NET_BUDSTIKKA_BERGEN ACCEPT;
[...]
> Why? Seems like a bug to me.

What if your your /etc/hosts file contains the following line?

 192.168.1.42 NET_BUDSTIKKA_BERGEN

ferm itself does not verify this; it merely verifies that your input
file is valid ferm syntax, but no more.  ferm does not resolve host
names.  It's not a ferm bug.


More information about the Ferm mailing list