This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Usage: [dry_run=1] [debug=1] [interface=tunsnx] docker-fix-snx | |
# | |
# Credits to: https://github.com/docker/for-linux/issues/288#issuecomment-825580160 | |
# | |
# Env Variables: | |
# interface - Defaults to tunsnx | |
# dry_run - Set to 1 to have a dry run, just printing out the iptables command | |
# debug - Set to 1 to see bash substitutions |