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
相关推荐
IMPYLH1 小时前
Linux 的 dir 命令
linux·运维·服务器·数据库
fanged1 小时前
操作系统番外1(Linux的测试体系)(TODO)
linux·运维·服务器
H_老邪3 小时前
Linux 与 Docker 常用命令
linux·运维·服务器·docker
博语小屋3 小时前
I/O 多路转接之epoll
运维·服务器·数据库
yewq-cn3 小时前
linux 内核设备号
linux·运维·服务器
文静小土豆4 小时前
Linux 进程终止指南:理解 kill 与 kill -9 的核心区别与正确用法
linux·运维·服务器
IMPYLH4 小时前
Linux 的 df 命令
linux·运维·服务器
lzhdim4 小时前
SQL 入门 7:SQL 聚合与分组:函数、GROUP BY 与 ROLLUP
java·服务器·数据库·sql·mysql
wefg14 小时前
【Linux】会话、终端、前后台进程
linux·运维·服务器
zhixingheyi_tian4 小时前
Linux/Windows 免密登录
linux·运维·服务器