socks proxy workaround for opera

I used to debug my style sheet with Opera, it is really a fast browser, however, I am surprised to see opera doesn't support socks proxy (powered by ssh -D) even in latest version 9.5. I googled for a while and found this great workaround. I am shocked to see that two years have passed since the post was written and opera still doesn't support socks proxy yet! What's the difficult for the opera developers' to implement the feature?

I like the tinyproxy solution since ssh tunneling is exactly how I access internet from company inside network.

The steps:

  1. Install tinyproxy on my
    debian vps server, quite easy beacuse tinyproxy is in the debian
    package repository, just type apt-get install tinyproxy.
  2. Edit /etc/tinyproxy/tinyproxy.conf, change listen address to
    127.0.0.1, set allow IP address to 127.0.0.1 since I will use ssh
    tunnel to access tinyproxy only, tune MaxClients, MinSpareServers,
    MaxSpareServers and StartServers, then run /usr/sbin/tinyproxy to
    start the daemon.
  3. Use ssh client to connect the my vps box with a local forwarding
    rule, ssh -fN -D 7070 -L 8888:localhost:8888 user@vps.example.org
  4. Set opera to use localhost:8888 as http proxy, enjoy surfing
    internet!

Following graph should let you understand the solution easier.

.----------------------.        .----------------------.
| http | ssh | |
|Opera ===> ssh client +========> sshd:22 -> tinyproxy ==> internet sites
| :8888 | tunnel | :8888 |
`----------------------' `----------------------'
local box vps.example.org

Jun 24, 2008 at 12:50am | 1 Comment
Tags: , and

1 Comments so far

  1. 用Privoxy实现Socks代理转HTTP代理 | 卍解, on Jul 11, 2008 at 7:39pm, said:

    [...] tinyproxy是不错,可惜只支持POSIX OS。很无奈现在在公司处理普通的工作还是需要Windows。。。所以找到了privoxy,一个cross-platform的web proxy,支持包括广告过滤,cookie管理等很多高级功能,当然也有我们需要的socks转发 [...]

Leave a Comment?


« 有点意思  —  刚拿到 vpsvillage 帐号 »

Tags

Blogroll

Fairy World | STUPiD | 阅微草堂 | ShelleX | 流浪五天