とちゃき 05/26/2021 (Wed) 17:56:40 No.158547 del
#!/bin/bash

iptables -F

iptables -P INPUT DROP

iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -j DROP

iptables -P FORWARD DROP

iptables -A FORWARD -j DROP

iptables -P OUTPUT DROP

iptables -A OUTPUT -m state --state ESTABLISHED -j ACCEPT

Message too long. Click here to view full text.