Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wireguard handler #85

Closed
zerwes opened this issue Jul 27, 2024 · 5 comments · Fixed by #87
Closed

wireguard handler #85

zerwes opened this issue Jul 27, 2024 · 5 comments · Fixed by #87

Comments

@zerwes
Copy link
Collaborator

zerwes commented Jul 27, 2024

wip for #12 ...

@zerwes
Copy link
Collaborator Author

zerwes commented Jul 27, 2024

/usr/local/opnsense/scripts/Wireguard/wg-service-control.php -a configure
/usr/local/opnsense/scripts/Wireguard/wg-service-control.php -a restart

or just

configctl wireguard restart

?

@zerwes
Copy link
Collaborator Author

zerwes commented Jul 28, 2024

    <wireguard>
      <internal_dynamic>1</internal_dynamic>
      <descr>WireGuard (Group)</descr>
      <if>wireguard</if>
      <virtual>1</virtual>
      <enable>1</enable>
      <type>group</type>
      <networks/>
    </wireguard>

the wireguard interface group is missing

@zerwes
Copy link
Collaborator Author

zerwes commented Jul 28, 2024

Error wireguard /usr/local/opnsense/scripts/Wireguard/wg-service-control.php: The command '/usr/bin/wg syncconf 'wg0' '/usr/local/etc/wireguard/wg0.conf'' returned exit code '1', the output was 'fopen: No such file or directory'

@zerwes
Copy link
Collaborator Author

zerwes commented Jul 28, 2024

/api/wireguard/service/reconfigure

@zerwes
Copy link
Collaborator Author

zerwes commented Jul 28, 2024

# configctl interface invoke registration
OK
# configctl template reload OPNsense/Wireguard
OK
# configctl wireguard configure
OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant