Thứ Năm, 26 tháng 10, 2017

Script reset all rule iptables

This script will reset all rule iptables to default
Copy and save to reset_iptables.sh bash file

#!/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
iptables -t raw -F
iptables -t raw -X


Or copy in this link
https://ghostbin.com/paste/xt8ho

0 nhận xét :

Đăng nhận xét