Linksys & HyperWRT DDNS + PPTP bug

Discussion in 'HyperWRT Firmware' started by atzplzw, Sep 30, 2004.

  1. atzplzw

    atzplzw Network Guru Member

    The original and also the HyperWRT firmware got a bug with DynDNS and PPTP.

    In Setup->DDNS the Internet IP adress is the adress the router needs to have to connect to the PPTP gateway. That is of course not a public IP adress, in fact it's a private 10.0.0.*. The IP adress I'm assigned when opening the tunnel is not displayed and also not reported to DynDNS. So it is not working...

    I reported this bug to Linksys but they just told me to use a free app for this. But I don't want to install other software on my pc. Also the pc may be down when reconnecting to the net.

    So maybe HyperWRT could fix this issue. Here's my idea how to:
    In Status->Router:IP adress the correct IP is displayed. Now just use this algo for detecting the IP in the DDNS page. Then the correct IP would be displayed and reported to DynDNS.

    Can that be done?
    If there's anything more you need to know, I'm here to answer it!

  2. flygekorre

    flygekorre Guest

    ddns fix

    hello, i am using the following rc_startup script with sveasofts alchemy 5.3
    it checks every 10 seconds if the pptp_get_ip adress has changed, if it has changed it updates the dyndns record with ez-ipupdate

    feel free to edit the stuff in the ez-ipupdate line

    echo 0 > /tmp/last_ip
    cat > /tmp/ddnsworkaround <<EOF
    nvram get pptp_get_ip > /tmp/cur_ip

    if (!(cmp /tmp/cur_ip /tmp/last_ip)) then
    ez-ipupdate -S dyndns -u yourusername:yourpassword -h -i ppp0 -M 604800
    nvram get pptp_get_ip > /tmp/last_ip

    chmod +x /tmp/ddnsworkaround

    echo "while true; do sleep 10; /tmp/ddnsworkaround; done" > /tmp/
    chmod +x /tmp/
    /tmp/ &
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice