Hi, I'd like to report the following bug / problem we have with our RUTX09 routers.
Description of the problem :
When the modem has only internet using the WAN port (SIM card not inserted or no service ), and we send the "enable mobile data" command by modbus, the OpenVPN client connection will restart each 30 seconds, making it unusable.
Configuration of the modem :
- remove SIM card (or make sure the sim operator has no reception)
- connect WAN port to internet
- factory reset RUTX09 configuration
- enable failover on WAN, mob1s1a1 and mob1s2a1
- enable modbus TCP slave
- add an OpenVPN client profile
Steps to reproduce :
- Enable mobile data connection via modbus :
using for example the QModbus utility, set register "204" to "1"
The OpenVPN connection will now restart each 30 seconds.
Expected behaviour :
The OpenVPN connection should remain stable.
Firmware tested :
Workaround used :
Instead of using modbus, we use the JSON-RPC call to disable / enable mobile data.
Sending via JSON-RPC the command "network.interface.mob1s1a1 up/down" does not give this bug.
Logs :
Each 30s these kind of logs appear :
Wed May 24 16:45:26 2023 daemon.notice netifd: mob1s1a1 (4518): Network registration failed
Wed May 24 16:45:26 2023 daemon.notice netifd: mob1s1a1 (5950): Stopping network mob1s1a1
Wed May 24 16:45:27 2023 daemon.notice netifd: mob1s1a1 (5950): Command failed: Not found
Wed May 24 16:45:27 2023 daemon.notice netifd: mob1s1a1 (5950): Command failed: Not found
Wed May 24 16:45:27 2023 daemon.notice netifd: mob1s1a1 (5950): Command failed: Permission denied
Wed May 24 16:45:27 2023 daemon.notice netifd: Interface 'mob1s1a1' is now down
Wed May 24 16:45:27 2023 daemon.notice netifd: Interface 'mob1s1a1' is setting up now
Wed May 24 16:45:27 2023 daemon.notice netifd: mob1s1a1 (5973): wwan[5973] Using wwan usb device on bus 3-1
Wed May 24 16:45:27 2023 daemon.notice netifd: mob1s1a1 (5973): wwan[5973] Using proto:qmi_wwan device:/dev/cdc-wdm0 iface:wwan0 desc:Quectel EG06
Wed May 24 16:45:27 2023 daemon.notice netifd: mob1s1a1 (5973): Quering active sim position
Wed May 24 16:45:27 2023 daemon.notice netifd: mob1s1a1 (5973): Using net device: wwan0
Wed May 24 16:45:28 2023 daemon.notice netifd: mob1s1a1 (5973): Informing driver of raw-ip for wwan0 ..
Wed May 24 16:45:28 2023 user.notice root: uqmi -d /dev/cdc-wdm0 --timeout 3000 --wda-set-data-format --link-layer-protocol raw-ip --ul-protocol disabled --dl-protocol disabled
Wed May 24 16:45:28 2023 daemon.info dnsmasq[28292]: read /etc/hosts - 4 addresses
Wed May 24 16:45:28 2023 daemon.info dnsmasq[28292]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Wed May 24 16:45:28 2023 daemon.err openvpn(test)[5257]: event_wait : Interrupted system call (code=4)
Wed May 24 16:45:28 2023 daemon.notice openvpn(test)[5257]: SIGTERM received, sending exit notification to peer
Wed May 24 16:45:28 2023 daemon.notice netifd: mob1s1a1 (5973): Starting network mob1s1a1 using APN: orange