Save all iptables rules to a .txt file and restore later (as root user):
iptables-save > /path/to/my-iptables-rules.txt
iptables-restore < /path/to/my-iptables-rules.txt
Save all iptables rules to a .txt file and restore later (as root user):
iptables-save > /path/to/my-iptables-rules.txt
iptables-restore < /path/to/my-iptables-rules.txt
cmd:
iptables -L -n --line-numberThis command is very slow:
iptables -L
Solution?
Manchmal muss man alle IPs blockieren außer ein oder ein paar IPs. Das kann man mit IPTables erreichen. Die Reihenfolge ist wichtig.
Um gesperrte IPs zu sehen:
iptables -L INPUT -v -n --line-number
Um eine IP-Adresse zu entsperren, bzw. eine Zeile (zB 6) zu löschen:
iptables -D INPUT 6
Jemand schickt ständig Spam auf meiner Website. Ich wollte IP blockieren. Aber es geht nicht mit Hosteurope's SSH. Unter Admin Panel gibt es auch keine Option
# apf -d 117.21.252.148
-bash: apf: command not found
# iptables -A INPUT -s 117.21.252.148 -j DROP
-bash: iptables: command not found
Wie kann ich einen IP auf Hosteurope blockieren?
Ich besitze einen Hobby V-Server. In der letzter Zeit musste ich DOS und DDOS näher kennen lernen. Es gibt einen IP Block welche versucht immer Spam auf meinen Forum zu posten. Laut Whois kommen dieser IPs mal aus Kolumbien mal aus Ägypten oder Russland. Egal woher sie kommen möchte ich sie sperren bevor sie auf mein Forum etwas posten. Ich habe folgendes gefunden um IP-Blöcke mit Hilfe von APF/IPtables zu blockieren.
Unsere Game Server bekommt DDos Attacke aus Argentinien und manchmal auch aus andere Länder. Wir haben Iptables, APF etc aber es hilft nicht. Wenn unsere Administratoren gerade online sind, machen sie es über netstat + apf/iptables übers SSH mit folgendem Schritte:
Neueste Kommentare
Wildcard
Let’s Encrypt will only accept a wildcard via DNS challenge.
If your Plesk instance can’t create the _acme-challenge.example.com TXT (external DNS), the extension can’t complete validation and will show no success.
Same problem
Warning: Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup()set-timezone Europe/Berlin
sudo timedatectl set-timezone Europe/BerlinTry this:1. Go to Tools &…
Try this:
Alternative (without warnings like "no crontab for user")
Alternative (without warnings like "no crontab for dovecot") to see all tasks:
php 8.3 apcu
php 8.3 apcu failed
über Plesk hat es geklappt.
phpize failed error?
install:
# sudo apt install php-devphpize
# sudo apt install…
phpize
# sudo apt install php-devdetails
Problem:
/opt/plesk/php/8.3…
Problem:
Problem:PHP APCu caching…
Problem: