YunoHost-Apps / wireguard_ynh

WireGuard VPN software with a web UI configuration companion, packaged for YunoHost.
GNU General Public License v3.0
34 stars 10 forks source link

Changing the port does not work #108

Open jcn50 opened 2 months ago

jcn50 commented 2 months ago

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 commented 2 months ago

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?)...

tituspijean commented 2 months ago

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