#1
|
|||
|
|||
WAG54G2 and DDNS
I have configured the DDNS tab of my WAG54G2 (firmware: 1.00.19) to update DynDNS.org when my ADSL changes the IP. The problem is that WAG54G2 sometimes doesn't update this info.
I want change the reconnect script for it forces this update. The page of this setup is: I have done a "Reconnect Recorder" and this is the part final of the result: Code:
[[[STEP]]] [[[REQUEST]]] GET /setup.cgi?next_file=Setup_DDNS.htm HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% [[[/REQUEST]]] [[[/STEP]]] But I think that this only it changes to the "DDNS Setup" page. I suppose that the correct would be: Code:
[[[STEP]]] [[[REQUEST]]] GET /setup.cgi?next_file=Setup_DDNS.htm HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% [[[/REQUEST]]] [[[PARSE]]] num:SID.*?value=\"(\d+) [[[/PARSE]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] POST /setup.cgi HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% ctype=pppoe&ifstatus=Up&todo=connect&this_file=Setup_DDNS.htm&next_file=Setup_DDNS.htm&message=&SID=%%%num%%% [[[/REQUEST]]] [[[/STEP]]] Is this correct? EDIT: I forgot to write the entire reconnection script: Code:
[[[HSRC]]] [[[STEP]]] [[[REQUEST]]] GET /setup.cgi?next_file=Status.htm HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% [[[/REQUEST]]] [[[PARSE]]] num:SID.*?value=\"(\d+) [[[/PARSE]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] POST /setup.cgi?next_file=Status.htmi HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% ctype=pppoe&ifstatus=Up&todo=disconnect&SID=%%%num%%% [[[/REQUEST]]] [[[/STEP]]] [[[STEP]]][[[WAIT seconds="4"/]]][[[/STEP]]] [[[STEP]]] [[[REQUEST]]] GET /setup.cgi?next_file=Status.htm HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% [[[/REQUEST]]] [[[PARSE]]] num:SID.*?value=\"(\d+) [[[/PARSE]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] POST /setup.cgi?next_file=Status.htm HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% ctype=pppoe&ifstatus=Down&todo=connect&SID=%%%num%%% [[[/REQUEST]]] [[[/STEP]]] [[[/HSRC]]] EDIT²: Ok, I think that this script works: Code:
[[[HSRC]]] [[[STEP]]] [[[REQUEST]]] GET /setup.cgi?next_file=Status.htm HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% [[[/REQUEST]]] [[[PARSE]]] num:SID.*?value=\"(\d+) [[[/PARSE]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] POST /setup.cgi?next_file=Status.htmi HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% ctype=pppoe&ifstatus=Up&todo=disconnect&SID=%%%num%%% [[[/REQUEST]]] [[[/STEP]]] [[[STEP]]][[[WAIT seconds="4"/]]][[[/STEP]]] [[[STEP]]] [[[REQUEST]]] GET /setup.cgi?next_file=Status.htm HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% [[[/REQUEST]]] [[[PARSE]]] num:SID.*?value=\"(\d+) [[[/PARSE]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] POST /setup.cgi?next_file=Status.htm HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% ctype=pppoe&ifstatus=Down&todo=connect&SID=%%%num%%% [[[/REQUEST]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] GET /setup.cgi?next_file=Status.htm HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% [[[/REQUEST]]] [[[PARSE]]] num:SID.*?value=\"(\d+) [[[/PARSE]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] POST /setup.cgi?next_file=Setup_DDNS.htm HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% todo=connect&this_file=Setup_DDNS.htm&next_file=Setup_DDNS.htm&message=&SID=%%%num%%% [[[/REQUEST]]] [[[/STEP]]] [[[/HSRC]]] Last edited by simonbcn; 02.12.2010 at 10:57. |
Thread Tools | |
Display Modes | |
|
|