Koozali.org: home of the SME Server

xt_geoip ERROR_COUNTRY_MAX

Offline philippe971

  • *
  • 15
  • +0/-0
xt_geoip ERROR_COUNTRY_MAX
« on: July 27, 2024, 08:08:26 PM »
Bonjour
Concernant la contrib Xt geoip, y a-t-il un moyen de dépasser la limite du nombre de pays bloqués ?
Merci

Online ReetP

  • *
  • 3,915
  • +6/-0
Re: xt_geoip ERROR_COUNTRY_MAX
« Reply #1 on: July 28, 2024, 12:21:51 AM »
Take a few steps back.

Describe your server. Version etc.

Describe where you saw the error - I have never seen it?

Paste the output from these:

Code: [Select]
config show geoip
Code: [Select]
config show | grep -i countries
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline philippe971

  • *
  • 15
  • +0/-0
Re: xt_geoip ERROR_COUNTRY_MAX
« Reply #2 on: July 28, 2024, 02:17:52 AM »
Le serveur est en version 10.1
La contrib Xt geoip fonctionne parfaitement, mais il est impossible de mettre plus de 50 pays
Lorsqu'on dépasse 50 pays, il y a une erreur ERROR_COUNTRY_MAX, comme l'indique https://wiki.koozali.org/Xt_geoip#global_masq_properties 50 pays max
Y a-t-il un moyen de dépasser la limite du nombre de pays bloqués ?

Online ReetP

  • *
  • 3,915
  • +6/-0
Re: xt_geoip ERROR_COUNTRY_MAX
« Reply #3 on: July 28, 2024, 02:31:34 AM »
I don't know if that is a limitation of the contrib or something else, but if you need more then use 'reverse' so you 'permit selected' rather than 'deny many'.

Some of mine simply have

!GB,ES,FR

Much easier to manage.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline philippe971

  • *
  • 15
  • +0/-0
Re: xt_geoip ERROR_COUNTRY_MAX
« Reply #4 on: July 28, 2024, 02:37:36 AM »
Merci pour la réponse, je vais regarder ça.

Offline Jean-Philippe Pialasse

  • *
  • 2,877
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: xt_geoip ERROR_COUNTRY_MAX
« Reply #5 on: July 30, 2024, 07:24:06 PM »
un maximum de pays est fixé pour éviter de surcharger iptables et ralentir la connexion via le filtrage.
comme le pointe Reetp, une approche securitaire est de changer le sens de reflection et de n'autoriser que certains pays au lieu d'interdire presque tous.
pour info par default la limite est 15, nous l'avons deja augmenté a 50  lors de la compilation.

a maximum number of country has been set in order to not slow down your connexion because of iptables and filtering process.
As pointed by Reetp, a safe alternative is to negate the string and only authorize few countries rather that refuse most of them.
For your information the default is set to 15, and we pushed that to 50 at compilation.