xt_geoip 1.3.1-29.sme updated filenames

This commit is contained in:
John Crisp
2025-10-22 11:59:00 +02:00
parent 3caa8642cb
commit 39a0598d79
8 changed files with 1462 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,69 @@
'xtg_FORM_TITLE' => 'XTABLES-ADDONS Administration<br>GeoIP',
'xtg_ERROR_UPDATING' => 'There was an error while updating xt_geoip.',
'xtg_SUCCESS' => 'Successful change... Now IP filtering takes into account the countries entered.',
'xtg_SERVICE_SUCCESS' => 'Successful change... Now IP filtering takes into account the new services list.',
'xtg_XT_GEOIP_STATUS_DESCRIPTION' => ' <ul><li>IP filtering can be enabled or disabled with the appropriate button</li>
<li>Codes of the countries to be banished can be entered in the corresponding field</li>
<li>An immediate update of the table can be requested here</li></ul>
<p><i>Be careful not to ban the IP addresses needed to run your server !</i></p> ',
'xtg_NO_CHANGE' => 'No change... no update !',
'xtg_LABEL_GEOIP_STATUS' => 'Current GEOIP filtering : ',
'xtg_LABEL_GEOIP' => 'GEOIP filtering desired : ',
'xtg_DESC_GEOIP' => 'Should filtering by country of origin be activated ?',
'xtg_ERROR_STATUS_GEOIP' => ' <font color="red">GEOIP filtering is <b>inactive</b></font> (iptables) ',
'xtg_LABEL_BADCOUNTRIES_STATUS' => 'Current list of banished country codes : ',
'xtg_ERROR_COUNTRY_NOT_EXIST' => 'Country code(s) does not exist on the server: [_1]',
'xtg_LABEL_BADCOUNTRIES' => 'New country codes to be used :',
'xtg_DESC_BADCOUNTRIES' => 'List of country codes (uppercase et comma-separated).',
'xtg_LABEL_DATE_UPDATE_STATUS' => 'Last update of GeoIP table :',
'xtg_LABEL_UPDATE' => 'Force the update of GeoIP table :',
'xtg_DESC_UPDATE' => 'GeoIP table is updated every week, but you can ...',
'xtg_IPT_LIST_DESCRIPTION' => '<ul><li>Click here to see the statistics of the prevented connections</li></ul> ',
'xtg_IPT_LIST' => 'Filtered',
'xtg_SSH_LIST_DESCRIPTION' => '<ul><li>Click here to see the statistics of SSH errors for non blocked access</li></ul> ',
'xtg_SSH_LIST' => 'SSH errors',
'xtg_F2B_LIST_DESCRIPTION' => '<ul><li>Click here to see the statistics of the connections banned by fail2ban</li></ul> ',
'xtg_F2B_LIST' => 'F2b banned',
'xtg_STATS_GENERATED' => 'Statistics generated',
'xtg_END_OF_STATS' => 'End of Statistics',
'xtg_INVALID_STATS_TYPE' => 'Invalid type of statistics',
'xtg_STATS_DESCRIPTION' => '<HR class="sme-copyrightbar"> <h3>Statistics for Xt_GeoIP</h3><ul>
<li>For 3 periods : Day, Week and Month</li>
<li>Banned Ips by country sorted by number</li>
<li>Ssh errors by country sorted by number</li>
<li>Fail2ban banned IPs by country sorted by number</li>
</ul><p><i>XX means Country not found !</i></p> ',
'xtg_COUNTRY_LIST_DESCRIPTION' => '<ul><li>Click here to see a <b>list of available country codes</b></li></ul> ',
'xtg_LABEL_COUNTRY_LIST' => 'Country codes : ',
'xtg_COUNTRY_LIST' => 'Country codes',
'xtg_CNTRY_LIST' => 'List',
'xtg_END_OF_CODES' => 'End of code list',
'xtg_SERVICE_DESCRIPTION' => 'Per service filtering for Xtables GeoIP',
'xtg_SERVICE_DESCRIPTION2' => '<ul><li>If you want different filtering based on services</li></ul>',
'xtg_LABEL_SERVICE' => 'Service name : ',
'xtg_PER_SERVICE_GEOIP' => 'Services',
'xtg_ADD_SERVICE' => 'Add or modify a per service filtering',
'xtg_ADD_DESC' => 'You are choosing a particular country filtering for this service',
'xtg_REMOVE_SERVICE' => 'Delete a per service filtering',
'xtg_REMOVE_DESC' => 'You are deleting a filtering by service. The general filtering will then apply.',
'xtg_SERV_NOT_BAN' => 'Unfiltered service.',
'xtg_NO_SERVICES' => 'No services.',
'xtg_LABEL_SERV_BADCOUNTRIES_STATUS' => 'List of rejected country codes for the service : ',
'xtg_SUCCESSFULLY_DELETED_SERVICE' => 'Per service filtering successfully deleted... New filtering taken into account.',
'xtg_BADCOUNTRIES' => 'Blacklist',
'xtg_ERROR_COUNTRY_MAX' => 'Too many countries chosen: [_1]',
'xtg_LABEL_REVERSE_MATCH' => 'Reject if',
'xtg_DESC_REVERSE_MATCH' => 'The following option allow to chose if you want reject visitors from the country list (==) which is the default behaviour, or if you want to only let them in (!=).',
'xtg_LABEL_OTHERS' => 'General filter only for services without rules',
'xtg_DESC_OTHERS' => 'Choose if you want to have the general filter to apply to all incoming connections or if you do not want to filter ports already defined with a specific service rule. This would allow you to have a service less restricted than the general rule if you enable this.',
'xtg_SERVICE_LIST_DESCRIPTION' => '<ul><li>Click here to select <b>new </b>services among an <b>available services list</b></li></ul> ',
'xtg_LABEL_SERVICE_LIST' => 'Service codes : ',
'xtg_SERV_LIST' => 'List',
'xtg_DESC_AVAILABLE_SERVICES' => ' <h2> New Services selection</h2>
<ul><li>Select here among the other services not yet managed individually.
</li><li>You may select one or more elements. Generally <b>enabled and public</b> ones.</li></ul> ',
'xtg_LABEL_AVAILABLE_SERVICES' => 'Available Services',
'xtg_ERROR_LICENSE_KEY' => 'GEOIP license key unavailable. Downloading is <b>inactive</b>',
'xtg_ERROR_MISSING_MODULE' => 'Module xt_geoip is missing. GeoIP based filtering is <b>inactive</b>',
'xtg_ERROR_UNLOADED_MODULE' => 'Module xt_geoip not loaded. GeoIP based filtering is <b>inactive</b>',
'xtg_ERROR_FILTER_CHAIN_MISSING' => 'Filtering chain XTGeoIP is not in use. GeoIP based filtering is <b>inactive</b>',

View File

@@ -0,0 +1,74 @@
% layout 'default', title => "Smanager - xtgeoip";
% content_for 'module' => begin
<div id="module" class="module xt_geoip-panel">
%if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $xtg_datas
</p>
%}
% if ( stash 'error' ) {
<br><div class=sme-error>
%= $c->render_to_string(inline => stash 'error')
</div>
%}
<h1><%= $title %></h1>
<br>
%= $c->render_to_string(inline => l('xtg_XT_GEOIP_STATUS_DESCRIPTION'));
<br>
%= form_for '/xtgeoip' => (method => 'POST') => begin
<p><span class=label>
%=l 'xtg_LABEL_GEOIP_STATUS'
</span><span class=input>
%= $c->get_geoip()
</span></p>
<p><span class=label>
%=l 'xtg_LABEL_BADCOUNTRIES_STATUS'
</span><span class=input>
%= $c->get_badcountries(1)
</span></p>
<p><span class=label>
%=l 'xtg_LABEL_DATE_UPDATE_STATUS'
</span><span class=input>
%= $c->get_date_update()
</span></p>
% if ( my $st_geoip = $c->get_stat_geoip() ) {
<div class=sme-error>
%= $c->render_to_string(inline => $st_geoip);
</div>
%}
% if ( my $st_lice_k = $c->get_stat_license_key() ) {
<div class=sme-error>
%= $c->render_to_string(inline => $st_lice_k);
</div>
%}
%= hidden_field 'Choice' => 'UPDT'
<div class='center'>
%= submit_button l('NEXT'), class => 'action'
</div>
%end
%= include 'partials/_xtg_lcodes'
%= include 'partials/_xtg_services'
%= include 'partials/_xtg_stats'
</div>
%end

View File

@@ -0,0 +1,44 @@
% layout 'default', title => "Smanager - xtgeoip";
% content_for 'module' => begin
<div id="module" class="module xt_geoip-panel">
%if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $xtg_datas
</p>
%}
% if ( stash 'error' ) {
<br><div class=sme-error>
%= $c->render_to_string(inline => stash 'error')
</div>
%}
<h1><%= $title %></h1>
<br>
%= $c->render_to_string(inline => l('xtg_DESC_AVAILABLE_SERVICES'));
<br>
%= form_for '/xtgeoipb' => (method => 'POST') => begin
<p><span class=label>
%=l 'xtg_LABEL_AVAILABLE_SERVICES'
</span><span class=data>
% param 'Selectedservices' => $c->otherServices('sel') unless param 'Selectedservices';
%= select_field 'Selectedservices' => $c->otherServices('all'), class => 'input', multiple => "1"
</span></p>
%= hidden_field 'Choice' => 'LSRV'
<div class='center'>
%= submit_button l('NEXT'), class => 'action'
</div>
%end
</div>
%end

View File

@@ -0,0 +1,36 @@
% layout 'default', title => "Smanager - xtgeoip - List";
% content_for 'module' => begin
<div id="module" class="module xt_geoip-panel">
%if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $xtg_datas
</p>
%}
% if ( stash 'error' ) {
<br><div class=sme-error>
%= $c->render_to_string(inline => stash 'error')
</div>
%}
<h1><%= $title %></h1>
%= form_for '/xtgeoip' => (method => 'GET') => begin
<br>
%= $c->render_to_string(inline => stash 'modul');
<br>
<div class='center'>
%= submit_button l('NEXT'), class => 'action'
</div>
%end
</div>
%end

View File

@@ -0,0 +1,53 @@
% layout 'default', title => "Smanager - xtgeoip";
% content_for 'module' => begin
<div id="module" class="module xt_geoip-panel">
%if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $xtg_datas
</p>
%}
% if ( stash 'error' ) {
<br><div class=sme-error>
%= $c->render_to_string(inline => stash 'error')
</div>
%}
<h1><%= $title %></h1>
<h2>
%= l 'xtg_REMOVE_SERVICE'
</h2><br>
%= $c->render_to_string(inline => l('xtg_REMOVE_DESC'));
%= form_for '/xtgeoipb' => (method => 'POST') => begin
<p><span class=label>
%=l 'xtg_LABEL_SERVICE'
</span><span class=data>
%= $xtg_datas->{name}
</span></p>
<p><span class=label>
%=l 'xtg_LABEL_SERV_BADCOUNTRIES_STATUS'
</span><span class=data>
%= $c->get_srv_badcountries( $xtg_datas->{name}, 0 )
</span></p>
<div class='center'>
%= submit_button l('REMOVE'), class => 'action'
</div>
%= hidden_field 'Choice' => 'REMS'
%= hidden_field 'Name' => $xtg_datas->{name}
%end
</div>
%end

View File

@@ -0,0 +1,77 @@
% layout 'default', title => "Smanager - xtgeoip";
% content_for 'module' => begin
<div id="module" class="module xt_geoip-panel">
%if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $xtg_datas
</p>
%}
% if ( stash 'error' ) {
<br><div class=sme-error>
%= $c->render_to_string(inline => stash 'error')
</div>
%}
<h1><%= $title %></h1>
<h2>
%= l 'xtg_ADD_SERVICE'
</h2><br>
%= $c->render_to_string(inline => l('xtg_ADD_DESC'));
%= form_for '/xtgeoipb' => (method => 'POST') => begin
<p><span class=label>
%=l 'xtg_LABEL_SERVICE'
</span><span class=data>
%= $xtg_datas->{name}
</span></p>
<p><span class=label>
%=l 'xtg_LABEL_BADCOUNTRIES_STATUS'
</span><span class=data>
%= $c->get_badcountries( 0 )
</span></p>
<p>
%=l 'xtg_DESC_REVERSE_MATCH'
<br><span class=label>
%=l 'xtg_LABEL_REVERSE_MATCH'
</span><span class=data>
% param 'Masq_srv_reverse' => $c->get_reverse('masq','XTGeoipRev') unless param 'Masq_srv_reverse';
%= select_field 'Masq_srv_reverse' => [['!=' => 'enabled'], ['==' => 'disabled']], class => 'input'
</span></p>
<p>
%=l 'xtg_DESC_BADCOUNTRIES'
<br><span class=label>
%=l 'xtg_LABEL_BADCOUNTRIES'
</span><span class=data>
% param 'Masq_srv_badcountries' => $c->get_srv_badcountries($xtg_datas->{name}, 0) unless param 'Masq_srv_badcountries';
%= text_field 'Masq_srv_badcountries', size => '64', class => 'input'
</span></p>
<p><span class=label>
%=l 'xtg_LABEL_SERV_BADCOUNTRIES_STATUS'
</span><span class=data>
%= $c->get_srv_badcountries( $xtg_datas->{name}, 1 )
</span></p>
<div class='center'>
%= submit_button l('SAVE'), class => 'action'
</div>
%= hidden_field 'Choice' => 'UPDS'
%= hidden_field 'Name' => $xtg_datas->{name}
%end
</div>
%end

View File

@@ -0,0 +1,83 @@
% layout 'default', title => "Smanager - xtgeoip";
% content_for 'module' => begin
<div id="module" class="module xt_geoip-panel">
%if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $xtg_datas
</p>
%}
% if ( stash 'error' ) {
<br><div class=sme-error>
%= $c->render_to_string(inline => stash 'error')
</div>
%}
<h1><%= $title %></h1>
%= form_for '/xtgeoipb' => (method => 'POST') => begin
<p>
%=l 'xtg_DESC_GEOIP'
<br><span class=label>
%=l 'xtg_LABEL_GEOIP'
</span><span class=data>
% param 'Masq_geoip' => $c->get_geoip() unless param 'Masq_geoip';
%= select_field 'Masq_geoip' => [[ (l 'YES') => 'enabled'], [ (l 'NO') => 'disabled']], class => 'input'
</span></p>
<p>
%=l 'xtg_DESC_REVERSE_MATCH'
<br><span class=label>
%=l 'xtg_LABEL_REVERSE_MATCH'
</span><span class=data>
% param 'Masq_reverse' => $c->get_reverse('masq','XTGeoipRev') unless param 'Masq_reverse';
%= select_field 'Masq_reverse' => [[ '!=' => 'enabled'], [ '==' => 'disabled']], class => 'input'
</span></p>
<p>
%=l 'xtg_DESC_BADCOUNTRIES'
<br><span class=label>
%=l 'xtg_LABEL_BADCOUNTRIES'
</span><span class=data>
% param 'Masq_badcountries' => $c->get_badcountries() unless param 'Masq_badcountries';
%= text_field 'Masq_badcountries', class => 'input'
</span></p>
<p><span class=label>
%=l 'xtg_LABEL_BADCOUNTRIES_STATUS'
</span><span class=input>
%= $c->get_badcountries();
</span></p>
<p>
%=l 'xtg_DESC_OTHERS'
<br><span class=label>
%=l 'xtg_LABEL_OTHERS'
</span><span class=data>
% param 'Masq_others' => $c->get_reverse('masq','XT_GeoipOther') unless param 'Masq_others';
%= select_field 'Masq_others' => [[(l 'DISABLED') => 'disabled'], [(l 'ENABLED') => 'enabled']], class => 'input'
</span></p>
<p>
%=l 'xtg_DESC_UPDATE'
<br><span class=label>
%=l 'xtg_LABEL_UPDATE'
</span><span class=data>
%= select_field 'Update_geoip' => [[ (l 'NO') => 'NO'], [ (l 'YES') => 'YES']], class => 'input'
</span></p>
%= hidden_field 'Choice' => 'UPDT'
<div class='center'>
%= submit_button l('SAVE'), class => 'action'
</div>
%end
</div>
%end