What's new

Wireguard Session Manager - Discussion (3rd) thread

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

guys,
how to update wireguard session manager under amtm?
i try press option wg and press 1, but still not updated
I think option 1 is for updating the Wireguard Kernel Modules not the Wireguard Manager script.

To update wgm use u to update to latest stable version. Use uf if you want to force download of latest stable wgm (like if you are already on latest stable but want a new download for some reason). Use uf dev if you want to get latest development/beta version.
 
So I can't seem to get the WebUI to work correctly. The only thing I'm noticing working for me is the Show All for the peers. All the others - command line, peer start/stop, Show Firewall, Show RPDB etc are not working. What happens when I click any of those buttons is the "please wait, 100% wheel, applying updates" message shows and then the page refreshes with nothing actually changing or happening. Maybe I didn't set wgm up properly?

I'm running AC86U, 386.7_2, wgm v4.19b3 WebUI v1.04. I've done uf dev a couple times, www refreshX and a router reboot. I also tried a couple different browsers too and all had the same results. Overall it's not a big deal, everything within wgm that I need is working just fine for me.
 
So I can't seem to get the WebUI to work correctly. The only thing I'm noticing working for me is the Show All for the peers. All the others - command line, peer start/stop, Show Firewall, Show RPDB etc are not working. What happens when I click any of those buttons is the "please wait, 100% wheel, applying updates" message shows and then the page refreshes with nothing actually changing or happening. Maybe I didn't set wgm up properly?

I'm running AC86U, 386.7_2, wgm v4.19b3 WebUI v1.04. I've done uf dev a couple times, www refreshX and a router reboot. I also tried a couple different browsers too and all had the same results. Overall it's not a big deal, everything within wgm that I need is working just fine for me.
The crude GUI interface should provide basic functionality such as import/start/stop/status of 'client' Peers.

If there is an error in the HTTP code, then this will be displayed in the HTTP console (F12)

Some GUI elements such as the IPSET tab are not clickable, but I would hope that the following sequence of buttons would execute/show the expected results

DEFINED Peers SHOW ALL
ACTIVE Peers SHOW ALL
Category: 'clients' Start
ACTIVE Peers SHOW ALL
Category: 'clients' Stop
ACTIVE Peers SHOW ALL
 
The SHOW ALL and QR Code do work. But the Category: 'clients' Start Stop do not. The F12 console output stays the same no matter what button I press.


Code:
This page is in Almost Standards Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”.
user1.asp
Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. node.js:393
Uncaught Error: code length overflow. (1756>1056)
    createData http://192.168.50.1/js/qrcode.min.js:1
    makeImpl http://192.168.50.1/js/qrcode.min.js:1
    getBestMaskPattern http://192.168.50.1/js/qrcode.min.js:1
    make http://192.168.50.1/js/qrcode.min.js:1
    makeCode http://192.168.50.1/js/qrcode.min.js:1
    QRCode http://192.168.50.1/js/qrcode.min.js:1
    <anonymous> http://192.168.50.1/user1.asp:1096
qrcode.min.js:1:5199
    createData http://192.168.50.1/js/qrcode.min.js:1
    makeImpl http://192.168.50.1/js/qrcode.min.js:1
    getBestMaskPattern http://192.168.50.1/js/qrcode.min.js:1
    make http://192.168.50.1/js/qrcode.min.js:1
    makeCode http://192.168.50.1/js/qrcode.min.js:1
    QRCode http://192.168.50.1/js/qrcode.min.js:1
    <anonymous> http://192.168.50.1/user1.asp:1096
Some cookies are misusing the recommended “SameSite“ attribute 7
 
The SHOW ALL and QR Code do work. But the Category: 'clients' Start Stop do not. The F12 console output stays the same no matter what button I press.


Code:
This page is in Almost Standards Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”.
user1.asp
Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. node.js:393
Uncaught Error: code length overflow. (1756>1056)
    createData http://192.168.50.1/js/qrcode.min.js:1
    makeImpl http://192.168.50.1/js/qrcode.min.js:1
    getBestMaskPattern http://192.168.50.1/js/qrcode.min.js:1
    make http://192.168.50.1/js/qrcode.min.js:1
    makeCode http://192.168.50.1/js/qrcode.min.js:1
    QRCode http://192.168.50.1/js/qrcode.min.js:1
    <anonymous> http://192.168.50.1/user1.asp:1096
qrcode.min.js:1:5199
    createData http://192.168.50.1/js/qrcode.min.js:1
    makeImpl http://192.168.50.1/js/qrcode.min.js:1
    getBestMaskPattern http://192.168.50.1/js/qrcode.min.js:1
    make http://192.168.50.1/js/qrcode.min.js:1
    makeCode http://192.168.50.1/js/qrcode.min.js:1
    QRCode http://192.168.50.1/js/qrcode.min.js:1
    <anonymous> http://192.168.50.1/user1.asp:1096
Some cookies are misusing the recommended “SameSite“ attribute 7
It could be that external libraries haven't been loaded correctly?

Did you use amtm to install wg_manager?

Perhaps you could try temporarily installing another addon GUI

e.g. issue command line commands
Code:
amtm

j3

1
 
It could be that external libraries haven't been loaded correctly?

Did you use amtm to install wg_manager?

Perhaps you could try temporarily installing another addon GUI

e.g. issue command line commands
Code:
amtm

j3

1
I did not use amtm to install wgm. I used the curl command from your Github to use the beta version.

I installed scMerlin and rebooted the router. The WebUI still acts the same. The F12 console output is the same except this line is no longer there
Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. node.

Tomorrow I could uninstall everything and try using amtm to install wgm and see what happens?
 
You guys have spent more time with WG than me. From what you've seen, is the output from "wg show" stable enough to actually be parsed for better reporting, or do they tend to make changes to that output between userspace tool updates?

I.e. the idea would be to parse what's returned by that command to render it in an HTML table:

Code:
+----------+----------+
| label:   | content  |
| label:   | content  |
| label:   | content  |
+----------+----------+

This is (another) nice thing with OpenVPN where it can generate a status file meant for parsing. wg only dumps raw text output with limited parsability.
 
You guys have spent more time with WG than me. From what you've seen, is the output from "wg show" stable enough to actually be parsed for better reporting, or do they tend to make changes to that output between userspace tool updates?
There have not been many wg userspace releases, last was a year ago and the first I compiled. Before that we used @Odkrys compiled version from 210314.
I did some limited parsing in a script to track latest handshake and restart the peer if going above 3min. There were no problems in parsing between the 2 versions.

Perhaps @Martineau have studied this more in detail.
 
You guys have spent more time with WG than me. From what you've seen, is the output from "wg show" stable enough to actually be parsed for better reporting, or do they tend to make changes to that output between userspace tool updates?

I.e. the idea would be to parse what's returned by that command to render it in an HTML table:

Code:
+----------+----------+
| label:   | content  |
| label:   | content  |
| label:   | content  |
+----------+----------+

This is (another) nice thing with OpenVPN where it can generate a status file meant for parsing. wg only dumps raw text output with limited parsability.
I don't recall having to alter/correct the parsing of the wg output.

In certain cases, information can be extracted/parsed in several ways

e.g. latest-handshakes value using the verbose human-friendly output
Code:
wg show wg14

interface: wg14
  public key: izRbZFsvLIDR/nrY//KAy5koyM/JbH7/Ne66s+l6nSE=
  private key: (hidden)
  listening port: 46316

peer: p/EARiwrAH/nL2+4/QmpzTheDPc/OSFPT+yGKfaUyw1=
  endpoint: 176.70.52.98:1443
  allowed ips: 0.0.0.0/0
  latest handshake: 1 minute, 11 seconds ago. (sec:71)
  transfer: 1.07 MiB received, 451.93 KiB sent
  persistent keepalive: every 25 seconds
or the static positional values...
Code:
wg show wg14 dump

c+3VzTLuOL3+pFgKEMi/9+DdD0+V9J350/3YimOE+HA=    izRbZFsvLIDR/nrY//KAy5koyM/JbH7/Ne66s+l6nSE=    46316    off
p/EARiwrAH/nL2+4/QmpzTheDPc/OSFPT+yGKfaUyw1=    (none)    146.70.51.98:1443    0.0.0.0/0    1664607038    1020928    391308    25
or even by name...
Code:
wg show wg14 latest-handshakes

p/EARiwrAH/nL2+4/QmpzTheDPc/OSFPT+yGKfaUyw1=    1664607038

Code:
wg show all latest-handshakes
 
Last edited:
In certain cases, information can be extracted/parsed in several ways
I ended up parsing the output from "wg show" by splitting fields using the ":" as delimiter. Works pretty well so far.

1664642893349.png
 
I ended up parsing the output from "wg show" by splitting fields using the ":" as delimiter. Works pretty well so far.

View attachment 44532
Are you intending to support IPv6 on both server and clients and will users still be able to adjust their setting via scripting (e.g. via WGM as I do at present). I have migrated from OpenVPN to WireGuard as @Martineau's WGM implementation means I can run fully run dual stack, which is not feasible for clients under OpenVPN. I have read your comments on why you have not done this for OpenVPN and understand the issues. What I would like to understand is when migrating to 388 whether I will lose my ability to run dual stack on the clients. I have been able to this (with a lot of guidance from @ZebMcKayhan) by to attach the local peers via their MAC addresses (via IPsets) so that the normal address rotation for IPV6 is not a problem.
 
Are you intending to support IPv6 on both server and clients and will users still be able to adjust their setting via scripting (e.g. via WGM as I do at present)
I have no intention of doing any changes to Asus' Wireguard implementation beyond integrating into VPNDirector (and that is already proven difficult). So whatever Wireguard capabilities that will be available will be those implemented by Asus.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top