16 lines
264 B
Bash
Executable File
16 lines
264 B
Bash
Executable File
#! /bin/bash
|
|
|
|
IPTABLES="sudo /sbin/iptables"
|
|
|
|
$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
|
|
|
|
echo "iptables reseted"
|