1

下面是我的 dante 配置文件

logoutput: /var/log/socks.log
internal: enp0s3 port = 1080
external: enp0s3
clientmethod: none
socksmethod: none
user.privileged: root
user.notprivileged: nobody

client pass {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: error connect disconnect
}
client block {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: connect error
}
socks pass {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: error connect disconnect
}
socks block {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: connect error
}

当 ipv6 被禁用时它在 ipv4 中工作,这就是我禁用 ipv6 的方式

vim /etc/sysctl.conf
    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1
    net.ipv6.conf.lo.disable_ipv6 = 1
    net.ipv6.conf.enp0s3.disable_ipv6 = 1

sysctl -p

但是当启用 ipv6 时,它不会返回预期的结果


这就是我测试连接的方式

curl -x socks5://user:pass@192.168.1.11:1080 ifconfig.co

结果

curl: (7) Can't complete SOCKS5 connection to 2606:4700:3036::ac43:85e4:80. (6)
4

0 回答 0