1 |
diff -urN smeserver-xt_geoip-1.0.1/root/etc/e-smith/templates/etc/rc.d/init.d/masq/40Xt_Geoip smeserver-xt_geoip-1.0.1-2/root/etc/e-smith/templates/etc/rc.d/init.d/masq/40Xt_Geoip |
2 |
--- smeserver-xt_geoip-1.0.1/root/etc/e-smith/templates/etc/rc.d/init.d/masq/40Xt_Geoip 2017-09-15 13:29:45.000000000 +0400 |
3 |
+++ smeserver-xt_geoip-1.0.1-2/root/etc/e-smith/templates/etc/rc.d/init.d/masq/40Xt_Geoip 2017-10-07 14:16:57.737048790 +0400 |
4 |
@@ -5,10 +5,10 @@ |
5 |
my $KERNEL = `/bin/uname -r`; |
6 |
chomp($KERNEL); |
7 |
my $PATH_MODULE = "/lib/modules/$KERNEL/extra/xt_geoip.ko"; |
8 |
- |
9 |
+ my $PATH2_MODULE = "/lib/modules/$KERNEL/weak-updates/xt_geoip.ko"; |
10 |
if ($GP eq 'enabled' and $BC ne '') |
11 |
{ |
12 |
- if (-s $PATH_MODULE) |
13 |
+ if (-s $PATH_MODULE || -s $PATH2_MODULE) |
14 |
{ |
15 |
$OUT .= " ## xtables-addons GEOIP ##\n"; |
16 |
$OUT .= " /sbin/iptables -A INPUT -m geoip --src-cc $BC -j ULOG --ulog-prefix \"GeoIP BAN: ALL\"\n"; |