Git Product home page Git Product logo

xray_trojan_naiveproxy_docker's Introduction

Breakwall

这个项目是用于快速地使用Docker搭建breakwall服务(Vless+Trojan+Naiveproxy)

证书

证书由Caddy获取,然后将证书的目录映射到宿主机给XRay使用

安装Docker

一键安装脚本

curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

CentOS

# 获取官方源
wget -P /etc/yum.repos.d/ https://download.docker.com/linux/centos/docker-ce.repo

# 安装docker ce
yum install -y docker-ce

# 启动、开机启动
systemctl start docker
systemctl enable docker

当然如果你想指定版本安装docker也是可以的

# 用下面的命令可以查看可以安装的版本
yum list docker-ce --showduplicates | sort -r
# 安装指定版本的Docker
yum install -y docker-ce-18.03.0.ce-1.el7.centos

Ubuntu

sudo apt-get update
sudo apt-get install docker.io

或者

# 更新Ubuntu的apt源索引
sudo apt-get update

# 安装包允许apt通过HTTPS使用仓库
sudo dpkg --configure -a
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

# 添加Docker官方GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

# 设置Docker稳定版仓库
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

# 更新apt源索引
sudo apt-get update

# 安装最新版本Docker CE(社区版)
sudo apt-get install docker-ce

安装Docker Compose(容器编排工具)

sudo curl -L https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version

安装Git用于克隆代码

Centos:
yum install -y git

Ubuntu:
sudo apt-get install git

安装并使用TCP BBR 拥塞控制算法(可选)

教程参考:https://zhuanlan.zhihu.com/p/73565142

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" 
chmod +x tcp.sh 
./tcp.sh

下载源码

git clone https://github.com/maidoudouo/XRay_Trojan_Naiveproxy_Docker

Setting

一键脚本设置

只需输入域名即可(eg: hello.com)

./OneKeySet.sh
Please input your server domain name(eg: abc.com): abc.com
Your domain name is: abc.com
-----------------------------------------------
XRay Configuration:
VLESS:
Server: abc.com
Port: 4443
UUID: 384455e7-9103-4006-8720-26ca6873b4ed
-----------------------------------------------
Trojan Configuration:
Server: abc.com
Port: 4443
Password: 26ca6873b4ed
-----------------------------------------------
NaiveProxy Configuration:
Server: abc.com
Port: 443
Username: superuser
Password: 26ca6873b4ed
-----------------------------------------------
Please run 'docker-compose up -d' to build!
Enjoy it!

同时会保存信息到info.txt中方便查阅

手动设置

1、在./caddy/Caddyfile中修改Caddy修改域名和Naiveproxy的密码

2、在./xray/config.json中修改VMESS的UUID,还有修改Trojan的密码

3、在./xray/config.json中修改证书路径里面的域名(共4个地方)

构建

docker-compose up -d

网站配置

应网友需求,如果需要部署静态网站替换掉Caddy的默认页,只需要将网站放入caddy/www里面即可

Enjoy it!

xray_trojan_naiveproxy_docker's People

Contributors

maidoudouo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.