Skip to content

Instantly share code, notes, and snippets.

@jonathanmmm
jonathanmmm / gist:9a6192ec32588bb691ef6f082e33d7aa
Created May 27, 2021 17:31
functions.sh please call it via ./ not via sh as sh does not always calls bash and sh does not understand arrays.
#!/bin/bash
#set -e
## SEE https://medium.com/@ebuschini/iptables-and-docker-95e2496f0b45
## You need to add rules in DOCKER-BLOCK AND INPUT for traffic that does not go to a container.
## You only need to add one rule if the traffic goes to the container
#CWD=$(cd "$(dirname "${0}")"; pwd -P)
#FILE="${CWD}/$(basename "${0}")"