无界面Linux魔法上网
Willem Zhang Lv5

Shadowsocks或者V2ray

安装v2ray

一键安装脚本

安装

1
2
sudo su
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)

配置

1
2
# 修改config.json文件为v2ray配置
记录 Sock5 代理的端口和地址 例如:127.0.0.1:10808

Sock5 代理

proxychains4

源码

编译安装

1
2
3
./configure
make -j
sudo make install

配置

1
2
3
4
# 创建文件夹
mkdir ~/.proxychains
# 创建文件
vi ~/.proxychains/proxychains.conf

文件的内容

1
2
3
4
5
6
7
8
9
10
11
strict_chain
proxy_dns
remote_dns_subnet 224
tcp_read_time_out 15000
tcp_connect_time_out 8000
localnet 127.0.0.0/255.0.0.0
quiet_mode

[ProxyList]
# 此处的端口值要设置成与v2ray配置文件相同的值
socks5 127.0.0.1 10808

使用

1
proxychains4 bash

参考:

https://ry.huaji.store/2020/08/Linux-magic-network/

  • Post title:无界面Linux魔法上网
  • Post author:Willem Zhang
  • Create time:2021-04-23 03:59:27
  • Post link:https://ataraxia.top/2021/04/22/无界面Linux魔法上网/
  • Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.
 Comments