iptables

Firewallregeln


Anzeigen von aktuellen Regeln:

iptables -L


Regeln sichern und wiederherstellen:

sudo su
iptables-save > /home/pi/fwregeln.txt
iptables-restore < /home/pi/fwregeln.txt


Aktuelle FW-Regeln:

benutzer@rechner:/home/pi# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
DROP       all  --  64.227.99.0/24       anywhere
DROP       all  --  107.170.192.0/24     anywhere
DROP       all  --  38.132.109.0/24      anywhere
DROP       all  --  ebuuv1re2tg.expanse.co/24  anywhere
DROP       all  --  ebuuv1re2tg.expanse.co/24  anywhere
DROP       all  --  146.88.241.0/24      anywhere
DROP       all  --  71.6.134.0/24        anywhere
DROP       all  --  no-mans-land.m247.com/24  anywhere
DROP       all  --  167.94.138.0/24      anywhere
DROP       all  --  94.102.61.0/24       anywhere
DROP       all  --  fqydoihpxto.expanse.co/24  anywhere
DROP       all  --  fqydoihpxto.expanse.co/24  anywhere
DROP       all  --  no-mans-land.m247.com/24  anywhere
DROP       all  --  154.209.125.0/24     anywhere
DROP       all  --  167.248.133.0/24     anywhere
DROP       all  --  66.23.234.0/24       anywhere
DROP       all  --  no-mans-land.m247.com/24  anywhere
DROP       all  --  192.241.234.0/24     anywhere
DROP       all  --  no-mans-land.m247.com/24  anywhere
DROP       all  --  fqydoihpxto.expanse.co/24  anywhere
DROP       all  --  no-mans-land.m247.com/24  anywhere
DROP       all  --  ebuuv1re2tg.expanse.co/24  anywhere
DROP       all  --  146.88.241.0/24      anywhere
DROP       all  --  no-mans-land.m247.com/24  anywhere
DROP       all  --  192.241.239.0/24     anywhere
DROP       all  --  107.170.252.0/24     anywhere
DROP       all  --  167.248.133.0/24     anywhere
DROP       all  --  45.79.140.0/24       anywhere
DROP       all  --  no-mans-land.m247.com/24  anywhere
DROP       all  --  106.75.162.0/24      anywhere
DROP       all  --  38.132.109.0/24      anywhere
DROP       all  --  71.6.134.0/24        anywhere
DROP       all  --  194.187.176.0/24     anywhere
DROP       all  --  no-mans-land.m247.com/24  anywhere
DROP       all  --  94.102.61.0/24       anywhere
DROP       all  --  fqydoihpxto.expanse.co/24  anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


Quellen:
https://wiki.ubuntuusers.de/iptables/
https://www.ionos.de/digitalguide/server/tools/iptables-tutorial-regelwerk-fuer-datenpakete-erstellen/