Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # sudo ./iptables-flusher.sh
- ##############################################################################################
- # iptables flusher leaving only the new linux system beginning INPUT, FORWARD, OUTPUT ACCEPT #
- ##############################################################################################
- sudo iptables -P INPUT ACCEPT
- sudo iptables -P FORWARD ACCEPT
- sudo iptables -P OUTPUT ACCEPT
- ################################
- # iptables flush #
- ##################
- sudo iptables -t nat -F
- sudo iptables -t mangle -F
- sudo iptables -F
- sudo iptables -X
- ##################
- sudo iptables -S
- echo "All added iptable rules have been flushed. Leaving only the INPUT,FORWARD and OUTPUT Accept iptable rules found on a new Linux setup at start for full connectivity."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement