wireguard_ynh icon indicating copy to clipboard operation
wireguard_ynh copied to clipboard

Changing the port does not work

Open jcn50 opened this issue 1 year ago • 2 comments

Changing the port from Wireguard Server Settings does not work and does not alter the YunoHost configuration/settings. Where is that $port_wg variable set and how to alter it?

jcn50 avatar Jul 12 '24 11:07 jcn50

When installing/removing/installing WireGuard many times, the ports used after installation increase from 8095, to 8096, to 8097, etc. For changing back the port from 8097 to 8095 (default port), I have used those commands:

yunohost app setting wireguard port_wg -v 8095
yunohost firewall disallow TCP 8097 &&  yunohost firewall disallow UDP 8097 # your current port
yunohost firewall allow TCP 8095 && yunohost firewall allow UDP 8095 && yunohost firewall reload # default port

So I guess this can be closed (if nothing can be done to run this command from the APP?)...

jcn50 avatar Jul 12 '24 12:07 jcn50

We should mention somewhere (doc/ADMIN.md) that this setting should NOT be changed. :)

tituspijean avatar Jul 30 '24 09:07 tituspijean