linux - 在 Dante Socks5 Server ubuntu 中允许绑定连接
问题描述
我在 ubuntu 20.04 上安装并配置了 dante 服务器,并使用以下数据创建了文件 /etc/danted.conf:
#authentication methods
clientmethod: none
socksmethod: none
##
## SOCKS client access rules
##
#rule processing stops at the first match, no match results in blocking
#allow connections from local network (192.0.2.0/24)
client pass {
from: 192.168.1.0/24 to: 0.0.0.0/0
log: error # connect disconnect
}
##
## SOCKS command rules
##
#rule processing stops at the first match, no match results in blocking
#generic pass statement - bind/outgoing traffic
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
command: bind connect udpassociate
log: error # connect disconnect iooperation
}
#generic pass statement for incoming connections/packets
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
command: bindreply udpreply
log: error # connect disconnect iooperation
}
我不想在 BIND 模式下连接,所以当我尝试连接到代理时,答案如下:
错误:“规则集不允许连接”
我做错了什么?
解决方案
推荐阅读
- python - 如何选择列表的第一个元素并应用于整个数据集?
- python - 如何根据值的频率拆分熊猫数据框
- autodesk-forge - 伪造查看器混合面板选择退出 7.29
- css - 有没有办法将 SASS lighten() 和 darken() 与 CSS 变量一起使用?
- python - 使用 SequenceMatcher 查找多个字符串中的常见片段
- typescript - 在 Typescript 严格模式下调用方法
- reactjs - React 本机功能没有按应有的方式工作
- php - 从另一个 php 运行 php,而调用者无需等待被调用的 php 结束
- sql - 我的目标是返回一个结果集,其中每年(从日期开始)它将返回会议和非会议的计数
- node.js - 在发布请求 Elastic Beanstalk 时出现 nginx 500 错误