From c42906c3bbb4b0b5f3d0ee35b56c17448b8f6fed Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 17 Jul 2021 11:09:45 +0200 Subject: [PATCH 1/6] Diagnostics - add DHCP log --- plugins/dynamix/scripts/diagnostics | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/dynamix/scripts/diagnostics b/plugins/dynamix/scripts/diagnostics index 29284ddc3..9401f3c6d 100755 --- a/plugins/dynamix/scripts/diagnostics +++ b/plugins/dynamix/scripts/diagnostics @@ -341,6 +341,12 @@ foreach (glob("/var/log/syslog*") as $file) { if (basename($file)=='syslog' && filesize($file)>=$max) exert("tail -n 200 ".escapeshellarg("$log.txt")." >".escapeshellarg("$log.last200.txt")); exert("truncate -s '<$max' ".escapeshellarg("$log.txt")); } +// copy dhcplog +$dhcplog = "/var/log/dhcplog"; +if (file_exists($dhcplog)) { + $log = "/$diag/logs/dhcplog.txt"; + exert("todos <$dhcplog >".escapeshellarg($log)); +} // copy graphql-api.log $graphql = "/var/log/graphql-api.log"; if (file_exists($graphql)) { From e7eb3fc1e23b24d1c4dc1694a4b617530c4f194f Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 17 Jul 2021 15:51:18 +0200 Subject: [PATCH 2/6] Suppress IPv6 anycast addresses in routing table --- plugins/dynamix/include/RoutingTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/include/RoutingTable.php b/plugins/dynamix/include/RoutingTable.php index df773cd9c..45629d31a 100644 --- a/plugins/dynamix/include/RoutingTable.php +++ b/plugins/dynamix/include/RoutingTable.php @@ -27,7 +27,7 @@ case 'Add Route': break; default: exec("ip -4 route show|grep -v '^127.0.0.0'",$ipv4); - exec("ip -6 route show|grep -Pv '^([m:]|(f[ef][0-9][0-9])::)|expires'",$ipv6); + exec("ip -6 route show|grep -Pv '^([am:]|(f[ef][0-9][0-9])::)|expires'",$ipv6); foreach ($ipv4 as $info) { $cell = explode(' ',$info); $route = $cell[0]; From 28a94f70194e394366860b236d1efdd0be0c236e Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 17 Jul 2021 18:36:09 +0200 Subject: [PATCH 3/6] Add new docker setting: select macvlan or ipvlan type Mainly for testing purposes --- plugins/dynamix.docker.manager/DockerSettings.page | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/dynamix.docker.manager/DockerSettings.page b/plugins/dynamix.docker.manager/DockerSettings.page index c5b60d803..330f50f18 100644 --- a/plugins/dynamix.docker.manager/DockerSettings.page +++ b/plugins/dynamix.docker.manager/DockerSettings.page @@ -238,6 +238,12 @@ _(Template Authoring Mode)_: :docker_authoring_mode_help: +_(Docker custom network type)_: +: + _(Host access to custom networks)_: : - - - - _(Host access to custom networks)_: -: :docker_custom_network_access_help: + _(Preserve user defined networks)_: : - - - - -:docker_custom_network_access_help: - - +_(Host access to custom networks)_: +: + +:docker_custom_network_access_help: + _(Preserve user defined networks)_: :