Overkilling Privacy Protection with ExpressVPN and VirtualBox on a Hackintosh

Overkilling Privacy Protection with ExpressVPN and VirtualBox on a Hackintosh
I live in Indonesia. Here, ISP and telcos likes to do the absurd: hijacking DNS queries. Public DNS services like Google (8.8.8.8), Cloudflare (1.1.1.1), OpenDNS (208.67.222.222), etc are hijacked at the ISP level. Even more so, if you’re on Telkom Indihome, they will also hijack websites you visit with their content. All the other telcos are doing the same thing for our paid data plans. So I thought why not overkill this, I got plenty of RAM, CPU Cores and storage on my Hackintosh. [Read More]

Easy DNS Names for Virtual Hosts in Mac OS X

I got tired of manually inserting lines into my /etc/hosts file and decided to look for other solutions. The DD-WRT router has a DNSMAsq feature in which I list domains that are supposed to be internal domains to be resolved to its local IP. I still have to insert lines but now it’s more organized and better than seeing mumbo jumbo in your hosts file.

Here are my steps: [gist]

# If you don't have Homebrew installed, you should. Do this.
/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
# Install DNSMasq from Homebrew
brew install dnsmasq
# Create a directory for virtual hosts files
mkdir -p /usr/local/etc/dnsmasq.d
# Create a config for DNSMasq
vim /usr/local/etc/dnsmasq.conf
# Insert the following settings
server=8.8.8.8 # Public upstream DNS server 1 for non-local domains - Google
server=208.67.222.222 # Public upstream DNS server 2 for non-local domains - OpenDNS
server=208.67.220.220 # Public upstream DNS server 3 for non-local domains - OpenDNS
conf-dir=/usr/local/etc/dnsmasq.d # Put virtual hosts in a separate file/directory structure
# Start DNSMasq at bootup
sudo cp /usr/local/Cellar/dnsmasq/2.60/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
view raw gistfile1.txt hosted with ❤ by GitHub
[/gist]