基于3proxy搭建虚拟私有网络
1、安装3proxy
yum install 3proxy -y
2、编辑配置文件
vi /etc/3proxy.cfg
#!/usr/local/bin/3proxy
# DNS服务器
#nserver 114.114.114.114
# DNS缓存
nscache 65536
# 超时
timeouts 1 5 30 60 180 1800 15 60
# 日志
log /var/log/3proxy.log
logformat "- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T"
rotate 1
# 本机内网IP
external 172.29.82.78
# 可连接IP配置
internal 0.0.0.0
# 用户 CL明文密码
# 用户 CR MD5密码
# users "john:CL:john" "test1:CR:$1$t123$byzzTzzzTt5mCyzzZyzzUy"
# 用户配置
users "root:CL:root@guoyun" "guihua:CL:guihua@guoyun"
auth iponly strong
allow root
# 代理端口配置
socks -p1080 -e
flush
3、启动
nohup 3proxy /etc/3proxy.cfg &