Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
unboy
V2EX  ›  Linux

iptables 如何阻止特定大小的包?

  •  
  •   unboy · May 21, 2016 · 3430 views
    This topic created in 3721 days ago, the information mentioned may be changed or developed.
    例如阻止所有等于 70bytes 的包(不是小于,也不是大于)进入服务器。
    我写了个貌似不对,能给我修改下吗?
    iptables -I INPUT -p length – length 70:70 -j DROP
    1 replies    2016-05-21 17:23:35 +08:00
    unboy
        1
    unboy  
    OP
       May 21, 2016
    改成 iptables -A INPUT -p tcp -m length --length 70:70 -j DROP 了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1161 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 23:13 · PVG 07:13 · LAX 16:13 · JFK 19:13
    ♥ Do have faith in what you're doing.