Skip to content

Instantly share code, notes, and snippets.

@rooty
Forked from Snawoot/conntrack_remove.sh
Created January 15, 2018 22:58
Show Gist options
  • Save rooty/9d70adfb452041373604c5c97a608767 to your computer and use it in GitHub Desktop.
Save rooty/9d70adfb452041373604c5c97a608767 to your computer and use it in GitHub Desktop.
#!/bin/sh
MODULES=(
"iptable_nat"
"nf_conntrack"
"nf_conntrack_ipv4"
"nf_defrag_ipv4"
"nf_nat"
"nf_nat_ipv4"
"xt_nat"
"nf_conntrack_netlink"
)
for i in "${MODULES[@]}" ; do
for j in "${MODULES[@]}" ; do
modprobe -r "$j"
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment