Startseite » IT

Category: IT

Iptabels add blocklist while systemctl start

add iptables with binarydefense.com and ip-projects.de blocklist

☆ carloscomputer-banlist ☆

Edit systemd iptables.service

[Unit]
Description=IPv4 Packet Filtering Framework
Before=network-pre.target
Wants=network-pre.target

[Service]
Type=oneshot
ExecStart=/usr/bin/iptables-restore /etc/iptables/iptables.rules
ExecStartPost=/etc/script/ipban.list.sh
ExecReload=/usr/bin/iptables-restore /etc/iptables/iptables.rules
ExecStop=/usr/lib/systemd/scripts/iptables-flush
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

The iptables script contains

you should modify as you need -I or -A and ‘input’ chain

#!/bin/sh
curl https://www.binarydefense.com/banlist.txt |sed 1,13d >> carloscomputer-banlist
curl http://mirror.ip-projects.de/ip-blacklist >> carloscomputer-banlist
for i in `cat carloscomputer-banlist.txt`; do
iptables -A INPUT -s $i -j DROP
done

check banned iptable

iptables -L -n |grep DROP -c
2541

 

Live Wifi Visualisation

Here I’ve a live visualisation of wifi networks with tcpdump and awk script to show connections with device addresses, channels and frequencies or dB state in gource.

Live Wifi Visualisation DigitalMirror holographic from carlosnikolaus on Vimeo.

…and more various

carloscomputer: DigitalMirror live wifi visuals by carlos nikolaus from carlosnikolaus on Vimeo.

htop process awk skript

awk