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

Tunnel server will not start and Adv Conf textbox remains blank #209

Closed
VA2XJM opened this issue Jan 21, 2022 · 1 comment
Closed

Tunnel server will not start and Adv Conf textbox remains blank #209

VA2XJM opened this issue Jan 21, 2022 · 1 comment

Comments

@VA2XJM
Copy link
Contributor

VA2XJM commented Jan 21, 2022

Just updated an hAP ac lite to V3.22.1.0. The tunnel server was not accepting connections and telnet to port 5525 was not working. So SHHed into the node to get the following output:

root@VE2ATU-FN08LF-Gateway:~/vtun# /etc/init.d/vtund restart
uci: Entry not found
/etc/rc.common: /etc/init.d/vtund: line 10: arithmetic syntax error

So I went ON this:

root@VE2ATU-FN08LF-Gateway:~/vtun# cat /etc/init.d/vtund
#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org

START=84
STOP=85

CLIENT_CONF=/tmp/vtun/vtund.conf

# Starting tun interface is tun50
TUNNUM=$((50 + `uci get aredn.@tunnel[0].maxclients`))
MAXTUNNUM=$(($TUNNUM + `uci get aredn.@tunnel[0].maxservers` - 1))

Since it is an update and I went to the "advanced Conf" to set the value. Surprise, when saving, it keeps the textbox blank. Blank textbox apply for : aredn.@tunnel[0].maxclients, aredn.@tunnel[0].maxservers, aredn.@meshstatus[0].lowmem and aredn.@meshstatus[0].lowroutes.

aredn.@downloads[0].pkgs_freifunk was blank but when set to default and saved, it worked as supposed.

EDIT:
Replacing uci get aredn.@tunnel[0].maxclients and uci get aredn.@tunnel[0].maxservers with hard value fixed part of it.
Replacing MAXTUNNUM=$(($TUNNUM + uci get aredn.@tunnel[0].maxclients - 1)) with hard value in /etc/init.d/vtundsrv has been needed too.

@dman776
Copy link
Contributor

dman776 commented Mar 18, 2022

this should be fixed in the latest nightly builds. Please verify.

@dman776 dman776 closed this as completed Mar 23, 2022
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

2 participants