OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: MakesSense on January 13, 2019, 10:25:03 pm

Title: 18.7.10 Suricata 4.1.2 GeoIP
Post by: MakesSense on January 13, 2019, 10:25:03 pm
Hi

Anyone else having problems with geoip rules in Suricata 4.2.1? Every time I try to load a rule with geoip Suricata throws an error...
Title: Re: 18.7.10 Suricata 4.1.2 GeoIP
Post by: The_Sage on January 14, 2019, 08:31:43 am
GEO Ip has been made redundant in Suricata.

Use Firewall alias, Geo IP instead. (cant find link)
Title: Re: 18.7.10 Suricata 4.1.2 GeoIP
Post by: franco on January 14, 2019, 08:51:18 am
This seems to be a problematic complication with the GeoIP database provider not publishing its database (in the old format) anymore:

https://svnweb.freebsd.org/ports/head/UPDATING?r1=490211&r2=490210&pathrev=490211

19.1 removes the GeoIP database from intrusion prevention since it can't be used anymore and we'll see if this also impacts firewall aliases.

But it's correct that firewall aliases is the way to go whether or not we have to fix them to stay operational.


Cheers,
Franco

Title: Re: 18.7.10 Suricata 4.1.2 GeoIP
Post by: chemlud on January 14, 2019, 08:53:13 am
I have geoblocking activated in suricata as well, might this be related to the "loosing interface" issue with 18.7.10?
Title: Re: 18.7.10 Suricata 4.1.2 GeoIP
Post by: MakesSense on January 14, 2019, 09:21:20 am
Thanks for the info! I will use firewall for geoblock then:-)

Title: Re: 18.7.10 Suricata 4.1.2 GeoIP
Post by: franco on January 14, 2019, 10:18:44 am
@chemlud Could be, but entirely unsure.

We checked the firewall aliases GeoIP and it uses the version 2 database so we're good on this front. Best to migrate now... :)


Cheers,
Franco
Title: Re: 18.7.10 Suricata 4.1.2 GeoIP
Post by: MakesSense on January 14, 2019, 10:41:54 am
We checked the firewall aliases GeoIP and it uses the version 2 database so we're good on this front. Best to migrate now... :)


Cheers,
Franco

Super, thanks franco! Migration done! :)
Title: Re: 18.7.10 Suricata 4.1.2 GeoIP
Post by: chemlud on January 14, 2019, 10:58:06 am
Any hint on HOW-TO move? :-)
Title: Re: 18.7.10 Suricata 4.1.2 GeoIP
Post by: franco on January 14, 2019, 11:41:22 am
Yes and no, there is a small introduction at https://docs.opnsense.org/manual/aliases.html#aliases-geoip although it displays the older GeoIP selector. It also later explains aliases in rules.


Cheers,
Franco
Title: Re: 18.7.10 Suricata 4.1.2 GeoIP
Post by: chemlud on January 14, 2019, 12:06:43 pm
OK, so I created an Alias with the respective countries and a block rule really high up with "Destination" -> alias with countries for geoblocking. Correct? :-)
Title: Re: 18.7.10 Suricata 4.1.2 GeoIP
Post by: franco on January 14, 2019, 03:13:27 pm
Yes, you want these in your LAN (or OPT) interfaces high up.

When using floating rules make sure to select "Quick" option as otherwise other rules could overwrite the decision.


Cheers,
Franco