Tag Archive for 'proxy'

Google chrome pac auto proxy file

don’t use only exts. Swithy will broken on chrome 12. so use pac file is a good way.

1
2
3
4
5
6
7
<pre>function FindProxyForURL(url, host)
{
    var regexpr = /(google|googleusercontent|gmodules|chromium|linkedin|filesonic|hotfile|fbcdn|wp|scanlover|android|pusherapp|jqueryui|wordpress|tornadoweb|angrybirds|28tube|goo|fc2|youtube|twitter|facebook|ytimg).com$/;
    if(regexpr.test(host))
        return "SOCKS5 127.0.0.1:7070; DIRECT";
    return "DIRECT";
}</pre>

start google chrome in command line google-chrome --proxy-pac-url=file:///home/fred/.proxy.pac

work on debian linux.

SSH Proxy With Firefox Howto

翻墙

  1. use expect script
    1
    2
    3
    4
    5
    #!/usr/bin/expect -f
    spawn ssh -D 7070 fred@oracle1.com
    expect "password:"
    send "yourpassword\r"
    interact
  2. use firefox addon “autoproxy” to visit Inertnet.

Proxy and Port Mapping With Python

Use python to do tiny proxy server by example.
Continue reading ‘Proxy and Port Mapping With Python’