とちゃき 05/26/2021 (Wed) 16:36:00 No.158546 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.