/[smecontribs]/rpms/smeserver-openswan/contribs8/smeserver-openswan-fix-rsa-id.patch
ViewVC logotype

Contents of /rpms/smeserver-openswan/contribs8/smeserver-openswan-fix-rsa-id.patch

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


Revision 1.1 - (show annotations) (download)
Mon Apr 4 16:47:11 2016 UTC (8 years, 8 months ago) by reetspetit
Branch: MAIN
CVS Tags: smeserver-openswan-0_6-6_el5_sme, smeserver-openswan-0_6-7_el5_sme, HEAD
* Mon Apr 04 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.6-6.sme
- Fix ID in ipsec.secrets if ID is set
- Fix xfrm_larval_drop setting in ipsec-update

1 diff -ruN smeserver-openswan-0.6.old/root/etc/e-smith/events/actions/ipsec-update smeserver-openswan-0.6/root/etc/e-smith/events/actions/ipsec-update
2 --- smeserver-openswan-0.6.old/root/etc/e-smith/events/actions/ipsec-update 2016-04-04 18:38:20.350999652 +0200
3 +++ smeserver-openswan-0.6/root/etc/e-smith/events/actions/ipsec-update 2016-04-04 18:39:08.665999652 +0200
4 @@ -281,7 +281,7 @@
5 or die("Ipsec Error - A problem occurred with sysctl: $?");
6
7 # On v8 this is set to 0 so we would need
8 - system("/sbin/sysctl -w net.core.xfrm_larval_drop=0") == 0 or die("A problem occurred with sysctl: $?");
9 + system("/sbin/sysctl -w net.core.xfrm_larval_drop=1") == 0 or die("A problem occurred with sysctl: $?");
10
11 }
12
13 diff -ruN smeserver-openswan-0.6.old/root/etc/e-smith/templates/etc/ipsec.d/ipsec.secrets/10Passwords smeserver-openswan-0.6/root/etc/e-smith/templates/etc/ipsec.d/ipsec.secrets/10Passwords
14 --- smeserver-openswan-0.6.old/root/etc/e-smith/templates/etc/ipsec.d/ipsec.secrets/10Passwords 2015-12-05 13:03:18.000000000 +0100
15 +++ smeserver-openswan-0.6/root/etc/e-smith/templates/etc/ipsec.d/ipsec.secrets/10Passwords 2016-04-04 18:39:08.666999652 +0200
16 @@ -79,6 +79,11 @@
17 $OUT .= "\@$rightid \@$leftid \: PSK \"$passwd\"";
18 }
19 }
20 +
21 + elsif (( $leftid ne '' ) && ( $rightid ne '' )) {
22 + $OUT .= "\@$rightid \@$leftid \: PSK \"$passwd\"";
23 + }
24 +
25 else {
26 $OUT .= "$left $right \: PSK \"$passwd\"";
27 }

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