Link to home
Start Free TrialLog in
Avatar of Dan560
Dan560Flag for United Kingdom of Great Britain and Northern Ireland

asked on

http telnet commands

Hi I cannot seem to get access to my remote lacie drive through my vpn tunnel, I can however connect to the remote router that is on the same subnet and then telnet the lacie drive on port80.But I cannot seem to get it to reboot, because of a username and password issue.

Trying 10.11.1.3, 80 ... Open
GET /cgi-bin/admin/reboot?action=shutdown.cgi
HTTP/1.0 401 Unauthorized
                         Content-type: text/html
Date: Wed, 22 Oct 2008 17:42:24 GMT
Connection: close
WWW-Authenticate: Basic realm="LaCie Ethernet Disk mini Administration"

<HEAD><TITLE>401 Unauthorized</TITLE></HEAD>
                                            <BODY><H1>401 Unauthorized</H1>

                                                                           </BOD
Y>
Avatar of giltjr
giltjr
Flag of United States of America image

When you telnet to to a HTTP server, you need to act like a browser.  That is everything you type in needs to be valid HTTP commands.

Does the lacie drive have a telnet management interface you can use?

Why can't you use a browser to access the http management interface?

Avatar of Dan560

ASKER

There is a problem with the lacie drive, it needs a restart now and then for me to access it through a vpn tunnel. Its not anything to do with the routers firewall because I can access every other device on the same network. I have two tunnels same problem - it works when its restarted.Where can I find valid http commands?
Where did I say anything about firewalls or routers?  I asked two questions.  Can you answer them?

Part of the problem you will find with attempting to using a telnet client to do HTTP work is that in order to pass the user-id and password when using basic authentication (which is what it appears the lacie device is using) you need to encode the user-id and password and type http header that carries that and type in the encoded value of the user-id and password.


Avatar of Dan560

ASKER

You didnt, apologies for not answering your questions thoroughly but I felt I needed to pass on this information. I can't even access through telnet going to 10.11.1.3 80
I need to telnet into my router and then telnet into the lacie during the same telnet session.

the lacie drive does not have telnet management interface, but it is listening on port 80.21
I cannot access it through the web from my network,nor can other networks connected through a vpn.

I dont understand you solution of ecoding the user id and password, I need you to elaborate more.
ASKER CERTIFIED SOLUTION
Avatar of giltjr
giltjr
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dan560

ASKER

Thanks it worked perfectley, well when I say perfectly, it looks like I told it to shutdown instead of restart.
GET /cgi-bin/admin/reboot?action=shutdown HTTP/1.0

looks like a reboot to me.. ah well,thanks for you advice was much appreciated.