【问题标题】:How to block network trafic form outside network using iptable? [closed]如何使用 ip 表阻止来自外部网络的网络流量? [关闭]
【发布时间】:2012-02-03 21:19:01
【问题描述】:

我的网络系统 ip 在 192.168.211.0/24 范围内。我在 192.168.211.50 上有一个 Web 服务器。我只想从 192.168.211.0/24 范围接收数据包到我的 Web 服务器。如何在 Ubuntu 中使用 iptable 进行配置?

【问题讨论】:

    标签: security networking ubuntu iptables


    【解决方案1】:
    iptables -I INPUT 1 -s 192.168.211.0/24 -j ACCEPT
    iptables -I INPUT 2 -m state --state ESTABLISHED,RELATED -j ACCEPT
    iptables -I INPUT 3 -j DROP
    

    【讨论】:

    • 谢谢..我会试试这个...
    猜你喜欢
    • 1970-01-01
    • 2013-05-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多