gpt4 book ai didi

windows - Cntlm 拒绝除 1 个 IP 以外的所有 IP (windows)

转载 作者:可可西里 更新时间:2023-11-01 11:24:37 24 4
gpt4 key购买 nike

我有一个 Windows cntlm 代理设置和工作。

现在我想打开它作为网关,但限制可以调用它的IP。这意味着除了一个 ip 地址外,拒绝所有。

目前我在 cntlm.ini 中尝试了这个和类似的配置:

Allow 10.10.10.1/32

Deny 0/0

但阻止一切。

知道怎么做吗?我在网上搜索失败。

最佳答案

我设法让它与这个设置一起工作。

# Enable to allow access from other computers
#
Gateway yes

# Useful in Gateway mode to allow/restrict certain IPs
# Specifiy individual IPs or subnets one rule per line.
#
Allow 10.10.10.1 # my computer ip
Allow 127.0.0.1
Allow 10.0.75.0/24 # docker interfaces range
Deny 0/0 # deny everyone else

关于windows - Cntlm 拒绝除 1 个 IP 以外的所有 IP (windows),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42830480/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com