Cntlm拒绝除1个IP以外的所有IP(windows)
我已设置windows cntlm代理并正在运行 现在我想将其作为网关打开,但限制可以调用它的IP。这意味着拒绝除一个ip地址之外的所有ip地址 目前,我在cntlm.ini中尝试了此配置和类似配置: 允许10.10.10.1/32 拒绝0/0 但却阻碍了一切Cntlm拒绝除1个IP以外的所有IP(windows),windows,proxy,acl,windows-firewall,Windows,Proxy,Acl,Windows Firewall,我已设置windows cntlm代理并正在运行 现在我想将其作为网关打开,但限制可以调用它的IP。这意味着拒绝除一个ip地址之外的所有ip地址 目前,我在cntlm.ini中尝试了此配置和类似配置: 允许10.10.10.1/32 拒绝0/0 但却阻碍了一切 知道怎么做吗?我在网上搜索失败。我成功地使它与此设置一起工作 # Enable to allow access from other computers # Gateway yes # Useful in Gateway mode to
知道怎么做吗?我在网上搜索失败。我成功地使它与此设置一起工作
# 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
在Linux环境中,使用/etc/cntlm.conf,似乎只有当允许/拒绝列表是一行接一行时才有效;我发现如果在条目之间添加注释行,它将无法正常工作。我看到在你的例子中,你把评论放在每句话之后,所以很高兴知道,非常感谢你展示这个例子。