OPNsense Forum

English Forums => General Discussion => Topic started by: hushcoden on April 04, 2026, 03:08:33 PM

Title: Help needed to create an alias
Post by: hushcoden on April 04, 2026, 03:08:33 PM
I'd want to create an alias using the block list https://rules.emergingthreats.net/fwrules/emerging-Block-IPs.txt and from my understanding - reading here (https://docs.opnsense.org/manual/aliases.html) - I should select the type 'networks', but unfortunately I get the error that the entry is not a network, can someone advise, please?

Tia.
Title: Re: Help needed to create an alias
Post by: Patrick M. Hausen on April 04, 2026, 03:18:55 PM
You should use "URL Table (IPs)"
Title: Re: Help needed to create an alias
Post by: hushcoden on April 04, 2026, 03:30:28 PM
Can you explain why? That link is a list of networks e.g. 2.57.122.0/24 and "URL Table (IPs)" should be used with a list of IP addresses, or am I missing something?
Title: Re: Help needed to create an alias
Post by: Patrick M. Hausen on April 04, 2026, 03:43:58 PM
IP adresses or networks in CIDR notation. But text with one entry per line. There's also an option for JSON formatted data.

All other object types are for data defined in the alias, not for downloding lists.
Title: Re: Help needed to create an alias
Post by: DEC740airp414user on April 04, 2026, 03:48:34 PM

I just created a new Alias:
URL/ IP.  and it created 1626 objects. 

url table IP did the same number.   but allowed a refresh cycle
Title: Re: Help needed to create an alias
Post by: hushcoden on April 04, 2026, 04:06:08 PM
So, can you please show me an example of a (block) list which would be compatible with the alias type "Networks"?
Title: Re: Help needed to create an alias
Post by: Patrick M. Hausen on April 04, 2026, 05:22:27 PM
Networks is locally entered data. So you can create an alias named e.g. rfc1918 and put 192.168.0.0/16, 172.16.0.0/12 and 10.0.0.0/18 in it.

Only URL and GeoIP aliases actively pull in data.
Title: Re: Help needed to create an alias
Post by: hushcoden on April 04, 2026, 06:41:29 PM
Alright, thanks Patrick.