1 |
diff -Nur --no-dereference smeserver-openvpn-routed-0.1.6.old/createlinks smeserver-openvpn-routed-0.1.6/createlinks |
2 |
--- smeserver-openvpn-routed-0.1.6.old/createlinks 2022-11-23 23:30:43.267000000 -0500 |
3 |
+++ smeserver-openvpn-routed-0.1.6/createlinks 2022-11-23 23:39:13.914000000 -0500 |
4 |
@@ -29,6 +29,8 @@ |
5 |
#event_link("openvpn-routed-reload-ccd", "openvpn-routed-update", "20"); |
6 |
event_link("openvpn-routed-update-crl", "openvpn-routed-update", "30"); |
7 |
event_link("openvpn-routed-delete-net", "openvpn-routed-update", "40"); |
8 |
+event_link("openvpn-bridge-jail", "openvpn-routed-update", "03"); |
9 |
+event_link("openvpn-bridge-jail", "bootstrap-console-save", "03"); |
10 |
#event_link("openvpn-routed-reload-ccd", "openvpn-routed-reload-ccd", "20"); |
11 |
#event_link("openvpn-routed-update-crl", "openvpn-routed-reload-ccd", "30"); |
12 |
|
13 |
@@ -54,6 +56,7 @@ |
14 |
|
15 |
#action specific to this package |
16 |
event_link("openvpn-routed-update", $event, "60"); |
17 |
+event_link("openvpn-bridge-jail", $event, "03"); |
18 |
#services we need to restart |
19 |
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/openvpn-routed"); |
20 |
|
21 |
diff -Nur --no-dereference smeserver-openvpn-routed-0.1.6.old/root/etc/e-smith/events/actions/openvpn-routed-jail smeserver-openvpn-routed-0.1.6/root/etc/e-smith/events/actions/openvpn-routed-jail |
22 |
--- smeserver-openvpn-routed-0.1.6.old/root/etc/e-smith/events/actions/openvpn-routed-jail 1969-12-31 19:00:00.000000000 -0500 |
23 |
+++ smeserver-openvpn-routed-0.1.6/root/etc/e-smith/events/actions/openvpn-routed-jail 2022-11-23 23:43:32.422000000 -0500 |
24 |
@@ -0,0 +1,7 @@ |
25 |
+#!/bin/bash |
26 |
+ |
27 |
+#copy any files needed for the jail |
28 |
+ |
29 |
+#be sure we have the needed timezone |
30 |
+/bin/cp -L /etc/localtime /etc/openvpn/routed/etc |
31 |
+ |
32 |
diff -Nur --no-dereference smeserver-openvpn-routed-0.1.6.old/root/etc/e-smith/templates/etc/openvpn/routed/openvpn.conf/95logs smeserver-openvpn-routed-0.1.6/root/etc/e-smith/templates/etc/openvpn/routed/openvpn.conf/95logs |
33 |
--- smeserver-openvpn-routed-0.1.6.old/root/etc/e-smith/templates/etc/openvpn/routed/openvpn.conf/95logs 2017-04-10 05:18:32.000000000 -0400 |
34 |
+++ smeserver-openvpn-routed-0.1.6/root/etc/e-smith/templates/etc/openvpn/routed/openvpn.conf/95logs 2022-11-23 23:33:57.067000000 -0500 |
35 |
@@ -1,8 +1,10 @@ |
36 |
status-version 2 |
37 |
status bridge-status.txt |
38 |
-suppress-timestamps |
39 |
{ |
40 |
+ #suppress-timestamps |
41 |
my $OUT = ''; |
42 |
my $verb = ${'openvpn-routed'}{Verbose} || '3'; |
43 |
$OUT .= "verb $verb\n"; |
44 |
} |
45 |
+log-append /var/log/openvpn-routed/openvpn-routed.log |
46 |
+ |
47 |
diff -Nur --no-dereference smeserver-openvpn-routed-0.1.6.old/root/etc/logrotate.d/openvpn-routed smeserver-openvpn-routed-0.1.6/root/etc/logrotate.d/openvpn-routed |
48 |
--- smeserver-openvpn-routed-0.1.6.old/root/etc/logrotate.d/openvpn-routed 1969-12-31 19:00:00.000000000 -0500 |
49 |
+++ smeserver-openvpn-routed-0.1.6/root/etc/logrotate.d/openvpn-routed 2022-11-23 23:32:18.944000000 -0500 |
50 |
@@ -0,0 +1,8 @@ |
51 |
+/var/log/openvpn-routed/*.log{ |
52 |
+ monthly |
53 |
+ rotate 6 |
54 |
+ compress |
55 |
+ copytruncate |
56 |
+ missingok |
57 |
+} |
58 |
+ |