All Projects → prbinu → Yipfilter

prbinu / Yipfilter

Licence: other
A wrapper script over iptables/ipset to manage host based IP dynamic blacklists and whitelists

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Yipfilter

UnboundBL
🛑 DNSBL (adblock) on OPNsense with UnboundBL & Unbound DNS
Stars: ✭ 63 (+250%)
Mutual labels:  whitelist, iptables
Spotify Adblock Linux
Spotify adblocker for Linux
Stars: ✭ 641 (+3461.11%)
Mutual labels:  whitelist
Deploy
一个多服务器端口租用管理面板
Stars: ✭ 269 (+1394.44%)
Mutual labels:  iptables
Kube Iptables Tailer
A service for better network visibility for your Kubernetes clusters.
Stars: ✭ 413 (+2194.44%)
Mutual labels:  iptables
Psad
psad: Intrusion Detection and Log Analysis with iptables
Stars: ✭ 298 (+1555.56%)
Mutual labels:  iptables
Jshielder
Hardening Script for Linux Servers/ Secure LAMP-LEMP Deployer/ CIS Benchmark
Stars: ✭ 483 (+2583.33%)
Mutual labels:  iptables
Ovpm
OpenVPN Management Server - Effortless and free OpenVPN server administration
Stars: ✭ 256 (+1322.22%)
Mutual labels:  iptables
Docker Host
A docker sidecar container to forward all traffic to local docker host or any other host
Stars: ✭ 769 (+4172.22%)
Mutual labels:  iptables
Ipsum
Daily feed of bad IPs (with blacklist hit scores)
Stars: ✭ 577 (+3105.56%)
Mutual labels:  iptables
Asuswrt Merlin Transparent Proxy
transparent proxy base on ss, v2ray, ipset, iptables, chinadns on asuswrt merlin.
Stars: ✭ 367 (+1938.89%)
Mutual labels:  iptables
Ipt Netflow
Netflow iptables module for Linux kernel (official)
Stars: ✭ 357 (+1883.33%)
Mutual labels:  iptables
Love Gfw
🔥以社会主义核心价值观为指导思想,实现 Linux 和 MacOS 设备的全局智能分流
Stars: ✭ 329 (+1727.78%)
Mutual labels:  iptables
Spotifyadblock
Protect your privacy by blocking all annoying Spotify ads & analytics in Linux, OSX and Windows with hosts file.
Stars: ✭ 540 (+2900%)
Mutual labels:  whitelist
Toriptables2
Tor Iptables script is an anonymizer that sets up iptables and tor to route all services and traffic including DNS through the Tor network.
Stars: ✭ 287 (+1494.44%)
Mutual labels:  iptables
Usbguard
USBGuard is a software framework for implementing USB device authorization policies (what kind of USB devices are authorized) as well as method of use policies (how a USB device may interact with the system)
Stars: ✭ 668 (+3611.11%)
Mutual labels:  whitelist
Docker Fail2ban
Fail2ban Docker image based on Alpine Linux
Stars: ✭ 263 (+1361.11%)
Mutual labels:  iptables
Ansible Role Firewall
Ansible Role - iptables Firewall configuration.
Stars: ✭ 343 (+1805.56%)
Mutual labels:  iptables
Scriptsafe
a browser extension to bring security and privacy to chrome, firefox, and opera
Stars: ✭ 434 (+2311.11%)
Mutual labels:  whitelist
Totp Ssh Fluxer
Take security by obscurity to the next level (this is a bad idea, don't really use this please)
Stars: ✭ 811 (+4405.56%)
Mutual labels:  iptables
Vps setup
linux vim bash 脚本学习笔记 by 蘭雅sRGB https://262235.xyz/
Stars: ✭ 678 (+3666.67%)
Mutual labels:  iptables

yipfilter

yipfilter is a program to create and manage host based IP blacklists and whitelists to control inbound TCP traffic in an easy and scalable way. An application that determines an abusive IP can add the IP to yipfilter blacklist to block inbound traffic from the IP. yipfilter is built on top of iptables and ipset that provides a simple interface to control inbound TCP traffic. yipfilter addresses shortcomings associated with the direct usage of iptables such as:

  • Managing iptables directly doesn't scale if you have a large dynamic IP blacklists and large number of rules. Instead we use ipset that provides IP hash table.
  • iptables doesn't support the notion of auto-rehabilitation of IPs directly.
  • Finally it is simply more powerful and hard to use for someone with a non-networking background.

yipfilter provides two functions:

  • IP based dynamic blacklists with auto-expiry
  • IP based access control (whitelist approach)

Features

  • "Store multiple IP addresses and port numbers and match against the collection by iptables at one swoop" (ipset)
  • "Dynamically update blacklist sets without perfor-mance penalty" (ipset)
  • "Express complex IP address and ports based rule-sets with one single set" (ipset)
  • Combines ipset and iptables to form a unified interface
  • Ability to set expiry time for an IP
  • Superior performance compared to application level (L7) firewalls
  • Access control with enhanced security - A non-whitelisted IP cannot establish a TCP and SSL connection with a restrict-ed web application. Protection from OpenSSL heartbleed type attacks.

Use Cases

  • Traffic shaping - yipfilter can greatly reduce the level of network traffic arriving at origin servers due to abuse.
  • Integration with application level (L7) heuristics to detect abusive IPs and block those IPs in network layer at the edge - Protect and save network and system resources for legitimate traffic.
  • Whitelist based access control

Usage

Prerequisites: iptables and ipset packages. iptables comes by default on all recent Linux distributions. For ipset, install it using yum (Fedora/RHEL) or apt (Ubuntu).

For Fedora/RHEL6+:

  % yum install -y ipset

To start:

  % yipfilter.sh --help

Examples

    yipfilter.sh allow -s whitelist -p 443 -t ip -f whitelist.txt
    
    yipfilter.sh deny -s blacklist -p 443 -t ip -f blacklist.txt

    yipfilter.sh destroy -s blacklist

    yipfilter.sh list -s blacklist

    yipfilter.sh list

    yipfilter.sh add -s blacklist -e 600 -E 72.134.234.56

    yipfilter.sh test -s blacklist -E 72.134.234.56

    echo "72.134.234.56" | yipfilter.sh add -s blacklist -e 600

    yipfilter.sh save -s blacklist > blacklist.yipf

    yipfilter.sh restore -s blacklist -f blacklist.yipf

Documentation

Man Page

License

This software is free to use under the Yahoo! Inc. BSD license. See the LICENSE file for license text and copyright information.

TODO

IPv6 support

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].