EdgeOS Blacklist Save

Automatically updates IP blacklist for EdgeOS (supports IPv4 & IPv6)

Project README

EdgeOS-Blacklist

Automatically updates IP blacklist for EdgeOS

Installation

  1. Copy the script update-blacklist.sh to /config/scripts/post-config.d/update-blacklist.sh

  2. Make the script executable: chmod +x /config/scripts/post-config.d/update-blacklist.sh

  3. Edit /config/config.boot to use blacklist e.g.

    firewall {
        ...
    +   group {
    +       network-group BLACKLIST_DROP {
    +       }
    +       network-group BLACKLIST_DROPv6 {
    +       }
    +   }
        ...
        ipv6-name WANv6_IN {
            ...
    +       rule 30 {
    +           action drop
    +           description "Networks to drop from blacklist"
    +           source {
    +               group {
    +                   network-group BLACKLIST_DROPv6
    +               }
    +           }
    +       }
        }
        ...
        name WAN_IN {
            ...
    +       rule 30 {
    +           action drop
    +           description "Networks to drop from blacklist"
    +           source {
    +               group {
    +                   network-group BLACKLIST_DROP
    +               }
    +           }
    +       }
    +   }
    }
    
  4. Edit /config/config.boot to update blacklist e.g. everyday at 1am

    system {
        ...
    +   task-scheduler {
    +       task BLACKLIST {
    +           crontab-spec "0 1 * * *"
    +           executable {
    +               path /config/scripts/post-config.d/update-blacklist.sh
    +           }
    +       }
    +   }
    }
    
  5. Reboot device: reboot

Open Source Agenda is not affiliated with "EdgeOS Blacklist" Project. README Source: amarcu5/EdgeOS-Blacklist
Stars
40
Open Issues
6
Last Commit
5 years ago
License

Open Source Agenda Badge

Open Source Agenda Rating