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. P

    Merlin NAT Loopback Problem

    Trying to resolve something else, I met a problem which may just be Loopback related. To test for this thread, I used my cams which are working perfectly (which of course means nothng if I do not state conditions precisely). Well, they work perfectly locally and over my VPN server accessed with...
  2. P

    DDNS avoiding VPN client routing

    For DDNS Service, I want to use my real WAN IP and not VPN (through client) IP address. curl --interface eth0 does not work for me when VPN client is up. # curl -v --interface eth0 http://icanhazip.com * About to connect() to icanhazip.com port 80 (#0) * Trying 64.182.208.182... Local...
  3. P

    DDNS avoiding VPN client routing

    Not getting it. I would prefer if curl --interface works, but it is no go. I do not want to write address of VPN server to my DDNS services. There is absolutelly no problem with my script. It runs perfectly fulfilling all its jobs. But, As I contemplated to publish it here, I wanted to make...
  4. P

    Updating Multiple noip.com DDNS Hosts?

    Are you talking about IPv6? I use single IPv4 DDNS url to my router and OpenVPN and can access all 10+ devices with the same IP addresses localy or remotely.
  5. P

    DDNS avoiding VPN client routing

    I use own very complex DDNS script. Works perfectly. Currently I am on DoubleNAT configuration. When I fire up a VPN Client in the router, my routing changes. If my DDNS script now checks the outside address, it will get an VPN server address and that is wrong. VPN server on my router is not an...
  6. P

    Custom DDNS - how to recognize forced refresh?

    Apparantly, black hole :) My guess is that the call does not request forced explicitly. If so, could it be added? Instead of call ddns-script (wan_ip) to be call ddns-script (wan_ip forced)
  7. P

    Custom DDNS - how to recognize forced refresh?

    When a router runs custom DDNS script under "Forced refresh interval (in days)" rule, how can said script differentiate that it is not a normal run but Forced refresh one? Meaning: refresh external DDNS, no matter what you thing about it (refreshing it with the same data as before). Script by...
  8. P

    how to read /sbin/ddns_custom_updated

    I thought my intention was clear :) No help from a function that would always return 1 instead of current 0, if we read the code :) We would need another else where we would read the actual value and then return it somehow. My problem is that this function makes no sense. Value ddns_status...
  9. P

    how to read /sbin/ddns_custom_updated

    Of course :) I will try that later. THanks for clarification
  10. P

    how to read /sbin/ddns_custom_updated

    OK, that seems inline with my backiup plan. My problem is I am not familiar with memory strucutre of router. If I can write to RAM, that is perfect for me. It will get lost after a reboot, and that is exatly what I need. I will try that, as if it is written to RAM, I am more comfortable with...
  11. P

    how to read /sbin/ddns_custom_updated

    Judging from the source doe Merlin was kind to offer, ths works as I need: FLAG=$(nvram get ddns_return_code) which changes from "unknown_error" to "200" for 0 and 1. But, this does not seem to me like legit as I do not know who can and when change these values. I will use it, but it may...
  12. P

    how to read /sbin/ddns_custom_updated

    OK, I can use FLAG=$(nvram get ddns_return_code) which changes from "unknown_error" to "200" for 0 and 1. But, this seems faaaaar from legit. Will need to do testing and will never be able to be sure it will not break my code. Without reading entire source code, that is.
  13. P

    how to read /sbin/ddns_custom_updated

    source code says FLAG=$(nvram get ddns_status) will never ever change from 1. It may be 0 after a reboot, but this can also be a garbage after a reboot as I do not know who and where and if initialises variables. FLAG2=$(nvram get ddns_return_code) this changes from "unknown_error" to "200"...
  14. P

    how to read /sbin/ddns_custom_updated

    My GUI shows correctly, on the first page, DDNS status. It is correctly updated after I run above script changing from 0 to 1 and back. But, I never get correct answer from FLAG=$(nvram get ddns_status) OK, which line runs this check for first page of GUI? It reads it correctly. I can not.
  15. P

    how to read /sbin/ddns_custom_updated

    From that source code, I can only see what goes on with 1. I see nothing saving 0. There must be more. Because, when I start with state of 1, I can repeat the code as many times as I want, and I will never get 0 as response. #!/bin/sh /sbin/ddns_custom_updated 0 FLAG=$(nvram get ddns_status)...
  16. P

    how to read /sbin/ddns_custom_updated

    hmmm, #!/bin/sh /sbin/ddns_custom_updated 0 FLAG=$(nvram get ddns_updated) echo "$FLAG" should return 0 and when I change it to 1 #!/bin/sh /sbin/ddns_custom_updated 1 FLAG=$(nvram get ddns_updated) echo "$FLAG" it should return 1. Not so.
  17. P

    how to read /sbin/ddns_custom_updated

    OK, typos :) I was so unpatient :)) I did not check what you wrote, just run it. It seems it works! Returned 1, now testing, but likely, this is all I needed. many thanks :))
  18. P

    how to read /sbin/ddns_custom_updated

    seems to me I would kill for a source code change in last line: instead of return 0; to be return (ddns_status);
  19. P

    how to read /sbin/ddns_custom_updated

    Hmm, not returning anything: #!/bin/sh FLAG=$(nvram get dns_updated) echo "$FLAG" i wil check your second answer, too
Top