Skip to content

Instantly share code, notes, and snippets.

@rymdolle
Created January 13, 2021 14:40
Show Gist options
  • Save rymdolle/3ade2564742bf069cf562741ae9ceb2a to your computer and use it in GitHub Desktop.
Save rymdolle/3ade2564742bf069cf562741ae9ceb2a to your computer and use it in GitHub Desktop.
mullvad iptables
grep -H -Po '(?<=Endpoint = )(.+)(?=:)' mullvad-*.conf |\
sed -e 's/mullvad-/-A mullvad-wg -m comment --comment "/' -e 's/.conf:/" -d /' > mullvad-iptables.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment