1
23.7 Legacy Series / Re: WireGuard 2.0 connection down
« on: August 31, 2023, 07:08:15 pm »
ok I finally was able to ssh my OPNsense.
However, I was surprised NOT to find the dash character you mentionned above.
Here is my script file and it still doesn't work :
However, I was surprised NOT to find the dash character you mentionned above.
Here is my script file and it still doesn't work :
Code: [Select]
/usr/local/opnsense/scripts/Wireguard/wg-service-control.php
83 foreach ($routes_to_add as $ipproto => $routes) {
84 foreach (array_unique($routes) as $route) {
85 mwexecf('/sbin/route -q -n add -%s %s -interface %s', [$ipproto, $route, $server->interface]);
86 }
87 }
88 } elseif (!empty((string)$server->gateway)) {
89 /* Only bind the gateway ip to the tunnel */
90 $ipprefix = strpos($tunneladdress, ":") === false ? "-4" : "-6";
91 mwexecf('/sbin/route -q -n add %s %s -iface %s', [$ipprefix, $server->gateway, $server->interface]);
92 }