Total Pageviews

Thursday, 26 May 2016

squidproxy是一个支持obfsproxy混淆技术的缓存代理技术


Table of Contents

squid是一个支持obfsproxy混淆技术的缓存代理技术

服务端

进入获取

特性

1 支持centos、debian等服务器系统
2 自动生成在线PAC地址
3 更智能更简单
4 使用技术squid(高速缓存技术)
wget --no-check-certificate https://git.io/vw9yg
chmod +x vw9yg
./vw9yg
netstat -lntp 查看 25端口是否启动 !
将pac地址填入浏览器的设置“自动代理配置”栏, 浏览器即可翻墙.
from https://github.com/squidproxy/squidproxy
--------------------------------

snowleopard - 可变形流量特征、高效稳定的TCP/IP加速方案

Packagist Packagist Packagist
Squid Description:
Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator. It runs on most available operating systems, including Windows and is licensed under the GNU GPL.
obfourscator Description:
This is a protocol obfuscation layer for TCP protocols. Its purpose is to keep a third party from telling what protocol is in use based on message contents.
Unlike obfs3, obfs4 attempts to provide authentication and data integrity, though it is still designed primarily around providing a layer of obfuscation for an existing authenticated protocol like SSH or TLS.
Like obfs3 and ScrambleSuit, the protocol has 2 phases: in the first phase both parties establish keys. In the second, the parties exchange super-enciphered traffic.
官方主页 | Twitter | 谷歌社区.
snowleopard X1Client

技术支持环境和网络

  • Windows
  • IOS
  • Android
  • OSX

服务端环境

  • Debian7+
  • Ununtu 14+

服务端 X3

Installation

wget -N --no-check-certificate https://git.io/vXIUW -O ./SLSrv.sh && bash SLSrv.sh 

服务端架构

风行者系统
Shell监视程式
C监视程式
obfs4 + Squid

客户端架构

监听模块
代理模块
心跳模块(C/S同步技术)
AutoUpdate 模块

安全架构

许可证验证系统(SHA-2)
squid验证
RC4加密
obfsproxy加密
fom https://github.com/squidproxy/snowleopard
---------------------

https://git.io/vXIUW 就是
https://raw.githubusercontent.com/squidproxy/snowleopard/master/snowleopardSrv3X.sh

内容如下:


#!/bin/sh

function coloredEcho(){
    local exp=$1;
    local color=$2;
    if ! [[ $color =~ '^[0-9]$' ]] ; then
       case $(echo $color | tr '[:upper:]' '[:lower:]') in
        black) color=0 ;;
        red) color=1 ;;
        green) color=2 ;;
        yellow) color=3 ;;
        blue) color=4 ;;
        magenta) color=5 ;;
        cyan) color=6 ;;
        white|*) color=7 ;; # white or invalid color
       esac
    fi
    tput setaf $color;
    echo $exp;
    tput sgr0;
}

SQUID_VERSION=3.5.22

if [ "$(id -u)" != "0" ]; then
  coloredEcho "This script must be run as root" 1>&2
  exit 1
fi



apt-get update

coloredEcho "Build dependencies" green

apt-get -y install build-essential libssl-dev apache2-utils apache2
apt-get -y build-dep squid3



coloredEcho "Download source code" green

cd /usr/src
wget http://www.squid-cache.org/Versions/v3/3.5/squid-${SQUID_VERSION}.tar.gz
tar zxvf squid-${SQUID_VERSION}.tar.gz
cd squid-${SQUID_VERSION}

coloredEcho "Build binaries" green

./configure --prefix=/usr \
 --localstatedir=/var/squid \
 --libexecdir=${prefix}/lib/squid \
 --srcdir=. \
 --datadir=${prefix}/share/squid \
 --sysconfdir=/etc/squid \
 --with-default-user=proxy \
 --with-logdir=/var/log/squid \
 --with-pidfile=/var/run/squid.pid
make

coloredEcho "Stop running service" green

service squid stop

coloredEcho "Install binaries" green

make install

coloredEcho "Download libraries" green

mkdir /usr/lib/squid 

cd /usr/lib/squid


if [ `getconf LONG_BIT` = "64" ]
then
    coloredEcho "ARCH: 64-bit" green

  wget -N -O /usr/lib/squid/squid-lib.tar.gz https://goo.gl/9NBE8g
else
 coloredEcho "ARCH: 32-bit" green

wget -N -O /usr/lib/squid/squid-lib.tar.gz https://goo.gl/tBwURG

fi



tar zxvf squid-lib.tar.gz

coloredEcho "Create configuration file"
rm -fr /etc/squid/squid.conf
wget --no-check-certificate -O /etc/squid/squid.conf https://raw.githubusercontent.com/squidproxy/snowleopard/master/squid.conf

# Squid Safe authenticate
# -c  Create a new password file
# -b  Use the password from the command line rather than prompting for it.
# -m Force MD5 encryption of the password (default)

coloredEcho "Create users database sample" green
htpasswd -c -b -m /etc/squid/passwords test test



coloredEcho "Create service executable file" green
wget --no-check-certificate -O /etc/init.d/squid https://gist.githubusercontent.com/e7d/1f784339df82c57a43bf/raw/squid.sh
chmod +x /etc/init.d/squid

coloredEcho "Register service to startup entries" green
update-rc.d squid defaults

coloredEcho "Prepare environment for first start" green
mkdir /var/log/squid
mkdir /var/cache/squid
mkdir /var/spool/squid
chown -cR proxy /var/log/squid
chown -cR proxy /var/cache/squid
chown -cR proxy /var/spool/squid
squid -z

coloredEcho "Cleanup temporary files" green
rm -rf /etc/apt/sources.list.d/squid.list
rm -rf /usr/src/squid-${SQUID_VERSION}.tar.gz
rm -rf /usr/src/squid-${SQUID_VERSION}
rm -rf /usr/lib/squid-lib.tar.gz

coloredEcho "Start service" green
service squid restart

#Unilateral acceleration 
coloredEcho "installing ServerSpeeder Services" green
wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/serverspeeder/master/serverspeeder-all.sh && bash serverspeeder-all.sh
#Obfuscation technology
coloredEcho "installing obfsproxy Services" green
apt-get install gcc python-pip python-dev -y
pip install obfsproxy
#/WindrangerSyytem
mkdir /Windranger
wget -N --no-check-certificate https://raw.githubusercontent.com/squidproxy/snowleopard/master/Mirroring/secure.tar.gz.gpg -O /Windranger/secure.tar.gz.gpg
#ShadowsocksTech
coloredEcho "installing socket5 proxy Services" green
apt-get install python-pip -y
pip install shadowsocks
exit 0