Search results

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

  1. Martineau

    TV with OpenVPN client

    My Sony Bravia (Google TV) A95K shows under the Apps Tools category together with many other commercial VPN provider specific client Apps such as Mullvad, ExpressVPN, Sufshark, Purevpn etc. Not sure how good either of these are (haven't tried them myself), but VPN Client Pro apparently...
  2. Martineau

    Crontab jobs disappeared.

    So back in 2016/2017 I posted a crude script to try and track nominated command executions - although not all commands can be successfully tracked. https://www.snbforums.com/threads/join-to-wireless-network-with-cli.42614/post-363225 So changing line 32 to cru) allows tracking cru...
  3. Martineau

    Unbound Show local names in unbound log requests

    The unbound_manager default is to accept/identify DNS resolver requests from the router's dnsmasq (127.0.0.1) To allow unbound to accept/identify direct requests from individual LAN clients use unbound_manager command: e = Exit Script [?] A:Option ==> dnsmasq disable If you currently use...
  4. Martineau

    Prevent and Stop WAN connection unless Diversion and USB device is working!

    I don't personally use diversion but suggested something like the following for a forum user years ago. Basically you would need to check if /opt is mounted or the existence of a specific file in this case diversion...either in init-start and or firewall-start by calling the following script...
  5. Martineau

    Configuring Chk-WAN

    I would recommend using the examples shown on Github to manually configure the cron job: https://github.com/MartineauUK/Chk-WAN In an attempt to be as flexible as possible, ChkWAN can run permanently in the background and check the WAN every second if there is a mission critical need, but the...
  6. Martineau

    Unbound Cannot Install Unbound / S02haveged 404 error

    After being dormant for three years..... I have uploaded Unbound Manager v3.23 (see commits) To upgrade e = Exit Script [?] A:Option ==> uf Forced Update unbound_manager.sh downloaded successfully unbound Manager UPDATE Complete! bd71959343e29df954e151b8a6e3b4ad...
  7. Martineau

    Adding Unbound when you have Diversion

    Start unbound manager using unbound_manager advanced +======================================================================+ | Welcome to the unbound Manager/Installation script (Asuswrt-Merlin) | | | |...
  8. Martineau

    Web History Reporting and Management (Traffic Analyzer/Aiprotection Monitor)

    Until I get around to adding say the supplementary emailsummary switch....you would filter out the contents of $REPORT i.e. replace the SendMail() function line cat $REPORT >>SENDMAIL with tail -n3 $REPORT >>SENDMAIL or for just the data line tail -n2 $REPORT | head -n1 >>SENDMAIL
  9. Martineau

    PBR for PPTP

    You could initially try with this (5 year old) PPTP/LT2P script to use PBR for a LAN device, then it may be possible to restrict to a specific port https://www.snbforums.com/threads/l2tp-vpn-client-for-only-one-device.37927/post-312177
  10. Martineau

    In Asuswrt, how to display the log timestamp with nano seconds?

    Install Entware from amtm (You will need a USB flash drive attached to the router) amtm then install the Entware date utility opkg install coreutils-date
  11. Martineau

    Need a script that auto reboot if internet is down

    Do you mean when the WAN is retored? ;) See https://github.com/RMerl/asuswrt-merlin.ng/wiki/User-scripts#wan-event So you would create a script that fires on the 'WAN0-connected' event and calls your email script.
  12. Martineau

    Web History Reporting and Management (Traffic Analyzer/Aiprotection Monitor)

    Originally I hard-coded the in-line SendMail() function for a Gmail account and at the time was criticised for not supporting other providers. Things have moved on in the four and a half years since I wrote the script, and external support for other email accounts is now available via the em...
  13. Martineau

    Web History Reporting and Management (Traffic Analyzer/Aiprotection Monitor)

    Running the script with no arguments defaults to filtering records for the current hour for 'today' e.g. sh /jffs/scripts/Traffic*.sh Processing '/jffs/.sys/TrafficAnalyzer/TrafficAnalyzer.db' database....please wait! (TrafficAnalyzer_Report.sh): 28463 v1.15 Traffic Analyzer starting...
  14. Martineau

    Web History Reporting and Management (Traffic Analyzer/Aiprotection Monitor)

    You could try running the report (in debug mode) to calculate the usage for the 24hour period sh -x ./TrafficAnalyzer_Report.sh date=2023/06/27 time= Then cut'n' paste say the last 50 lines of the output e.g. + nvram get tmp_RX_TOTAL + RX_TOTAL=42209946 + nvram unset tmp_RX_TOTAL + nvram...
  15. Martineau

    Web History Reporting and Management (Traffic Analyzer/Aiprotection Monitor)

    It has been a while since I last reviewed these scripts. I have uploaded new versions of both the TrafficAnalyzer and WebHistory scripts e.g. Web History Report so they may be fixed? P.S. Which router and firmware are you using?
  16. Martineau

    In Asuswrt, how to display the log timestamp with nano seconds?

    The BusyBox version of date on Asus routers BusyBox v1.25.1 (2023-05-07 12:35:01 EDT) multi-call binary. Usage: date [OPTIONS] [+FMT] [TIME] Display time (using +FMT), or set time [-s,--set] TIME Set time to TIME -u,--utc Work in UTC (don't convert to local time)...
  17. Martineau

    Is it Possible to limit OpenVPN connect time?

    No problem, but clearly my scripting skills are rapidly dwindling (if I ever had any) having been embarrassed by the lack of a couple of couple of space characters. :rolleyes: Note: I may try and revisit the OpenVPN Management interface to see if the OpenVPN kill command can target a specific...
  18. Martineau

    Is it Possible to limit OpenVPN connect time?

    Whoops! - :oops: there is a typo in this line (there is a missing space character before the first ']') if [ -f /jffs/configs/BlockedVPN${VPN_SERVER_ID}_Users] && [ -n "$(grep -o "$username" /jffs/configs/BlockedVPN${VPN_SERVER_ID}_Users)" ];then # Patch Alpha2 I have now patched the script...
  19. Martineau

    Is it Possible to limit OpenVPN connect time?

    300 secs for 5 mins. Clearly for testing (when I was able) I set the limit to 1 min and that's the version that I had saved to my laptop :oops: )
  20. Martineau

    Is it Possible to limit OpenVPN connect time?

    You will need to create a repository in which to store OVPN Server usernames that you have deemed need to be punished for violating session time limits. NVRAM can be a scarce/limited resource so rather than save the usernames in NVRAM, it is probably better to use /jffs (or /tmp if you don't...
Top