diff -Nur smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90adjustXt_Geoip smeserver-xt_geoip-1.0.1/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90adjustXt_Geoip --- smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90adjustXt_Geoip 2019-07-21 16:55:39.613514533 +0200 +++ smeserver-xt_geoip-1.0.1/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90adjustXt_Geoip 2019-07-21 18:41:43.000338969 +0200 @@ -11,6 +11,19 @@ my $servStatus; my $locBC; + # to allow reload without locking just after initial install + $OUT .=<<'EOF'; + iptables -n --list XTGeoIP >/dev/null 2>&1 + test=$? + if [[ $test -eq 1 ]] ; then + # A blacklist chain for xtables-addons GEOIP + /sbin/iptables --new-chain XTGeoIP + /sbin/iptables --new-chain XTGeoIP_1 + /sbin/iptables --append XTGeoIP -j XTGeoIP_1 + /sbin/iptables --insert INPUT 1 \ + -j XTGeoIP + fi +EOF # Find the current XTGeoIP_$$ chain, and create a new one. $OUT .=<<'EOF';