How to Enable Web admin via Telnet

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
mdcoll25
Posts: 7
Joined: Wed Mar 17, 2010 2:58 am

How to Enable Web admin via Telnet

Post by mdcoll25 »

I depoyed some units without activating web access via the remote interface.
I have telnet access and have tried the procedure that dd-wrt have , but it doesnt work.

How to enable web admin if you are locked out ?

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: How to Enable Web admin via Telnet

Post by Eric »

Sorry -- I didn't see this question before now (lots of questions right after I paid more attention to).

I assume you mean ssh access -- telnet is not active by default on OpenWrt. So, as I understand it, you're saying you've activated remote SSH but not the remote web interface.

Here is how to get the remote web interface active again, assuming you want to connect via https and the https server is running on port 443. Note that this procedure will only work on Gargoyle, not default OpenWRT. You need to add the following code to the end of /etc/config/firewall:

Code: Select all

config 'remote_accept' 'ra_https'
        option 'local_port' '443'  
        option 'remote_port' '443'
        option 'proto' 'tcp'     
        option 'zone' 'wan'
Then run:

Code: Select all

/etc/init.d/firewall restart
You should then be able to access the Gargoyle GUI remotely (on port 443).

mdcoll25
Posts: 7
Joined: Wed Mar 17, 2010 2:58 am

Re: How to Enable Web admin via Telnet

Post by mdcoll25 »

Thanks for this.
Unfortunately I'm a but of a thicky when it comes to linux commandline.
Can you tell me what to type to locate and add those lines to the end of the file specified ?

Cheers
Mike

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: How to Enable Web admin via Telnet

Post by Eric »

after using ssh to login (putty if you're on windows), run

Code: Select all

vi [path_to_file_you_want_to_edit]
This will launch the vi editor. There are multiple guides on how to use vi -- just google "vi editor tutorial", and you should find what you need.

islavchev
Posts: 2
Joined: Tue Jan 12, 2016 4:17 pm

Re: How to Enable Web admin via Telnet

Post by islavchev »

What has to be done to achieve the same result for gargoyle 1.12.0?

Lantis
Moderator
Posts: 6721
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: How to Enable Web admin via Telnet

Post by Lantis »

The instructions have not changed.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply