DROP all -- localhost/8 anywhere

Discussion in 'General' started by PermaNoob, Feb 4, 2013.

  1. PermaNoob

    PermaNoob Member

    I can't figure out why this is in iptables:
    DROP all -- localhost/8 anywhere

    and when I try to remove it, I get:

    server:~# iptables -D INPUT -s localhost/8 -j DROP
    iptables: Bad rule (does a matching rule exist in that chain?)

    Server is working ok, as far as I can tell.
     
  2. pititis

    pititis Member

    List the chain and then remove it:

    Code:
    iptables -L INPUT -n --line-numbers
    
    Code:
    iptables -D INPUT x
    
    where x is the number for the rule.

    Cheers
     

Share This Page