Last active
September 30, 2020 09:44
-
-
Save com30n/881e6310f6584bcf5532a4318d56ab75 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# Fix DNS recornds after Cisco AnyConnect connection | |
sudo scutil << EOF | |
open | |
get State:/Network/Service/com.cisco.anyconnect/DNS | |
d.add ServerAddresses * 127.0.0.1 | |
set State:/Network/Service/com.cisco.anyconnect/DNS | |
quit | |
EOF | |
sudo pfctl -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment