如何阻止除少数IP地址之外的所有IP地址? [英] How do I block all but a few IP addresses?

查看:99
本文介绍了如何阻止除少数IP地址之外的所有IP地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完全无法正确限制除少数外部IP以外的所有IP。我可以限制所有IP(0.0.0.0/0)或不限制。我尝试阻止所有具有较低优先级的IP作为我正在使用但不起作用的一个外部测试IP。 MS的文档
表明我输入的IP 因为它允许它隐含地限制所有其他......这不是真的。我以下列格式输入我们的外部IP:8.8.8.8 / 0,它允许任何IP进入。协助请。

I am totally unable to properly restrict all but a few external IP's. I can either restrict ALL IP's (0.0.0.0/0) or none. I tried blocking all IP's with a lower priority as the one external test IP that I am using but that did not work. MS's documentation states that i you enter an IP  for ALLOW it implicitly restricts all others...THIS IS NOT TRUE. I entered our external IP in the format: 8.8.8.8/0 and it would allow ANY IP to come right in. Assistance PLEASE.






0.0.0.0/0

推荐答案

 

Hi, 

您需要创建2条规则,

3030允许您的IP / 32 ANY PortALL

3030 ALLOW yourIP/32 ANY PortALL

4040    DENY 0.0.0.0/0 ANY portALL

4040   DENY 0.0.0.0/0 ANY portALL

以上只是一个示例,您需要拒绝所有流量所有优先级较高的端口然后创建另一个优先级较低的规则,以允许您的特定IP使用/ 32和所有端口。 

This above is just a sample, you need to deny all traffic all ports with higher priority and then create a another rule with lower priority to allow your specific IP with /32 and all ports. 

如果有,请告诉我工作。 

Let me know if that works. 

问候, 

Msrini


这篇关于如何阻止除少数IP地址之外的所有IP地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆