Autoproxy下载地址: http://autoproxy.mozdev.org/latest.xpi
Proxy Server -> Choose Proxy Server -> Default, select GAppProxy
Edit Proxy Server -> GAppProxy Port:7070, socks5
更详细的autoproxy图形教程设置: 用ssh翻墙
使用ssh -D 代理,为了能自动登录与输入密码,需要用expect来写个脚本。
debian/ubuntu系列:
apt-get install expect
fedora:
yum install expect
新建一个脚本fuck_gfw.sh,内容如下:
#!/usr/bin/expect -f spawn ssh -D 7070 your_name@your_ip expect "password:" send "your_password\r" interact
如果需要处理断线超时1,可以写成这样:
#!/usr/bin/expect set timeout 60 spawn /usr/bin/ssh -D 7070 -g your_name@your_ip expect { "password:" { send "your password\r" } } interact { timeout 60 { send " "} }
第一次运行这个脚本会有问题,因为它没有处理
The authenticity of host 'xxxxxx (xxx.xxx.xxx.xxx)' can't be established. RSA key fingerprint is 53:a3:7a:03:70:5a:31:01:57:49:09:b7:ab:60:43:00. Are you sure you want to continue connecting (yes/no)? yes
最好手动ssh登录一次后,退出,再运行这个脚本。
Switchy! 下载地址: http://switchy.samabox.com/