linux naive代理设置

naive linux客户端

Release v132.0.6834.79-2 · klzgrad/naiveproxy · GitHub

Client setup

Run ./naive with the following config.json to get a SOCKS5 proxy at local port 1080.

javascript 复制代码
{
  "listen": "socks://127.0.0.1:1080",
  "proxy": "https://user:pass@example.com"
}

reboot auto setup

add follow command to /etc/profile endline.

bash 复制代码
/path/to/naive /path/to/config.json

then input command

bash 复制代码
source /etc/profile

Proxy shortcut

javascript 复制代码
alias setproxy="export ALL_PROXY=socks://127.0.0.1:1080"
alias unsetproxy="unset ALL_PROXY"

Proxy setup

bash 复制代码
setproxy # setup
unsetproxy # unset

test:

bash 复制代码
curl cip.cc
相关推荐
?re?ta?rd?ed?10 分钟前
linux中的调度策略
linux·运维·服务器
hweiyu0022 分钟前
Linux 命令:tr
linux·运维·服务器
Trouvaille ~25 分钟前
【Linux】应用层协议设计实战(一):自定义协议与网络计算器
linux·运维·服务器·网络·c++·http·应用层协议
allway231 分钟前
基于华为taishan200服务器、arm架构kunpeng920 cpu的虚拟化实战
linux·运维·服务器
Junlan2731 分钟前
Cursor使用入门及连接服务器方法(更新中)
服务器·人工智能·笔记
CSCN新手听安31 分钟前
【linux】高级IO,I/O多路转接之poll,接口和原理讲解,poll版本的TCP服务器
linux·运维·服务器·c++·计算机网络·高级io·poll
熊文豪31 分钟前
服务器炸了才知道?Ward+cpolar让异常无处藏
运维·服务器·cpolar
杜子不疼.33 分钟前
【Linux】教你在 Linux 上搭建 Web 服务器,步骤清晰无门槛
linux·服务器·前端
荔枝吻34 分钟前
忘记服务器密码,在Xshell7中查看已保存密码
运维·服务器·github
码农阿豪34 分钟前
多服务器批量指令管理:从Xshell到自动化运维
运维·服务器·自动化