What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

RTRMON RTRMON v2.1.6 -Jul 5, 2025- Monitor your Router's Health (New: AMTM, Network Conn/Bandwidth/Diag + Port Scanner + Speedtest) - Wireguard v2.2.04 Beta!

Could you please copy the exact output you get with errors and all? I can see if I can write a crazy filter to get rid of it all. That might be a good bandaid in the interim.
Sure:
Code:
ASUSWRT-Merlin RT-AX86U_PRO 3004.388.8_4 Sun Nov 17 19:18:01 UTC 2024
admin@RT-AX86U_Pro:/tmp/home/root# echo 2 > /proc/sys/net/ipv4/conf/wgc1/rp_filter
admin@RT-AX86U_Pro:/tmp/home/root# speed="$(/jffs/addons/rtrmon.d/speedtest --format=csv --interface=wgc1 --accept-license --accept-gdpr 2>&1)"
admin@RT-AX86U_Pro:/tmp/home/root# echo $speed
[2025-08-02 17:38:26.379] [error] Error: [0] Cannot open socket [2025-08-02 17:38:26.435] [error] Error: [0] Cannot open socket [2025-08-02 17:38:26.510] [error] Error: [0] Cannot open socket [2025-08-02 17:38:26.555] [error] Error: [0] Cannot open socket [2025-08-02 17:38:26.610] [error] Error: [0] Cannot open socket [2025-08-02 17:38:26.611] [error] Error: [0] Cannot open socket [2025-08-02 17:38:26.631] [error] Error: [0] Cannot open socket "AltusHost B.V. - Stockholm","5235","11.9958","0.0235","0","29754059","28028942","125619336","244406707","https://www.speedtest.net/result/c/388bc087-58b8-4553-8003-c6c38c8e9db6","1","14.7404","7.25051","9.85","247.991","9.92288","2.0673","8.865","33.693","11.915","12.009"
admin@RT-AX86U_Pro:/tmp/home/root#

The error part is before the first "
 
Sure:
Code:
ASUSWRT-Merlin RT-AX86U_PRO 3004.388.8_4 Sun Nov 17 19:18:01 UTC 2024
admin@RT-AX86U_Pro:/tmp/home/root# echo 2 > /proc/sys/net/ipv4/conf/wgc1/rp_filter
admin@RT-AX86U_Pro:/tmp/home/root# speed="$(/jffs/addons/rtrmon.d/speedtest --format=csv --interface=wgc1 --accept-license --accept-gdpr 2>&1)"
admin@RT-AX86U_Pro:/tmp/home/root# echo $speed
[2025-08-02 17:38:26.379] [error] Error: [0] Cannot open socket [2025-08-02 17:38:26.435] [error] Error: [0] Cannot open socket [2025-08-02 17:38:26.510] [error] Error: [0] Cannot open socket [2025-08-02 17:38:26.555] [error] Error: [0] Cannot open socket [2025-08-02 17:38:26.610] [error] Error: [0] Cannot open socket [2025-08-02 17:38:26.611] [error] Error: [0] Cannot open socket [2025-08-02 17:38:26.631] [error] Error: [0] Cannot open socket "AltusHost B.V. - Stockholm","5235","11.9958","0.0235","0","29754059","28028942","125619336","244406707","https://www.speedtest.net/result/c/388bc087-58b8-4553-8003-c6c38c8e9db6","1","14.7404","7.25051","9.85","247.991","9.92288","2.0673","8.865","33.693","11.915","12.009"
admin@RT-AX86U_Pro:/tmp/home/root#

The error part is before the first "
Could you try:

Code:
echo $speed | sed 's/^[^"]*//'

I'm not seeing any ill effects, so I updated Beta 3... please give it a shot if you had success?

Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/RTRMON/master/rtrmon.sh" -o "/jffs/scripts/rtrmon.sh" && chmod 755 "/jffs/scripts/rtrmon.sh"
 
Last edited:
Could you try:

Code:
echo $speed | sed 's/^[^"]*//'

I'm not seeing any ill effects, so I updated Beta 3... please give it a shot if you had success?

Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/RTRMON/master/rtrmon.sh" -o "/jffs/scripts/rtrmon.sh" && chmod 755 "/jffs/scripts/rtrmon.sh"
Looks great!
Screenshot_20250802_192144_ConnectBot.jpg

Screenshot_20250802_192238_ConnectBot.jpg

I will continue to search for a proper fix for the ipv6 bind issues and let you know if I find anything useful.
 
Awesome! Thanks for your excellent help with this, @ZebMcKayhan!!
I think I've found a way around it... ipv4 and ipv6 are very different and I don't claims to really know what I'm doing. But the
Code:
ip rule add from <wgcX ipv4> lookup wgcX prio 10
makes ipv4 work, the same is not true for ipv6 equivalent. However, adding
Code:
ip -6 rule add from all oif wgcX lookup wgcX prio 10
seems to do the trick for ipv6, both ping and speedtest.

For ping, only the target ip type fix is needed but for speedtest both are needed as ipv4 seems required for connection to ookla and then ipv6 for the test servers.

Unfortunately the ipv6 fix does not work for ipv4 either so this must mean that the packet formation must differ or something.
 
Last edited:
I think I've found a way around it... ipv4 and ipv6 are very different and I don't claims to really know what I'm doing. But the
Code:
ip rule add from <wgcX ipv4> lookup wgcX prio 10
makes ipv4 work, the same is not true for ipv6 equivalent. However, adding
Code:
ip -6 rule add from all oif wgcX lookup wgcX prio 10
seems to do the trick for ipv6, both ping and speedtest.

For ping, only the target ip type fix is needed but for speedtest both are needed as ipv4 seems required for connection to ookla and then ipv6 for the test servers.
WOW! That's great stuff! I'll get this implemented. You rock! :)
 
I think I've found a way around it... ipv4 and ipv6 are very different and I don't claims to really know what I'm doing. But the
Code:
ip rule add from <wgcX ipv4> lookup wgcX prio 10
makes ipv4 work, the same is not true for ipv6 equivalent. However, adding
Code:
ip -6 rule add from all oif wgcX lookup wgcX prio 10
seems to do the trick for ipv6, both ping and speedtest.

For ping, only the target ip type fix is needed but for speedtest both are needed as ipv4 seems required for connection to ookla and then ipv6 for the test servers.

Unfortunately the ipv6 fix does not work for ipv4 either so this must mean that the packet formation must differ or something.
Looks like this tweak has to be made as well on the rule removal:

Code:
ip -6 rule del prio 10

OK, I've made those changes to this latest version of Beta 3, and eliminated the sed cleanup (which I may actually add back in later, because it could help clean up other random garbage I've noticed in the past), but this would be a good test for you! :)

Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/RTRMON/master/rtrmon.sh" -o "/jffs/scripts/rtrmon.sh" && chmod 755 "/jffs/scripts/rtrmon.sh"
 
Looks like this tweak has to be made as well on the rule removal:

Code:
ip -6 rule del prio 10

OK, I've made those changes to this latest version of Beta 3, and eliminated the sed cleanup (which I may actually add back in later, because it could help clean up other random garbage I've noticed in the past), but this would be a good test for you! :)

Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/RTRMON/master/rtrmon.sh" -o "/jffs/scripts/rtrmon.sh" && chmod 755 "/jffs/scripts/rtrmon.sh"
No good
Screenshot_20250802_205459_ConnectBot.jpg

From looking at the code it looks like you commented the ipv4 fix and added the ipv6 fix but as I said, for speedtest both are needed. Ipv4 to get the stuff from ookla otherwise we get the configuration error and no test and the ipv6 fix to take care of test server.
 
No good
View attachment 67079
From looking at the code it looks like you commented the ipv4 fix and added the ipv6 fix but as I said, for speedtest both are needed. Ipv4 to get the stuff from ookla otherwise we get the configuration error and no test and the ipv6 fix to take care of test server.
Ahhhh I thought the one ring would rule them all! I'll add the other one back in as well.
 
I did modify the script locally by
-removing the # on line 3863
-add
Code:
ip rule del prio 10 >/dev/null 2>&1
before line 3875

Then it works beautifully:
Screenshot_20250802_214609_ConnectBot.jpg

No errors and I get an ipv6 capable server so the test is ipv6 over wgc1 according to the speedtest binary wishes. I think this is the best we can do until we can force speedtest over ipv4
 
I did modify the script locally by
-removing the # on line 3863
-add
Code:
ip rule del prio 10 >/dev/null 2>&1
before line 3875

Then it works beautifully:
View attachment 67080
No errors and I get an ipv6 capable server so the test is ipv6 over wgc1 according to the speedtest binary wishes. I think this is the best we can do until we can force speedtest over ipv4
OK... I've made the necessary changes in Beta 4. Please see if everything continues to function if you don't mind? :)

Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/RTRMON/master/rtrmon.sh" -o "/jffs/scripts/rtrmon.sh" && chmod 755 "/jffs/scripts/rtrmon.sh"
 
OK... I've made the necessary changes in Beta 4. Please see if everything continues to function if you don't mind? :)

Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/RTRMON/master/rtrmon.sh" -o "/jffs/scripts/rtrmon.sh" && chmod 755 "/jffs/scripts/rtrmon.sh"
Thanks! This version works just the same as my local edit. Great work!
 
Thanks! This version works just the same as my local edit. Great work!
Thank you for all your help troubleshooting this, and making some great recommendations to get around the Ookla Speedtest binary! :)
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top