OPNsense Forum

Archive => 16.1 Legacy Series => Topic started by: cirtes on April 05, 2016, 07:14:16 pm

Title: [SOLVED] Error Loading Rules: no IP address found for Street: The line in quest.
Post 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?
Title: Re: Error Loading Rules: no IP address found for Street: The line in question ...
Post by: cirtes on April 05, 2016, 08:05:48 pm
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.
Title: Re: Error Loading Rules: no IP address found for Street: The line in question ...
Post by: AdSchellevis on April 05, 2016, 10:00:56 pm
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
Title: Re: Error Loading Rules: no IP address found for Street: The line in question ...
Post by: cirtes on April 05, 2016, 10:09:15 pm
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.
Title: Re: Error Loading Rules: no IP address found for Street: The line in question ...
Post by: AdSchellevis on April 06, 2016, 10:45:16 am
Thanks for reporting back, I will mark this one solved and keep the validation issue on github.