iptables

Regeln speichern

Regeln löschen

iptables -L
iptables -L INPUT --line-numbers
iptables -t nat -L

iptables -D INPUT -s 127.0.0.1 -p tcp --dport 111 -j ACCEPT
- oder anhand der Chain Nummer:  `iptables -D INPUT 4`

-

Flush Rules

#!/bin/sh
echo "Stopping firewall and allowing everyone..."
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT

ICMP akzeptieren (ping)

Alles außer einer Domain Blocken

Weiterleitung

- <https://stackoverflow.com/questions/10727443/how-to-use-iptables-in-linux-to-forward-http-and-https-traffic-to-a-transparent>