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

  1. Wallace

    OpenVPN client connecting to OpenVPN server with 2FA

    I have a working setup guide for OpenVPN client with 2FA, please take a look. Post in thread 'OpenVPN Client with 2FA' https://www.snbforums.com/threads/openvpn-client-with-2fa.79337/post-775325 Appreciate any advice or insights! Thanks!
  2. Wallace

    OpenVPN Client with 2FA

    Thanks for the pointers! Updated firewall file: /jffs/openvpn/firewall-up.v2.sh ## Configure NAT to masquerade the source IP of packets sent to tun0 to router's IP iptables -t nat -I POSTROUTING 1 -o tun0 -j MASQUERADE ## Block inbound from remote site (tun0) ## Drop NEW connections...
  3. Wallace

    OpenVPN Client with 2FA

    This is my setup for a site-to-site vpn with openvpn client with 2FA. Install opkg packages: opkg install expect tmux bind-tools Files required: /jffs/openvpn/client.ovpn /jffs/openvpn/client-credentials.txt /jffs/openvpn/start-openvpn-client.sh /jffs/openvpn/firewall-up.sh...
  4. Wallace

    [Solution] ASUSwrt DDNS updater script that works with multi-NAT

    Found another free dynamic DNS provider that does not expire free accounts. Update the following variables with Dynu account details in update-ddns-asuswrt-dynu.sh DYNU_PASSWORD="[your-username-at-dynu.com]" ... DYNU_DDNS_HOSTNAME="[your-hostname].ddnsfree.com" ...
  5. Wallace

    Persistent crontab

    I forgot to mention that the target hardware is ASUS Lyra Trio. Also, interestingly there is a /jffs/ partition where the shell scripts can be persist after reboot. Would the "usual workarounds" work with /jffs/ partition ?
  6. Wallace

    [Solution] ASUSwrt DDNS updater script that works with multi-NAT

    I'm having intermittent update problems with ez-ipupdate too, it looks like either ez-ipupdate or ASUS free ddns service is flaky. Also, ez-ipupdate is insecure as it uses no credentials and unencrypted channel to update ASUS ddns service. I'm abandoning both ez-ipupdate and ASUS ddns service...
  7. Wallace

    [Solution] ASUSwrt DDNS updater script that works with multi-NAT

    Up to this point, the script is able to: Retrieve the public ip from https://checkip.amazonaws.com/ Execute a dns query with nslookup Cache the IP in a temp file (/tmp/myip) The failure is from another program (ez-ipupdate) use to update DDNS. Getting ez-ipupdate to work crucial. Are you...
  8. Wallace

    [Solution] ASUSwrt DDNS updater script that works with multi-NAT

    Sorry for the confusion. I have updated the instructions to indicate where the commands should be executed from.
  9. Wallace

    [Solution] ASUSwrt DDNS updater script that works with multi-NAT

    Try without "-i eth0" option, your device might not have "eth0" interface. /usr/sbin/ez-ipupdate -S dyndns -a 62.46.xxx.xxx -h your-hostname.asuscomm.com -A 2 -s nwsrv-ns1.asus.com
  10. Wallace

    [Solution] ASUSwrt DDNS updater script that works with multi-NAT

    "my_name.asuscomm.com" is not a valid hostname. Underscores (_) are not allowed in hostnames.
  11. Wallace

    Persistent crontab

    I have a ddns update script that is added to the crontab with this command. cru a 1 "*/5 * * * *" /jffs/update-ddns-asuswrt.sh However, this crontab setting does not survive a reboot. What is a good method to ensure the crontab settings persist on a vanilla ASUSwrt firmware?
  12. Wallace

    Install ipkg, opkg or optware on default ASUSWrt

    I'm trying to get public IP from external url for a ddns update script that can be used in a multiple NAT environment. https://www.snbforums.com/threads/solution-asuswrt-ddns-updater-script-that-works-with-multi-nat.47531/
  13. Wallace

    [Solution] ASUSwrt DDNS updater script that works with multi-NAT

    Thanks for the input. update-ddns-asuswrt.sh updated to use system logger.
  14. Wallace

    [Solution] ASUSwrt DDNS updater script that works with multi-NAT

    Is there a way to log rotate in ASUSwrt firmware?
  15. Wallace

    [Solution] ASUSwrt DDNS updater script that works with multi-NAT

    Thanks for the good suggestion! I have made the changes.
Back
Top