Skip to content

Instantly share code, notes, and snippets.

View catalinbostan's full-sized avatar

Catalin Bostan catalinbostan

View GitHub Profile
@catalinbostan
catalinbostan / clear-net-ports.sh
Created September 8, 2017 11:10
Clears out port collisions for VMWare guests in Vagrant env.
#!/bin/bash
##
# Show the user what we're looking to remove from the network configs.
##
printf "\nWe've located the following entries matching the associated port argument. \n"
grep "add_nat_portfwd" /Library/Preferences/VMware\ Fusion/networking | grep $1
grep $1 /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf
##