Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wireguard, and possibly other things are broken in recent firmware #491

Open
ckuethe opened this issue Feb 8, 2025 · 0 comments
Open

Wireguard, and possibly other things are broken in recent firmware #491

ckuethe opened this issue Feb 8, 2025 · 0 comments

Comments

@ckuethe
Copy link
Contributor

ckuethe commented Feb 8, 2025

It apppears that the webui is inappropriately storing quoted values, or something is not stripping quotes when reading values from env. Note the IP='"192.168.2.10/24"' and 'x"true"' below. I'm away from my dev machine right now - I might be able to look into this next week.

# sh -x /etc/init.d/S42wireguard  start
+ . /etc/init.d/rc.common
+ '[' /etc/init.d/S42wireguard '=' -sh ]
+ fw_printenv -n debug
+ debug=
+ CRONTABS=/etc/cron/crontabs/root
+ DAEMON=/etc/init.d/S42wireguard
+ DAEMON_ARGS=
+ DAEMON_PATH=/bin
+ + basename /etc/init.d/S42wireguard
sed -r 's/^[FKS]\d{2}//'
+ DAEMON_SHORT=wireguard
+ which wireguard
+ DAEMON_FULL=
+ PIDFILE=/run/wireguard.pid
+ '[' -r /etc/default/wireguard ]
+ DEV=wg0
+ fw_printenv -n wg_address
+ IP='"192.168.2.10/24"'
+ RESOLV_CONF=/tmp/resolv.conf
+ RESOLV_BAK=/tmp/resolv.conf.bak
+ starting
+ echo 'Starting wireguard'
+ log
+ logger -p daemon.info -t 'wireguard[7892]'
+ echo -n 'Starting wireguard'
Starting wireguard+ is_debug_mode
+ '[' 0 -gt 0 ]
+ '[' true '='  ]
+ echo -n ': '
: + fw_printenv -n wg_enabled
+ '[' xtrue '=' 'x"true"' ]
+ quit Disabled
+ '[' -n Disabled ]
+ log
+ echo Disabled
+ logger -p daemon.info -t 'wireguard[7892]'
+ echo_c 66 Disabled
Disabled
+ exit 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant