【问题标题】:How to block access to an IP via a specific port如何阻止通过特定端口访问 IP
【发布时间】:2015-08-11 22:44:27
【问题描述】:

我已经为我的机器获得了一个静态 IP。从一个站点(由我的 IP 托管),它发送一个类似 http://x.x.x.x:1234.... 的查询。我必须更改 iptable 配置(假定),否则其他人无法向我的服务器发送查询。

使用特定端口阻止 IP 的解决方案是什么?

【问题讨论】:

    标签: networking port iptables


    【解决方案1】:

    如果您的网络中有路由器,您可以使用 ACL(访问控制列表)来完成此操作。

    STEP 1: Configure a ACL to allow only your PC (permit <your IP> <server IP> precedence 1)
    STEP 2: Configure a ACL to deny all other PCc (deny any <server IP> precedence 2)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-01-01
      • 2016-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多