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
相关推荐
人工智能训练师31 分钟前
在Ubuntu中如何使用PM2来运行一个编译好的Vue项目
linux·运维·服务器·vue.js·ubuntu·容器
程序媛Dev37 分钟前
50.4k Star!我用这个神器,在五分钟内搭建了一个私有 Git 服务器!
运维·服务器·git
hmcjn(小何同学)2 小时前
轻松Linux-9.进程间通信
linux·运维·服务器·c++·bash
月光在发光2 小时前
19_内核模块挂载问题处理
linux·运维·服务器
Liang_GaRy2 小时前
心路历程-Linux如何赋予权限?
linux·运维·服务器
路溪非溪3 小时前
Linux的gpio子系统
linux·运维·服务器
梅孔立3 小时前
服务器不支持node.js16以上版本安装?用Docker轻松部署Node.js 20+环境运行Strapi项目
服务器·docker·node.js
wdfk_prog3 小时前
[Linux]学习笔记系列 -- lib/dump_stack.c 栈回溯打印(Stack Trace Dumping) 内核调试与错误诊断的基石
linux·运维·服务器·c语言·笔记·学习
蓝倾9763 小时前
小红书获取用户作品列表API接口操作指南
java·服务器·前端·python·电商开放平台·开放api接口