kravietz / blacklist-scripts Goto Github PK
View Code? Open in Web Editor NEWVarious IP blacklisting scripts for Linux and OpenWRT
License: GNU General Public License v2.0
Various IP blacklisting scripts for Linux and OpenWRT
License: GNU General Public License v2.0
First of all, thanks for this script!
On LEDE using pppoe wan the wan_iface=$(uci get network.wan.ifname)
line sets eth0.2
not pppoe-wan
so blocking was not working. I replaced the line with IN_OPT=""
and it works now.
Hello,
On LEDE/OpenWrt the sript is intended to be installed in /etc/firewall.user
The problem is that on boot, the openwrt firewall is loaded BEFORE the network comes up, and this is what we want.
So the script "fails", being unable to download the blacklists.
I chose to keep the script in /etc/firewall.user, but I added a service loading the rules when the network is up.
`#!/bin/sh /etc/rc.common
START=30
COMMAND="sh /etc/firewall.user"
boot() {
$COMMAND
}
`
Guy
Hi Paweł,
I was looking for something to proactively update my OpenWRT firewall rules and came across your repo here. The blacklist sources look great, so thanks for putting this together.
I was just wondering, since the merge of LEDE and OpenWRT, can I assume that the correct approach for OpenWRT would be to also include the LEDE steps to update the blacklists after the network is available?
It's not immediately obvious to me which order the two start up in. I'm currently using OpenWRT 18.06.1
Thanks
It appears badips.com does not exist anymore, do you have any plans to implement reporting to another service?
Hi,
I'm trying to setup yout script in my VPS, but when I test it with # sh blacklist.sh, doesn't pass this line:
+ COMPRESS_OPT=--compressed
+ INPUT=INPUT
+ FORWARD=FORWARD
+ iptables -L
+ grep -q 'Chain blocklists' --> (stuck here)
(debug thanks to "set -x")
I've installed curl and ipset, as the info says. What's the problem?
OS: Debian 8.3
I installed it on LEDE Reboot (17.01.4, r3560-79f57e422d)
Awesome, Thanks a lot
I think I will install it on my debian server
It should be said somewhere that in order to log, the "log" parameter must be given on the command line
It looks like the $PORTS parameter is never used and all the traffic from the blacklist IPs is dropped
Guy
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.