Giter Site home page Giter Site logo

centos7-shadowsock's Introduction

centos7-shadowsock

1安装shadowsocks:逐条输入
1.输入 wget --no-check-certificate -O shadowsocks.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh


2.输入 chmod +x shadowsocks.sh
3.输入   ./shadowsocks.sh 2>&1 | tee shadowsocks.log
2 添加端口到防火墙: 比如开放8989端口
2.1firewall-cmd --permanent --add-port=8989/tcp 载入新的防火墙端口设置
2.2firewall-cmd --reload
单个配置文件路径:/etc/shadowsocks.json 修改文件用vi /etc/shadowsocks.json 输入i 就可以修改了 然后输入:wq 保存


1
2
3
4
5
6
7
8
9
10
{
    "server":"0.0.0.0",
    "server_port":8989,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "password":"yourpassword",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open"false
}

多个个配置文件路径:/etc/shadowsocks.json 修改文件用vi /etc/shadowsocks.json 输入i进入修改 然后输入:wq 保存
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
    "server":"0.0.0.0",
    "local_address":"127.0.0.1",
    "local_port":1080,
    "port_password":{
         "8989":"password0",
         "9001":"password1",
         "9002":"password2",
         "9003":"password3",
         "9004":"password4"
    },
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open"false
}

使用命令
1
2
3
4
启动:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
状态:/etc/init.d/shadowsocks status
这些端口是我转载的,可以确定的是大部分端口有效可免流。

移动免流端口:137,138,351,366,265,524,8080,80,443,440,3389

电信免流端口:189,8080,80,443,440,3389,137

联通免流端口:8080,80,53(空中卡),130,131,132,155,156,185,186,145,176,443,440,3389

部分端口也未经测试,请自行测试。 除了部分端口直连能免,大部分都需要加混肴参数

SSR免流可以用,440/443应该是op免流也能用,在搭建的SSR免流的时候选择自己常用的运营商,然后选择对应的端口进行搭建就行。

centos7-shadowsock's People

Forkers

minjunlan

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.