[SOLVED]Stop and start Wireguard via command line

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
LaimisV
DD-WRT User


Joined: 01 Mar 2016
Posts: 63

PostPosted: Wed Jun 16, 2021 12:01    Post subject: [SOLVED]Stop and start Wireguard via command line Reply with quote
A simple question: how can I stop and start Wireguard server exactly as DD-WRT does?
So I don't need to restart whole router.

I need equivalent of:
killall openvpn
/usr/sbin/openvpn --config ... --deamon

So I will be able to use openvpn or wireguard by running commands.

I guess I need to stop and start this process somehow:
1188 root 0 SW< [wg-crypt-oet1]

If there is a difference in hardware, the router is R7800. 'wg show' confirms that tunnel is working.

Thank you
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Wed Jun 16, 2021 12:38    Post subject: Reply with quote
There is no difference in hardware so I transferred this thread to the Advanced Networking forum

The answer is in our documentation i.e. WireGuard Server setup guide page 19:

Quote:
Manual stopping and starting
If you manual want to stop and start WireGuard you can do the following (assuming WG is on oet1 and setup and enabled):
To stop:
ip link set oet1 down

To start again:
ip link set oet1 up
/etc/config/eop-tunnel.prewall >/dev/null 2>&1
/etc/config/eop-tunnel.firewall >/dev/null 2>&1

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
LaimisV
DD-WRT User


Joined: 01 Mar 2016
Posts: 63

PostPosted: Wed Jun 16, 2021 14:35    Post subject: Reply with quote
Thanks! Seems Google was not lucky enough to find it in 10-20 minutes by adding dd-wrt phrase. I will search directly on DD-WRT page and resources next time.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum