Skip to content

Instantly share code, notes, and snippets.

@immutef
Created October 17, 2013 16:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save immutef/7027945 to your computer and use it in GitHub Desktop.
Save immutef/7027945 to your computer and use it in GitHub Desktop.
MacOS, Vagrant, dnsmasq, ipfw
listen-address=127.0.0.1
# interface=lo
address=/dev/127.0.0.1
address=/local/127.0.0.1
no-dhcp-interface=no
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>fermio.ipfw</string>
<key>Program</key>
<string>/sbin/ipfw</string>
<key>ProgramArguments</key>
<array>
<string>/sbin/ipfw</string>
<string>-q</string>
<string>/etc/ipfw.conf</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
flush
add 100 fwd 127.0.0.1,8080 tcp from any to me 80
@immutef
Copy link
Author

immutef commented Oct 17, 2013

Setup dnsmasq and ipfw for local development (with Vagrant) on MacOS.

Test installation with:

$> nslookup example.dev
$> nslookup example.local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment