diff -urN smeserver-xt_geoip-1.0.1.old/createlinks smeserver-xt_geoip-1.0.1/createlinks --- smeserver-xt_geoip-1.0.1.old/createlinks 2019-04-24 15:05:21.000000000 +0400 +++ smeserver-xt_geoip-1.0.1/createlinks 2019-04-23 22:52:31.000000000 +0400 @@ -12,14 +12,16 @@ # links to add # templates to expand -for my $event (qw(xt_geoip-modify xt_geoip-update bootstrap-console-save console-save)) +for my $event (qw(xt_geoip-modify xt_geoip-update xt_geoip-service bootstrap-console-save console-save)) { templates2events("/etc/rc.d/init.d/masq", $event); templates2events("/etc/crontab", $event); templates2events("/usr/share/xt_geoip/update_base", $event); - if ($event ne 'xt_geoip-modify') { - event_link("smeserver-xt_geoip-download-action", $event, "10"); } + +for my $event (qw(xt_geoip-update bootstrap-console-save console-save)) +{ + event_link("smeserver-xt_geoip-download-action", $event, "10"); } # services to launch on event @@ -29,4 +31,10 @@ "root/etc/e-smith/events/$event/services2adjust/masq"); } +for my $event (qw(xt_geoip-service)) +{ + safe_symlink("adjust", + "root/etc/e-smith/events/$event/services2adjust/masq"); +} + # actions to perform diff -urN smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/db/configuration/defaults/masq/XtServices smeserver-xt_geoip-1.0.1/root/etc/e-smith/db/configuration/defaults/masq/XtServices --- smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/db/configuration/defaults/masq/XtServices 1970-01-01 04:00:00.000000000 +0400 +++ smeserver-xt_geoip-1.0.1/root/etc/e-smith/db/configuration/defaults/masq/XtServices 2019-04-24 14:38:38.000000000 +0400 @@ -0,0 +1 @@ +imaps,pop3s,sshd,ftp,ssmtpd diff -urN smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/xt_geoip smeserver-xt_geoip-1.0.1/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/xt_geoip --- smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/xt_geoip 2019-04-24 15:05:21.000000000 +0400 +++ smeserver-xt_geoip-1.0.1/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/xt_geoip 2019-04-25 20:56:40.000000000 +0400 @@ -129,4 +129,72 @@ + + SERVICE_DESCRIPTION + Per service filtering for Xtables GeoIP

]]> +
+
+ + + LABEL_SERVICE + Service name : + + + + PER_SERVICE_GEOIP + -> Services + + + + ADD_SERVICE + Add or modify a per service filtering + + + + ADD_DESC + You are choosing a particular country filtering for this service + + + + REMOVE_SERVICE + Delete a per service filtering + + + + REMOVE_DESC + You are deleting a filtering by service. The general filtering will then apply. + + + + SERV_NOT_BAN + Unfiltered service. + + + + NO_SERVICES + No services. + + + + LABEL_SERV_BADCOUNTRIES_STATUS + List of rejected country codes for the service : + + + + SUCCESSFULLY_DELETED_SERVICE + Per service filtering successfully deleted... New filtering taken into account. + + + + BADCOUNTRIES + Blacklist + + + + ERR_COUNTRY_MAX: {$ctr} + Too many countries chosen: {$ctr} + + diff -urN smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/xt_geoip smeserver-xt_geoip-1.0.1/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/xt_geoip --- smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/xt_geoip 2019-04-24 15:05:21.000000000 +0400 +++ smeserver-xt_geoip-1.0.1/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/xt_geoip 2019-04-25 20:56:24.000000000 +0400 @@ -43,15 +43,16 @@ XT_GEOIP_STATUS_DESCRIPTION -
  • Le filtrage IP peut être activé ou désactivé à l'aide du bouton adéquat
  • + Filtrage général pour Xtables GeoIP +
    • Le filtrage IP peut être activé ou désactivé à l'aide du bouton adéquat
    • Les codes des pays à bannir peut être saisis dans le champ correspondant
    • Une mise à jour immédiate de la table peut être demandée ici.
    -

    Attention à ne pas bannir les adresses IP nécessaires au fonctionnement de votre serveur !



    ]]>
    +

    Attention à ne pas bannir les adresses IP nécessaires au fonctionnement de votre serveur !


    ]]>
    LABEL_BADCOUNTRIES_STATUS - Liste actuelle des codes pays rejetés : + Liste générale des codes pays rejetés : @@ -60,12 +61,6 @@ - ERR_COUNTRY_MAX: {$ctr} - Code pays, maximum atteint: {$ctr} - - - - LABEL_BADCOUNTRIES Nouveaux codes pays à utiliser : @@ -123,12 +118,80 @@ STATS_DESCRIPTION - Statistiques pour Xtables GeoIP