Knowledgebase: Reconnect
OpenWRT Reconnect
Posted by pspzockerscene psp, Last modified by pspzockerscene psp on 08 August 2023 11:04 PM

OpenWRT Reconnect via LiveHeader method

This script should be able to trigger a reconnect for all routers running OpenWRT software.

  1. Install this script on your OpenWRT router: https://github.com/matthiasr/openwrt-reconnect
  2. In JDownloader go to Settings -> Reconnect -> LiveHeader -> New Script -> Edit Script -> Paste this:
    Leave the username- and password fields in JDownloader blank.
[[[HSRC]]]
    [[[STEP]]]
        [[[REQUEST]]]
        GET / HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /cgi-bin/reconnect HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /cgi-bin/reconnect?go HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

[[[/HSRC]]]

Click the Test button on the right side to test if this has worked.


Credits: https://gist.github.com/the4anoni/f78e97e5574320a686dcd64438b0a8a0