Wireguard does not execute "Route up script"

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


Joined: 26 Jun 2008
Posts: 88

PostPosted: Fri Apr 08, 2022 3:37    Post subject: Wireguard does not execute "Route up script" Reply with quote
Build: 48567

I found that DD-WRT does not execute the Wireguard "Route up script." I created a very simple custom script that creates a file under /tmp. The file is not created after a client connects.

See attached images of config.
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12884
Location: Netherlands

PostPosted: Fri Apr 08, 2022 6:50    Post subject: Reply with quote
I have no trouble running a script.

I made a simple script /tmp/myscript.sh:
Code:
#!/bin/sh
touch /tmp/wgrun


Made the script executable and entered it in route-up script.

After save and Apply wgrun appeared in /tmp

_________________
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
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6867
Location: Romerike, Norway

PostPosted: Sat Apr 09, 2022 9:37    Post subject: Reply with quote
Can there be an issue with the file as a hidden file?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12884
Location: Netherlands

PostPosted: Sat Apr 09, 2022 9:50    Post subject: Reply with quote
Good call, but no I did test that too.

I think the OP expects it to run at the moment a client connects to a WG server but the script runs after the interface is started and up and the routes have been set.

_________________
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
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Apr 09, 2022 9:54    Post subject: Reply with quote
Script has to be executable, hidden file or not shouldn't be a factor, if it is.... it's some other issue.
_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
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