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
相关推荐
念念不忘 必有回响2 分钟前
码云流水线前端资源传输至目标服务器
运维·服务器·前端
每次学一点12 分钟前
【ZeroTier自研之路】自定义NetworkID
运维·服务器
xu_yule17 分钟前
网络和Linux网络-15(IO多路转接)reactor编程-服务器
linux·运维·服务器·c++
礼拜天没时间.19 分钟前
Docker基础操作——镜像与容器管理
linux·运维·服务器·docker·容器·centos
Jacob程序员21 分钟前
达梦数据库私有服务配置指南
linux·服务器·数据库
day day day ...28 分钟前
easyExcel和poi分别处理不同标准的excel
java·服务器·excel
阿常呓语30 分钟前
ls 命令详解
linux·运维·服务器·ls
倔强的石头10639 分钟前
【Linux指南】基础IO系列(一)Linux 文件本质揭秘 —— 从 “磁盘文件” 到 “一切皆文件”
linux·运维·服务器
Code小翊39 分钟前
re标准库模块一天学完
运维·服务器·网络
Warren9841 分钟前
Allure 常用装饰器:实战用法 + 最佳实践(接口自动化)
运维·服务器·git·python·单元测试·自动化·pytest