I
I
Igor2011-12-02 17:11:22
SSH
Igor, 2011-12-02 17:11:22

Problem with dynamic forwarding in OpenSSH?

UPD: the problem was solved: it was necessary to enter the SOCKS node in the proxy settings in the firefox settings .
An interesting question remains: how can you determine the presence of such a problem through the analysis of logs or something else (traffic, etc.)?

The initial problem was this:

I'm trying to set up dynamic forwarding. HTTPS traffic is wrapped in a tunnel, while HTTP is not. And I can't figure out what the problem is.

On the client:
ssh -C -D 1080 [email protected]
firefox I configure to work with a proxy: 127.0.0.1:1080

585365ee.png

On the server:
Ubuntu 11.04
OpenSSH_5.8p1


added to the config ( /etc/ssh/sshd_config ) line:

AllowTcpForwarding yes Restarted the

server (sudo service ssh restart )

after that I normally go to HTTPS sites in firefox, and HTTP - no

plugin for firefox ( Live http ) shows the following response when accessing www.mail.ru :

GET www.mail.ru/

Host: www.mail.ru
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.2.24) Gecko/20111107 Ubuntu/10.10 (maverick) Firefox/3.6. 24
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru-ru,ru;q=0.8,en-us;q=0.5, en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cache-Control: max -age=0


and in response:

HTTP/0.9 200 OK


How to find out what is the problem? I want to see the logs, but I don't even know which ones.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
YourChief, 2011-12-02
@YourChief

I understand correctly that in this configuration ssh works as a SOCKS proxy, and you ask it like an HTTP proxy?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question