【问题标题】:drop input traffic incoming from local network丢弃从本地网络传入的输入流量
【发布时间】:2013-11-16 17:59:29
【问题描述】:

我无法将从本地网络传入的流量丢弃到特定 IP 地址。

这是我的网络:

LAN 172.16.0.0/16 -> (eth1) Debian 路由器/Iptable (eth0) -> DMZ 192.168.0.0/24 -> ISP 路由器 -> 互联网

Debian 路由器/Iptable 设置: eth0 192.168.0.1/24 网关 192.168.0.254(ISP 路由器) eth1 172.16.0.1/16 启用 ipv4 转发 iptables -t filter -A INPUT -d 123.123.123.123/32 -j DROP #destination ip denied iptables -t nat -A POSTROUTING -j MASQUERADE

没有其他规则,并且由于 -d 123.123.123.123 -j DROP 已配置,我不明白我的计算机如何能够 ping/访问 123.123.123.123。

电脑网络配置: eth0 172.16.0.2/16 网关 172.16.0.1 dns 8.8.8.8

我做错了吗?谢谢。

【问题讨论】:

    标签: networking nat portforwarding


    【解决方案1】:

    我的过滤规则被应用到了错误的链上,这是我解决问题的方法:

    iptables -t filter -A FORWARD -d 123.123.123.123/32 -j DROP #destination ip denied

    【讨论】:

      猜你喜欢
      • 2016-05-05
      • 2018-06-02
      • 2014-06-20
      • 2014-05-08
      • 2017-04-24
      • 1970-01-01
      • 2014-04-29
      • 2020-06-26
      • 1970-01-01
      相关资源
      最近更新 更多