OPNsense Forum
Archive => 16.1 Legacy Series => Topic started by: cirtes on April 05, 2016, 07:14:16 pm
-
Hi folks,
I'm getting an error when loading firewall rules and cannot pin the cause.
There were error(s) loading the rules:no IP address found for street: The line in question reads - [/i][/font]
Is there some pointer this message can lead to so I don't have to brute-force removal of all the rules one by one?
-
This Alias may be the culprit.
<aliases>
<alias>
<name>WS</name>
<detail><![CDATA[Entry added Tue, 05 Apr 2016 10:55:36 -0700||Entry added Tue, 05 Apr 2016 10:55:36 -0700||Entry added Tue, 05 Apr 2016 10:55:36 -0700]]></detail>
<type>url</type>
<descr><![CDATA[WeatherStreet Alias ]]></descr>
<aliasurl>www.weatherstreet.com</aliasurl>
<aliasurl>www.weather.gov</aliasurl>
<aliasurl>weather.unisys.com</aliasurl>
<address>Weather Street: ... <snip> ...
</alias>
</aliases>
In the <address> tag which I truncated, the Alias gets stuffed with large amount of metadata that doesn't resolve to anything.
I have attached the saved Alias configuration.
-
Hi cirtes,
You probably selected the wrong type for your alias (I expect you needed host here), there is some documentation of the types available in our docs section.
https://docs.opnsense.org/manual/aliases.html?highlight=alias (https://docs.opnsense.org/manual/aliases.html?highlight=alias)
I've created an issue for the corrupt download (https://github.com/opnsense/core/issues/877 (https://github.com/opnsense/core/issues/877)), it would be better to check the output before writing it to the config.
Regards,
Ad
-
Hi Ad, yes, that fixed it.
I created the Alias as "URL(s)" and not "Host(s)".
Once I configured the Alias to use the "Host(s)" the problem was resolved and the rule actually triggers correctly.
The link to the documentation helped.
I'm not sure how to mark [Resolved} but we can close this one.
-
Thanks for reporting back, I will mark this one solved and keep the validation issue on github.