Skip to content

Instantly share code, notes, and snippets.

@cdpb
cdpb / gist:f899f8adbcd643eb9bb2
Created February 16, 2016 08:41
simple iptables to secure docker from host
#!/bin/bash
# for coreos with flannel ...
# Example use ./iptables.sh --source 172.16.23.0/24 --destination 172.16.23.1 --local 10.2.0.2 --dry-run true
while [[ $# > 1 ]]
do
ARGS="$1"
case $ARGS in
-s|--source)