Skip to content

Instantly share code, notes, and snippets.

@cympfh
Created December 26, 2019 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cympfh/afc212c75a11dae905c1019b121d1ef2 to your computer and use it in GitHub Desktop.
Save cympfh/afc212c75a11dae905c1019b121d1ef2 to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in $(seq 8000 8900); do
iptables -I INPUT 6 -p tcp -m tcp --dport $i -j ACCEPT
done
iptables -L --line-numbers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment