Iptables Ban an IP Range?

Posted on 2007-08-01
Last Modified: 2013-11-16
How do I ban 83.*.*.* with iptables?
Question by:dprundle
    LVL 43

    Accepted Solution


    iptables -I INPUT -s -j DROP
    LVL 43

    Expert Comment

    But You may want to block real range (and not subclass), then
    iptables -I INPUT -m iprange --src-range -j DROP
    LVL 51

    Expert Comment

    .. and don't forget the other chains ... FORWARD, PREROUTING, mangle ...
    LVL 43

    Expert Comment

    Other chains that INPUT (FORWAD in fact) only required if configuing firewall(not single host)...

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (, affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
    This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now