visortgw
Very Senior Member
@Viktor Jaep : Same results with clean install of v2.0.14RC (i.e., broken).
Last edited:
So beta 2 works... or does it break too? The RC is working on both my GT-AX6000 and RT-AX88U without issue.Breaks again. Let me try uninstall, and reinstall.
Yes, beta 2 works! Give me a few minutes for to enable debug.So beta 2 works... or does it break too? The RC is working on both my GT-AX6000 and RT-AX88U without issue.
If you want to try a debug, please uncomment these lines:
4658 -- #} #2>&1 | tee $LOG | logger -t $(basename $0)[$$] # uncomment/comment to enable/disable debug mode
3687 -- #DEBUG=; set -x # uncomment/comment to enable/disable debug mode
3688 -- #{ # uncomment/comment to enable/disable debug mode
Then try running it, and please send me the results of where it gets stuck?
+ VPNState=2
+ [ -z 2 ]
+ [ 2 -eq 2 ]
+ TUN=tun11
+ timeout 10 nvram get vpn_client1_addr
+ NVRAMVPNADDR=server.site.com
+ ping -c 1 -W 0 server.site.com
+ awk -F [()] /PING/ { print $2}
Hum... and it just hangs there, eh? I did make a small change to the ping command... let me revert that back and see if that allows it to work again for you. DANG.SO... It appears that a site-to-site OpenVPN connection (using VPN Director rules) is the culprit (FYI, I changed the site URL to server.site.com for security purposes):
Code:+ VPNState=2 + [ -z 2 ] + [ 2 -eq 2 ] + TUN=tun11 + timeout 10 nvram get vpn_client1_addr + NVRAMVPNADDR=server.site.com + ping -c 1 -W 0 server.site.com + awk -F [()] /PING/ { print $2}
... but it explains why yours works and mine does not!Hum... and it just hangs there, eh? I did make a small change to the ping command... let me revert that back and see if that allows it to work again for you. DANG.
SO... It appears that a site-to-site OpenVPN connection (using VPN Director rules) is the culprit (FYI, I changed the site URL to server.site.com for security purposes):
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/RTRMON/develop/rtrmon.sh" -o "/jffs/scripts/rtrmon.sh" && chmod 755 "/jffs/scripts/rtrmon.sh"
Thank goodness for saved revisions... and debug mode. And awesome testers like YOU! LOL... but it explains why yours works and mine does not!
BINGO!!! That works!Thank goodness for saved revisions... and debug mode. And awesome testers like YOU! LOL
Please educate me as to the intended difference between the two ping commands.OK... see if this RC works better for you. Changed "-W 0" back to "-w 1" on the ping commands.
Code:curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/RTRMON/develop/rtrmon.sh" -o "/jffs/scripts/rtrmon.sh" && chmod 755 "/jffs/scripts/rtrmon.sh"
I was hoping to shave a little more time off the calculation loop... my hope was that a -W 0 would spend no time moving on after it got a ping... it sounds to me like -w 1 could take up to a second to get its info. But in your case with the site-to-site, something else must be going on.Please educate me as to the intended difference between the two ping commands.
I believe that I have pings disabled on the distant site, which might help to explain the difference between you and me.I was hoping to shave a little more time off the calculation loop... my hope was that a -W 0 would spend no time moving on after it got a ping... it sounds to me like -w 1 could take up to a second to get its info. But in your case with the site-to-site, something else must be going on.
-w deadline Specify a timeout, in seconds, before ping exits regardless of how many packets have been sent or received. In this case ping does not stop after count packet are sent, it waits either for deadline expire or until count probes are answered or for some error notification from network.
-W timeout Time to wait for a response, in seconds. The option affects only timeout in absense of any responses, otherwise ping waits for two RTTs.
That probably explains things...I believe that I have pings disabled on the distant site, which might help to explain the difference between you and me.
... but, it is a more secure configuration.That probably explains things...
I will double-down on my security stance, thank-you-very-much! Not only do I have all my important passwords saved in @Tech9's password manager, but he also mirrors my private WAN IP to inform me of any security issues. Any he, unbeknownst to me, checks my code during weird hours of the night on my local LAN.... but, it is a more secure configuration.
Any he, unbeknownst to me, checks my code during weird hours of the night on my local LAN.
FINALLY. Thanks!The mouse is yours.
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/RTRMON/master/rtrmon.sh" -o "/jffs/scripts/rtrmon.sh" && chmod 755 "/jffs/scripts/rtrmon.sh"
I have this feeling in the back of my head that it might be because of your site-to-site setup... let me take a look at the code. Could you verify that the IP on the other end is a private IP? Perhaps I can just exclude this from being able to run when it hits a private IP.@Viktor Jaep: Question with v2.0.15 for GT-AX6000 router with site-to-site VPN (OpenVPN and VPN Director). If I select Refresh (C) Current Statistics, it takes about 8 seconds for WAN, 7 seconds for LAN, and 4 minutes 34 seconds for VPN — VPN1 (site-to-site) results in No Data. Any idea why VPN stats take so much time, only to return No Data?
iftop -i tun1x (where x = the VPN slot# you want to listen to)
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!