Skip to content

panetwork/centos7-shadowsock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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免流的时候选择自己常用的运营商,然后选择对应的端口进行搭建就行。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%