这个软件实现的功能是将基本socket5的协议,转换成http协议
安装privoxy: (http://sourceforge.net/projects/ijbswa/?source=typ_redirect)
安装epel源
>>> sudo yum install epel-release
# 完成后查看源列表
>>> yum repolist
[root@vpn privoxy]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@vpn privoxy]# setenforce 0
安装privoxy
yum install epel-release privoxy -y
systemctl start privoxy
systemctl enable privoxy
编辑provixy配置文件
# privoxy的配置文件目录在/etc/privoxy
vim /etc/privoxy/config
1.修改软件的配置文件,找到找到listen-address这一行修改为
listen-address 192.168.130.62:9911
192.168.130.62就是你电脑的ip地址,8118就是http代理的端口.
2.找到“forward-socks5”这一行,去掉前面的注释标记#,将这一行修改为
forward-socks5t / 192.168.130.62:9999 .
9999就是你本地的socket代理端口,这个是trojan监听的端口
systemctl restart privoxy
接下来重启下软件,将你手机的http代理地址设置为你电脑的ip地址,端口设置为上面所设置的端口就好啦.