If you want a reconnection script for your router, please read
ZHONE 6211-I3-302 - Reconnection CLR Script
ZHONE 6211-I3-302
I personally use CLR script with jdownloader for reconnection and they work fine for me
Code:
=============================
=============================
Linux users (Ubuntu at least)
hi there!! I wroted this script and posted it in ubuntu help forum. It should work on every linux/unix system i think with a ppp based internet connection (think it is said like this) Works via telnet generally on those systems.
This is muy guide for ubuntu/debian users.
First of all, script is written in bash expect (think is like that)we have to install the expect lib via synaptic or terminal
Code:
sudo apt-get install expect
Code:
sudo gedit /home/"user"/JDownloader/reconnect.sh
Code:
#! /usr/bin/expect spawn telnet 192.168.1.1 (or your routers' address) expect "Login:" send "admin or your login\r" sleep 2 expect "password:" send "yourpassword\r" sleep 2 expect ">" send "ppp config ppp0 down\r" sleep 5 expect ">" send "ppp config ppp0 up\r" sleep 5 expect ">" send "exit\r"
Code:
sudo chmod +x /home/"youruser"/JDownloader/reconnect.sh
After all you can tweak reconnection times, in advanced. Mines are
30
4
40
wich gives me a reconection time of 30 seconds, think it can be improved.
===============================
===============================
Linksys WRT54G2 v.1
I have an old Linksys WRT54G2 v1 FW. 1.0.01 and the only way is spoofing the MAC
This scritpt works... but you need to edit some values every time you use it... check this also http://svn.jdownloader.org/issues/3383
you need to edit this line:
just change the values of "def_hwaddr_(0 to 5)=XX" writing any hex number (00 to FF) instead XX
====================================
I have an old Linksys WRT54G2 v1 FW. 1.0.01 and the only way is spoofing the MAC
This scritpt works... but you need to edit some values every time you use it... check this also http://svn.jdownloader.org/issues/3383
Spoiler:
you need to edit this line:
Code:
action=Apply&mac_clone_enable=1&def_hwaddr_0=00&def_hwaddr_1=21&def_hwaddr_2=29&def_hwaddr_3=8E&def_hwaddr_4=1A&def_hwaddr_5=00
====================================
Reconnect Script for D-Link DIR-600 (tested on Firmware Version 2.05)
==============================
Spoiler:
Code:
[[[HSRC]]] [[[STEP]]] [[[REQUEST]]] POST /login.php HTTP/1.1 Host: %%%routerip%%% ACTION_POST=LOGIN&FILECODE=&VERIFICATION_CODE=&LOGIN_USER=%%%user%%%&LOGIN_PASSWD=%%%pass%%%&VER_CODE= [[[/REQUEST]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] GET /conninfo.xgi?set/runtime/wan/inf:1/disconnect=1 HTTP/1.1 Host: %%%routerip%%% [[[/REQUEST]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] GET /conninfo.xgi?set/runtime/wan/inf:1/connect=1 HTTP/1.1 Host: %%%routerip%%% [[[/REQUEST]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] GET /logout.php HTTP/1.1 Host: %%%routerip%%% [[[/REQUEST]]] [[[/STEP]]] [[[/HSRC]]]
==============================
Heres a Zyxel telnet scripter a very useful external reconnect method
for zyxel routers the reconnection takes only 7-13 seconds > and
works with almost all zyxel series
Click here to Download
Users guide:
Download it and extract it to a user defined directory
once the file is extracted > open the BAT file with a text editor and replace 1234 in the command line with your own router password
this is what the command line in the bat looks like
save the file and add the BAT file to JDownloader as a external file
Backup line If the command line in the bat does not work you can also try this one
Attention : telnet has to be enabled on your system for this to work
Click here to Download
Users guide:
Download it and extract it to a user defined directory
once the file is extracted > open the BAT file with a text editor and replace 1234 in the command line with your own router password
this is what the command line in the bat looks like
Code:
ztnbatch.exe -h 192.168.1.1 -p 1234 -c "poe drop poe0" silent -EXIT
Backup line If the command line in the bat does not work you can also try this one
Code:
ztnbatch.exe -h 192.168.1.1 -p 1234 -c "poe drop poe0" -c "dev dial 1" -silent -EXIT
=================================
=================================
No comments:
Post a Comment