You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
753 B
753 B
Reconfigure WireGuard
The SaveConfig = true
directive causes the wg-quick
service to overwrite the config file, so modifications to the config should either be made using the wg
or ip
commands directly, or by shutting down the wg-quick
service before making any edits to the config file.
See Current Config
to see WireGuard's status and configuration, run:
sudo wg show
to see what ip the wg0
interface is configured with, run:
ip addr show wg0
Change Port
to change what port WireGuard listens on for interface wg0
, run:
sudo wg set wg0 listen-port ${new_port:?}
Change IP
to change what IP the interface wg0
has, run:
ip addr del ${old_ip:?}/24 dev wg0
ip addr add ${new_ip:?}/24 dev wg0