成长值: 246 签到天数: 4707 天 [LV.Master]伴坛终老
|
发表于 2015/1/14 02:50
|
显示全部楼层
|阅读模式
| Google Chrome 40.0.2209.0 | Windows 8.1
仅适合centos 6.7 x64操作系统
- yum -y install which file wget make automake gcc gcc-c++ pcre-devel zlib-devel openssl-devel sqlite-devel quota unzip bzip2
- ulimit -n 1048576
- echo "* soft nofile 1048576" >> /etc/security/limits.conf
- echo "* hard nofile 1048576" >> /etc/security/limits.conf
- echo "alias net-pf-10 off" >> /etc/modprobe.d/dist.conf
- echo "alias ipv6 off" >> /etc/modprobe.d/dist.conf
- killall sendmail
- /etc/init.d/postfix stop
- chkconfig --level 2345 postfix off
- chkconfig --level 2345 sendmail off
- wget https://raw.githubusercontent.com/1265578519/kangle/master/kangle/src/proxy/kangle-proxy-3.2.1-5-x64.tar.gz
- tar xzf kangle-proxy-3.2.1-5-x64.tar.gz
- cd kangle-proxy
- chmod 777 install.sh
- ./install.sh /vhs/kangle-proxy/
- /vhs/kangle-proxy/bin/kangle
- echo "/vhs/kangle-proxy/bin/kangle" >> /etc/rc.d/rc.local
- iptables -t nat -F
- iptables -t nat -X
- iptables -t nat -P PREROUTING ACCEPT
- iptables -t nat -P POSTROUTING ACCEPT
- iptables -t nat -P OUTPUT ACCEPT
- iptables -t mangle -F
- iptables -t mangle -X
- iptables -t mangle -P PREROUTING ACCEPT
- iptables -t mangle -P INPUT ACCEPT
- iptables -t mangle -P FORWARD ACCEPT
- iptables -t mangle -P OUTPUT ACCEPT
- iptables -t mangle -P POSTROUTING ACCEPT
- iptables -F
- iptables -X
- iptables -P FORWARD ACCEPT
- iptables -P INPUT ACCEPT
- iptables -P OUTPUT ACCEPT
- iptables -t raw -F
- iptables -t raw -X
- iptables -t raw -P PREROUTING ACCEPT
- iptables -t raw -P OUTPUT ACCEPT
- service iptables save
复制代码
配置文件备份:
proxy config.zip
(1.29 KB, 下载次数: 350)
|
代理服务器, linux, 技术, linux, linux, linux, linux, linux, linux, linux, linux
|