Scritch Try this instructions:
Post
RE: Wireguard - changes the default route although not configured
After a few days I managed to solve default route issue. Below there are my scripts with descriptions.
WG configuration:
/storage/.config/wireguard/wg0.conf
(Code, 9 lines)
Wireguard startup script:
/storage/.config/wgconnect.sh
(Code, 15 lines)
Stop Wireguard connection:
/storage/.config/wgdisconnect.sh
(Code, 3 lines)
Systemd service:
/storage/.config/system.d/wireguard.service
(Code, 15 lines)
Then all traffic routes via default eth0 interface and several ip's via wg0. Routes look as follows:
(Code, 11…
WG configuration:
/storage/.config/wireguard/wg0.conf
(Code, 9 lines)
Wireguard startup script:
/storage/.config/wgconnect.sh
(Code, 15 lines)
Stop Wireguard connection:
/storage/.config/wgdisconnect.sh
(Code, 3 lines)
Systemd service:
/storage/.config/system.d/wireguard.service
(Code, 15 lines)
Then all traffic routes via default eth0 interface and several ip's via wg0. Routes look as follows:
(Code, 11…
knedlyk
Worked for me perfectly and it has the benefit that you can use a FDQN / hostname for the VPN server.