Skip to content

Instantly share code, notes, and snippets.

View pgrenaud's full-sized avatar

Patricia Gagnon-Renaud pgrenaud

View GitHub Profile
@pgrenaud
pgrenaud / keybase.md
Created September 19, 2023 16:32
keybase.md

Keybase proof

I hereby claim:

  • I am pgrenaud on github.
  • I am pgrenaud (https://keybase.io/pgrenaud) on keybase.
  • I have a public key ASA_x9bcAP64qdI_IyyPDOpyhlDtkKirI_oOTFWG9OoAOAo

To claim this, I am signing this object:

@pgrenaud
pgrenaud / northsec-2023-additional-vpn-instructions-for-macos.md
Last active May 20, 2023 23:08
NorthSec 2023 additional VPN instructions for macOS

I found a functional workaround to make the DNS works on macOS Ventura and Monterey (should work on both Intel and Apple Silicon). It involve installing and configuring dnsmasq as the sole DNS provider for you main network interface. I try other less intrusive solution (live setting resolver for nsec and ctf in /etc/resolver, but that was not enough). I might have forgot something, so let me know if something is not working.

  1. First, follow macOS specific instructions at https://nsec.io/vpn/
  2. Disconect the VPN and close Tunnelblick.
  3. Install homebrew if not installed already: https://brew.sh/
  4. Install dnsmasq:
brew install dnsmasq
#!/bin/bash
ERROR=0
# Set root password to randomized 64 character long password
rootpassword=$(openssl rand -base64 64)
echo "Setting randomized root password"
/usr/bin/dscl . -passwd /Users/root "$rootpassword"