LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-19-2010, 09:24 PM   #1
kcynice
Member
 
Registered: Sep 2008
Posts: 115

Rep: Reputation: 18
How to use a security http proxy?


I have a http proxy account. It works well under windows through wodTunnel(an active X control component). But, I usually works under linux. I want to use it here. But I don't know how. I tried gstm, it can connect to the server successfully, but it seems can't respond to my http request.
What should I do next?
 
Old 09-20-2010, 01:51 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo (all servers at work are openSUSE)
Posts: 6,937

Rep: Reputation: 128Reputation: 128
There is a pretty generic HOW-TO where we get our proxy.

If that doesn't suit your setup, just browse around that site.

For my proxy this is what I enter in a terminal emulator:
Code:
ssh -L 5000:127.0.0.1:9999 username@yourassignedsshserver
 
1 members found this post helpful.
Old 09-20-2010, 10:37 AM   #3
kcynice
Member
 
Registered: Sep 2008
Posts: 115

Original Poster
Rep: Reputation: 18
I tried, but faild to login. However, I can use gstm to login the proxy server successfully. But, the proxy does not work, even though there is a connection established with the server, and i also can telnet to my localhost.

Regards,
 
Old 09-28-2010, 11:06 PM   #4
kcynice
Member
 
Registered: Sep 2008
Posts: 115

Original Poster
Rep: Reputation: 18
the output of ssh:

ssh -L 8080:192.168.1.73:443 -p 443 -l kcynice -v myserver
OpenSSH_5.5p1 Debian-4, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to myserver [192.168.1.73] port 443.
debug1: Connection established.
debug1: identity file /home/kcynice/.ssh/id_rsa type -1
debug1: identity file /home/kcynice/.ssh/id_rsa-cert type -1
debug1: identity file /home/kcynice/.ssh/id_dsa type -1
debug1: identity file /home/kcynice/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH_4*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.5p1 Debian-4
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: checking without port identifier
The authenticity of host '[myserver]:443 ([192.168.1.73]:443)' can't be established.
RSA key fingerprint is 93:23:33:bb:f0:06:92:2c:37:89:5d:0c:d1:86:6f:40.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[myserver]:443,[192.168.1.73]:443' (RSA) to the list of known hosts.
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_1000' not found

debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_1000' not found

debug1: Unspecified GSS failure. Minor code may provide more information


debug1: Next authentication method: publickey
debug1: Trying private key: /home/kcynice/.ssh/id_rsa
debug1: Trying private key: /home/kcynice/.ssh/id_dsa
debug1: Next authentication method: password
kcynice@myserver's password:
debug1: Authentication succeeded (password).
debug1: Local connections to LOCALHOST:8080 forwarded to remote address 192.168.1.73:443
debug1: Local forwarding listening on ::1 port 8080.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on 127.0.0.1 port 8080.
debug1: channel 1: new [port listener]
debug1: channel 2: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LC_PAPER = en_US.UTF-8
debug1: Sending env LC_ADDRESS = en_US.UTF-8
debug1: Sending env LC_MONETARY = en_US.UTF-8
debug1: Sending env LC_NUMERIC = en_US.UTF-8
debug1: Sending env LC_TELEPHONE = en_US.UTF-8
debug1: Sending env LC_MESSAGES = en_US.UTF-8
debug1: Sending env LC_IDENTIFICATION = en_US.UTF-8
debug1: Sending env LC_COLLATE = en_US.UTF-8
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending env LC_MEASUREMENT = en_US.UTF-8
debug1: Sending env LC_CTYPE = zh_CN.UTF-8
debug1: Sending env LC_TIME = en_US.UTF-8
debug1: Sending env LC_NAME = en_US.UTF-8
Last login: Tue Sep 28 22:50:08 2010 from 127.0.0.1
debug1: client_input_channel_req: channel 2 rtype exit-status reply 0
debug1: channel 2: free: client-session, nchannels 3
debug1: channel 0: free: port listener, nchannels 2
debug1: channel 1: free: port listener, nchannels 1
Connection to myserver closed.
Transferred: sent 2488, received 1944 bytes, in 0.9 seconds
Bytes per second: sent 2803.5, received 2190.5
debug1: Exit status 1

Please tell me where the problem?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can i tunnel http via ssh without setting up a http proxy? ginda Linux - Networking 3 12-24-2009 05:25 AM
proxy via http sharadshankar Linux - Software 2 02-15-2006 06:57 PM
http proxy tunneling xowl Linux - Networking 1 02-22-2005 01:41 PM
"socks5" -> "http" proxy protocol, or ssh tunnel to sock5 ? I'm beyond http p vmicho Linux - Networking 2 12-16-2003 06:32 AM
BitchX through a HTTP Proxy? eggs Linux - Software 1 07-11-2003 07:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration