/[smecontribs]/rpms/smeserver-xt_geoip/contribs9/smeserver-xt_geoip-1.0.1-bz10760-safe-reload.patch
ViewVC logotype

Annotation of /rpms/smeserver-xt_geoip/contribs9/smeserver-xt_geoip-1.0.1-bz10760-safe-reload.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Sun Jul 21 16:48:33 2019 UTC (5 years, 4 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-xt_geoip-1_0_1-18_el6_sme, smeserver-xt_geoip-1_0_1-20_el6_sme, smeserver-xt_geoip-1_0_1-14_el6_sme, smeserver-xt_geoip-1_0_1-17_el6_sme, smeserver-xt_geoip-1_0_1-24_el6_sme, smeserver-xt_geoip-1_0_1-23_el6_sme, smeserver-xt_geoip-1_0_1-26_el6_sme, smeserver-xt_geoip-1_0_1-25_el6_sme, smeserver-xt_geoip-1_0_1-16_el6_sme, smeserver-xt_geoip-1_0_1-15_el6_sme, smeserver-xt_geoip-1_0_1-22_el6_sme, smeserver-xt_geoip-1_0_1-21_el6_sme, smeserver-xt_geoip-1_0_1-13_el6_sme, smeserver-xt_geoip-1_0_1-19_el6_sme, HEAD
* Sun Jul 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-13.sme
- fix network lock out on adjust [SME: 10760]
  this arised on initial install with a simple masq adjust
  or if XT_geoip is disbaled on any masq restart or adjust

1 jpp 1.1 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
2     --- 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
3     +++ 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
4     @@ -11,6 +11,19 @@
5     my $servStatus;
6     my $locBC;
7    
8     + # to allow reload without locking just after initial install
9     + $OUT .=<<'EOF';
10     + iptables -n --list XTGeoIP >/dev/null 2>&1
11     + test=$?
12     + if [[ $test -eq 1 ]] ; then
13     + # A blacklist chain for xtables-addons GEOIP
14     + /sbin/iptables --new-chain XTGeoIP
15     + /sbin/iptables --new-chain XTGeoIP_1
16     + /sbin/iptables --append XTGeoIP -j XTGeoIP_1
17     + /sbin/iptables --insert INPUT 1 \
18     + -j XTGeoIP
19     + fi
20     +EOF
21    
22     # Find the current XTGeoIP_$$ chain, and create a new one.
23     $OUT .=<<'EOF';

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed