• 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!

Recent content by Mikii

  1. M

    Minimum crontab resolution 2 minutes?

    Thanks...
  2. M

    Minimum crontab resolution 2 minutes?

    Yes. It seems like the next cron timing is taken from the end time of the script, not the start... so if a script ends at 3.52.33 seconds, next one will run at at 3.54.00. That is my impression. Or maybe, as you say, this only happens if the script ends within the last 10 seconds window.
  3. M

    Minimum crontab resolution 2 minutes?

    Thanks for the tip. Haven't tried yet (my objective is to run a command every three seconds, hence the loop)... But I found out that running the crontab command asynchronously seems to help. So I moved the schedule to two minutes and extended the loop to two minutes on my main script. cru a...
  4. M

    Minimum crontab resolution 2 minutes?

    Hi. I am trying to run a crontab every minute, but is looks like the minimum time resolution I can get is actually TWO minutes. this happens on a RT-AX88U Pro with Firmware: 3006.102.5. crontab -l */1 * * * * sh /tmp/mnt/MicScripts/micscripts/time.sh #timing# the script code is very basic...
  5. M

    Change VPN director rule over ssh

    Hi. Is this the correct way to change a vpn director rule over ssh? Or is there some kind of internal Asus Merlin script/command I can use? Thank you. # Enable a rule named “Apple TV VPN” sed -i 's/<0>Apple TV VPN>/<1>Apple TV VPN>/g' /jffs/openvpn/vpndirector_rulelist # Then restart routing...
  6. M

    wan-event and wan0_realip_ip

    Thanks @dave14305 for your suggestions. If I understand it correctly you are checking two different variables to assess if "internet is up": wan${WANUNIT}_ipaddr and link_internet. I'll use a similar approach to be on the safe side. I appreciate your suggestions.
  7. M

    wan-event and wan0_realip_ip

    Hi, if wan-event $2 is set to “connected”, Do you think I can assume that wan0_realip_ip is set to the external IP, and that I can safely execute a curl Or should I still perform a double check on wan0_realip_ip and curl connectivity before using them?
  8. M

    Solved No ping on WG - BUG?

    Exactly. To recap for everybody, if you are experiencing a situation where: 1. You are running a WireGuard VPN (let's say wgc4) 2. You cannot connect to the internet from the router local interface via wgc4 (e.g. via a script or if you ssh into your local router) 3. The problem may be due to...
  9. M

    Solved No ping on WG - BUG?

    this is what i have now, but I need to do some clean-up I do not need them all: (mybe I got the syntax wrong on the web interface for vpndirector? I will try and invert it when I have time.) thanks. ip rule 0: from all lookup local 11300: from 10.13.128.229 lookup wgc3 11300...
  10. M

    Solved No ping on WG - BUG?

    Yes, using the interface ip address in ping does work! thank you again. and also this works for me: ip rule del from 10.13.128.229 lookup wgc3 prio 11300 however, setting the rule via the vpndirector web interface does not work. Have you tried that? Thanks again for helping me to fix this, I...
  11. M

    Solved No ping on WG - BUG?

    ah I see... thanks but it does not seem to work. I will stick with your echo 2 > /proc/sys/net/ipv4/conf/wgc3/rp_filter which is working just fine. What I could do is to reset rp_filter to 1 after I run my script, but since this is on a crontab, I would not want risk affecting the wgc3...
  12. M

    Solved No ping on WG - BUG?

    Hi @ZebMcKayhan, your suggestion sounds very interesting, I had not thought of that. If I understand correctly, you are suggesting to do something like this on vpndirector: VPN Director Custom Configuration Interface: WGC3 Description test Local IP 192.168.1.1 Remote IP <the VPN...
  13. M

    Solved No ping on WG - BUG?

    Interesting, I got this behaviour: If you boot up with only WireGuard active and no openvpn, you have: cat /proc/sys/net/ipv4/conf/wgc4/rp_filter 1 however, if you also activate any openvopn service start_vpnclient2 you then have: cat /proc/sys/net/ipv4/conf/tun12/rp_filter 0 and also: cat...
  14. M

    Solved No ping on WG - BUG?

    Thank you so much @ZebMcKayhan ! Actually, your rp-filter suggestion works just fine! After echo 2 > /proc/sys/net/ipv4/conf/wgc3/rp_filter, a ping -I wgc3 8.8.8.8 will work! the mystery is why turning any openvpn connection on and off would also fix my problem. I suspect this has to do...
  15. M

    Solved No ping on WG - BUG?

    Yes, that is what I meant. Certain LAN devices behind the router are bound to one or the other WG connections using the VPN Director, and they work as expected. My apology for not bing clear, English is a second language to me.
Back
Top