1 |
reetspetit |
1.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 |
|
|
} |