alias resolve error for Alias setup for url blocking

Started by Crypt, September 20, 2024, 01:07:19 AM

Previous topic - Next topic
Greetings all,

I have recently installed OPNsense and run into an issue with one URL I am trying to add as an alias, I get the following error:

alias resolve error BLACKLIST_BinaryDefence (error fetching alias url www.binarydefense.com/banlist.txt)
I have also tried:
alias resolve error BLACKLIST_BinaryDefence (error fetching alias url https://www.binarydefense.com/banlist.txt)
alias resolve error BLACKLIST_BinaryDefence (error fetching alias url www.binarydefense.com)

And continue to get the same error.  I can hit the URL from a browser, and I ran fetch https://www.binarydefense.com/banlist.tx from the command line and it worked with no issues. 

I've been playing with this issue for a couple of days and done some searching online, but unable to find a resolution.  Any assistance would be greatly appreciated

The issue here is that either curl or python (more likely) doesn't seem follow redirects, and there may be good resons not to.

Probably best to open an issue on Github referencing this thread, so Ad and Franco can chime in and clarify what is the expected behavior and what could be done in this case. ( v8xcdh6zk4dy.wpeproxy.com is likely a reverse proxy, yet there's no 1:1 replacement for www.binarydefense.com - v8xcdh6zk4dy.wpeproxy.com in that URL you provided )

nslookup www.binarydefense.com

Non-authoritative answer:
Name:    v8xcdh6zk4dy.wpeproxy.com
Addresses:  141.193.213.20
          141.193.213.21
Aliases:  www.binarydefense.com

In the mean time, would you happen to know where the blacklists are kept in OPNsense terminal? 


I have the same problem. Can you use https://www.binarydefense.com/banlist.txt as an alias? After I did it, I checked that the number of rules loaded was 0. Other rules can be loaded correctly, but this one cannot. It's very strange.


Quote from: Crypt on September 20, 2024, 01:07:19 AM
Greetings all,

I have recently installed OPNsense and run into an issue with one URL I am trying to add as an alias, I get the following error:

alias resolve error BLACKLIST_BinaryDefence (error fetching alias url www.binarydefense.com/banlist.txt)
I have also tried:
alias resolve error BLACKLIST_BinaryDefence (error fetching alias url https://www.binarydefense.com/banlist.txt)
alias resolve error BLACKLIST_BinaryDefence (error fetching alias url www.binarydefense.com)

And continue to get the same error.  I can hit the URL from a browser, and I ran fetch https://www.binarydefense.com/banlist.tx from the command line and it worked with no issues. 

I've been playing with this issue for a couple of days and done some searching online, but unable to find a resolution.  Any assistance would be greatly appreciated