diff --git a/net/wireguard/src/opnsense/scripts/Wireguard/genkey.sh b/net/wireguard/src/opnsense/scripts/Wireguard/genkey.sh index b580bf49d..803d76e8b 100755 --- a/net/wireguard/src/opnsense/scripts/Wireguard/genkey.sh +++ b/net/wireguard/src/opnsense/scripts/Wireguard/genkey.sh @@ -26,8 +26,8 @@ # SUCH DAMAGE. TMPDIR="/tmp" -GENPRIV="/usr/local/bin/wg genkey" -GENPUB="/usr/local/bin/wg pubkey" +GENPRIV="/usr/bin/wg genkey" +GENPUB="/usr/bin/wg pubkey" cleanup() { # Delete old files diff --git a/net/wireguard/src/opnsense/scripts/Wireguard/wg-service-control.php b/net/wireguard/src/opnsense/scripts/Wireguard/wg-service-control.php index 3f370398e..c5d2a4a06 100755 --- a/net/wireguard/src/opnsense/scripts/Wireguard/wg-service-control.php +++ b/net/wireguard/src/opnsense/scripts/Wireguard/wg-service-control.php @@ -60,7 +60,7 @@ function wg_start($server, $fhandle) * where these (and maybe other) static routes hook into. **/ $peers = explode(',', $server->peers); - $routes_to_add = ['inet'=> [], 'inet6' => []]; + $routes_to_add = ['inet' => [], 'inet6' => []]; foreach ((new OPNsense\Wireguard\Client())->clients->client->iterateItems() as $key => $client) { if (empty((string)$client->enabled) || !in_array($key, $peers)) { continue; diff --git a/net/wireguard/src/opnsense/service/conf/actions.d/actions_wireguard.conf b/net/wireguard/src/opnsense/service/conf/actions.d/actions_wireguard.conf index a8c3b4878..3372d474d 100644 --- a/net/wireguard/src/opnsense/service/conf/actions.d/actions_wireguard.conf +++ b/net/wireguard/src/opnsense/service/conf/actions.d/actions_wireguard.conf @@ -36,13 +36,13 @@ type:script_output message:Generating WireGuard keys [showconf] -command:/usr/local/bin/wg show all +command:/usr/bin/wg show all parameters: type:script_output message:Show WireGuard config [showhandshake] -command:/usr/local/bin/wg show all latest-handshakes +command:/usr/bin/wg show all latest-handshakes parameters: type:script_output message:Show WireGuard handshakes