Created
June 3, 2020 14:45
-
-
Save ahmed-abdelazim/04c3fee9980a17bbc6b77d4abcd1c419 to your computer and use it in GitHub Desktop.
iptables fix after flush
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
IPT="/sbin/iptables" | |
# Set default policies for all three default chains | |
$IPT -P INPUT ACCEPT | |
$IPT -P FORWARD ACCEPT | |
$IPT -P OUTPUT ACCEPT | |
# Flush old rules, old custom tables | |
$IPT --flush | |
$IPT --delete-chain | |
$IPT -t nat --flush | |
$IPT -t mangle --flush |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment