找回密码
 免费注册

[Linux] Dante Socks 基本安装配置

[复制链接]
admin 发表于 2024-1-30 17:52:57 | 显示全部楼层 |阅读模式
安装dante-server
  1. yum --enablerepo=gf-plus install dante-server -y
复制代码

参考网址
测试链接
  1. curl -v -x socks5://your_dante_user:your_dante_password@your_server_ip:1080 http://www.google.com/
复制代码




回复

使用道具 举报

 楼主| admin 发表于 2024-2-22 22:47:57 | 显示全部楼层
  1. socks pass {  
  2.        from: 10.0.0.0/8 to: 0.0.0.0/0
  3.        command: bind connect udpassociate
  4.        log: error connect disconnect iooperation
  5. }
  6. socks pass {
  7.        from: 0.0.0.0/0 to: 10.0.0.0/24
  8.        command: bindreply udpreply
  9.        log: error connect disconnect iooperation
  10. }
复制代码
这样写的话,就只有10.0.0.0/24这个网段可以通过Socks服务器访问到外部了

回复

使用道具 举报

 楼主| admin 发表于 2024-2-22 22:55:54 | 显示全部楼层
授权单个IP白名单的两种写法
  1. pass {  
  2.         from: 116.168.159.119/0 to: 0.0.0.0/0
  3.         command: bind connect udpassociate
  4.         log: error
  5. }
  6. pass {  
  7.         from: 116.168.159.119/32 to: 0.0.0.0/0
  8.         command: bind connect udpassociate
  9.         log: error
  10. }
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|Archiver|手机版|小黑屋|信息共享网

GMT+8, 2024-5-16 10:05 , Processed in 0.077527 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表