Skip to content

Instantly share code, notes, and snippets.

Adam Israel AdamIsrael

Block or report user

Report or block AdamIsrael

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
AdamIsrael /
Last active Aug 29, 2015
Vagrantfile to route network traffic w/o sshuttle

Juju Vagrant without sshuttle.

sshuttle allows traffic to be routed to the internal network ( used for the lxc containers inside a Juju Vagrant image. sshuttle does not work with OS X 10.10 (Yosemite). This alternate solution alters your local network routing rules in order to communicate directly with the virtual machine over its vboxnet0 bridge. It's also faster than using sshuttle, because it doesn't need to proxy over an SSH tunnel or teardown/reassemble the TCP packets.

This approach adds and removes the route when a virtual machine is brought up and taken down, and requires sudo at each step. Alternatively, you could add this route at boot or via login script.


You'll need to have the triggers plugin installed for this to work.


Keybase proof

I hereby claim:

  • I am adamisrael on github.
  • I am adamisrael ( on keybase.
  • I have a public key whose fingerprint is 349E 77EC BFC2 2615 EB55 ACD5 5E30 ADF7 9AA5 6F13

To claim this, I am signing this object:

You can’t perform that action at this time.