• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux iptables blocklist importer Download

iptables blocklist importer

October 24, 2007
Python's iptables blocklist importer program allows the parsing and importing of IP range block lists, with a P2P-style, into an iptables chain.
Version 0.9
License GPL
Platform Linux
Supported Languages English
Homepage mikebabcock.ca
Developed by Michael T. Babcock
The iptables blocklist importer is a powerful and efficient Python program designed to quickly parse and import P2P-style IP range block lists into an iptables chain. To use this program, simply create an empty chain in your iptables firewall named BadRanges (or edit the code to use another name if you prefer) and add an appropriate reference in your INPUT and/or FORWARD chains.

Assuming you're using this on a single host that doesn't act as a router, you won't need an entry in FORWARD. Here's a basic example of what you can use: "iptables -N BadRanges iptables -I INPUT -i eth0 -m state --state NEW,RELATED -j BadRanges iptables -I FORWARD -i eth0 -m state --state NEW,RELATED -j BadRanges". This assumes your external network adapter is called eth0.

Once you've added the required entries, all new incoming connections or packets related to existing connections will be checked against the BadRanges list. It's important to note that this will not filter outbound packets, so you'll still be able to use a website hosted by an IP range that you don't want connecting back to you.

To get started, save your iptables (which is iptables-save > /etc/sysconfig/iptables on Fedora at least) so it loads by default. Then copy iptables-blocklist.py to /usr/local/libexec, which will parse the list into iptables-restore format. Finally, install zzz-badrangeupdate in your /etc/cron.daily or /etc/cron.weekly to regularly update and install the list.

The cron script downloads a zipped list of IP ranges to be blocked if it has changed since the last execution using wget. The list is then unzipped and a diff between the previous and current list is created simply for reference. The unzipped text list of IP ranges is then parsed by the iptables-blocklist.py program into a list of approximated subnets. This list is sorted into network prefix length order, shortest first, on the assumption that it will make for faster or easier matching.

Once the subnets are sorted, the list is output in iptables-restore format and piped through iptables-restore with the -n flag. This effectively replaces the one BadRanges chain with a new one atomically. The efficient process of this program makes it an excellent option for anyone looking to efficiently manage their firewall and keep their system secure.
What's New

Version 0.9: N/A

Free Download 13K
379
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    154
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    89
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    80
  6. porm r2
    73
  7. Clewarecontrol 0.8
    72
  8. Java Games 1.0
    72
  9. Swiftfox 3.0b5pre-2
    71
  10. fuseftp 0.8
    71

Related Downloads

Topal
Topal software integrates GnuPG and Pine/Alpine and provides a secure email environment. ...
wmnotify
The wmnotify software is a dock app for Window Maker that checks ...
Xfce 4 Quicklauncher Plugin
The Xfce 4 Quicklauncher Plugin aims to provide quick and easy access ...
Wmcalc
Wmcalc is a basic 64x64 pixel calculator software that can perform all ...
Brevis
Brevis is a compact and efficient Content Management System (CMS) software that ...
SnakeBite MP3 Converter
SnakeBite MP3 Converter is a program that quickly and easily converts your ...
Kalculus
Kalculus is a user-friendly software that serves as a visual interface for ...
Indexed PDF Creator
Indexed PDF Creator generates indexed PDFs from text files, including reports from ...
Alt+Connect
The Alt+Connect program efficiently manages dialup connections.
SRR Module
The SRR Module facilitates communication between software components through synchronous message passing ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.