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
相关推荐
IT199515 小时前
C++使用“长度前缀法”解决TCP“粘包 / 拆包”问题
服务器·网络·c++·tcp/ip
德迅云安全—珍珍15 小时前
物理服务器、云服务器、裸金属服务器的区别
运维·服务器
好记忆不如烂笔头abc15 小时前
超微服务器的ipmi调整风扇运行模式
运维·服务器
一个响当当的名号15 小时前
ASP.NET 期末突击
运维·服务器
@Wufan15 小时前
ubuntu服务器子用户(无sudo权限)安装/切换多个版本cuda
linux·服务器·ubuntu·cuda
studytosky15 小时前
Linux 基础开发工具(3):Git 控制与 GDB 调试实用指南
linux·运维·服务器·网络·数据库·git
WG_1716 小时前
Linux:环境变量
linux·运维·服务器
NZT-4816 小时前
服务器访问github受限的解决办法
运维·服务器·github
kaoa00016 小时前
Linux入门攻坚——57、HAProxy
linux·运维·服务器
何妨呀~17 小时前
Linux在VMware上添加磁盘与扩展分区
linux·运维·服务器