JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 02.12.2010, 10:33
simonbcn simonbcn is offline
DSL Light User
 
Join Date: May 2010
Location: Dinamarca
Posts: 32
Default 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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 23:48.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.