OPNsense Forum

Archive => 15.7 Legacy Series => Topic started by: smajor on November 05, 2015, 11:37:18 pm

Title: [SOLVED] 15.7.18 "not a valid source IP address or alias"
Post by: smajor on November 05, 2015, 11:37:18 pm
While you can now select an alias that uses a URL Table (IPs) - thanks for the bug fix! When using "URL Table (IPs)", you cannot set the Alias in a rule. You receive a "[alias name] not a valid source IP address or alias".

Using the same URL and creating an identical rule with a "URL IPs" works as expected.

Thanks!
Title: Re: 15.7.18 "not a valid source IP address or alias"
Post by: franco on November 06, 2015, 01:17:59 pm
Hi there,

Thanks and sorry, getting there step by step it seems. :)

I've filed a problem report here taking care of this next week hopefully: https://github.com/opnsense/core/issues/457


Cheers,
Franco
Title: Re: 15.7.18 "not a valid source IP address or alias"
Post by: AdSchellevis on November 06, 2015, 07:23:07 pm
Hi,

Found the issue, fixed with https://github.com/opnsense/core/commit/2cb7dc042c2030f9171c8d0bda06fbc959561b7a

Will probably be in the next release.

Cheers,

Ad
Title: Re: [SOLVED] 15.7.18 "not a valid source IP address or alias"
Post by: franco on November 06, 2015, 09:29:21 pm
I've backported it, you can apply this to your system locally with:

# cd /usr/local/etc/inc
# fetch https://raw.githubusercontent.com/opnsense/core/a869067cc89cdc5e109350ffdecd7fb7655f288a/src/etc/inc/util.inc
Title: Re: [SOLVED] 15.7.18 "not a valid source IP address or alias"
Post by: smajor on November 08, 2015, 12:08:43 am
I gave the fix a try, while I can now select it, I received an "Unresolvable source alias 'Panama' for rule 'PA 25 Block'" for that URL rule.

Using the non-Table version still works as expected with the same URL source.
Title: Re: [SOLVED] 15.7.18 "not a valid source IP address or alias"
Post by: AdSchellevis on November 08, 2015, 03:39:58 pm
Sorry about that, this stuff seems to be more broken then I thought....

This commiit https://github.com/opnsense/core/commit/78eadf3174a8e505c626031dc3043caa65408bcb should fix the issue, but given the fact that this probably hasn't worked for quite some time I can't promise this is the absolute last fix for this one.....
Title: Re: [SOLVED] 15.7.18 "not a valid source IP address or alias"
Post by: smajor on November 08, 2015, 07:31:42 pm
No worries at all, I'm glad to be able to contribute some troubleshooting time.
Title: Re: [SOLVED] 15.7.18 "not a valid source IP address or alias"
Post by: franco on November 08, 2015, 08:51:25 pm
Applied to stable as well, you can manually fix by:

# cd /usr/local/etc/inc
# fetch https://raw.githubusercontent.com/opnsense/core/b05657e166ce90cc485122f2debe7605a6f54e50/src/etc/inc/util.inc
Title: Re: [SOLVED] 15.7.18 "not a valid source IP address or alias"
Post by: smajor on November 10, 2015, 01:06:23 am
Thanks, it seems to have accepted a rule with that. Currently testing.  I think you meant:

fetch https://raw.githubusercontent.com/opnsense/core/b05657e166ce90cc485122f2debe7605a6f54e50/src/etc/inc/util.inc

 ;)
Title: Re: [SOLVED] 15.7.18 "not a valid source IP address or alias"
Post by: franco on November 10, 2015, 09:14:08 am
Yeah, of course. Sorry. Good catch. :)