首页 > 解决方案 > 在 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 模式下连接,所以当我尝试连接到代理时,答案如下:

错误:“规则集不允许连接”

我做错了什么?

标签: linuxubuntusocksdante

解决方案


推荐阅读