Search
Items tagged with: bin/bash
Here's a thing I did in a couple of mins to ban all IPs in the parasites.txt serverside. You could ofc REJECT rather than DROP to send a message.
---
#!/bin/bash
while read parasite;
do
if [[ "$parasite" == *"."* ]]; then
iptables -I INPUT -s "$parasite" -j DROP
elif [[ "$parasite" == *":"* ]]; then
ip6tables -I INPUT -s "$parasite" -j DROP
fi
done < /path/to/parasites.txt
---
@utzer [Friendica]
My Friendica Node Update Skript run this command
My Friendica Node Update Skript run this command
#!/bin/bash
cd /var/www/friendica;
sudo -u www-data git pull;
sudo -u www-data bin/composer.phar install --no-dev;
sudo -u www-data bin/console dbstructure update -f;
cd /var/www/friendica/addon;
sudo -u www-data git pull;