iptables -t {mangle|filter|nat} -L
You can also add the --line-number
option to print rules numbers
# | |
# To run this script on your machine use | |
# curl https://gist.githubusercontent.com/escalopa/a21b2f79016ffea7825b14fd43f4d60c/raw/aeffa969a2e98b3f8f85727b2783fa2cafc76004/docker-ubuntu.sh | bash | |
# | |
set -e | |
sudo apt update -y | |
sudo apt install -y \ |