Skip to content

Instantly share code, notes, and snippets.

View davidecavestro's full-sized avatar

Davide Cavestro davidecavestro

View GitHub Profile
@davidecavestro
davidecavestro / docker-fix-snx
Last active April 7, 2022 08:35 — forked from Fahl-Design/tunnelPlumber.sh
fix tunsnx interfaces created with linux kernel 5.9 or later Usage: [dry_run=1] [debug=1] [interface=tunsnx] docker-fix-snx
#!/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