Skip to content

Instantly share code, notes, and snippets.

@fcaldarelli
Created November 1, 2022 07:04
Show Gist options
  • Save fcaldarelli/bfcc3828d7ac2ef020071ee819c8e54f to your computer and use it in GitHub Desktop.
Save fcaldarelli/bfcc3828d7ac2ef020071ee819c8e54f to your computer and use it in GitHub Desktop.
#!/bin/sh
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment