-
-
Notifications
You must be signed in to change notification settings - Fork 641
Add ability for public/bridged networking #185
Comments
This is definitely a feature I'll consider adding—networking configuration is not quite flexible with Drupal VM, but there's really no reason for that other than I almost never use non-private networking in my normal work. See related: #176 |
I started toying with how to make this a configuration option. One thing I've run into is when setting up a public_network then NFS synced folder fails. Here's the error message I get when doing a vagrant up. "NFS requires a host-only network to be created. |
@caschbre can you add an additional network interface? If you just have one interface and switch it from private to public, then it would cause issues with NFS. But if you add another interface for public networking, it should be fine. |
@geerlingguy I'm learning this stuff as I go. :) Can you elaborate on what that would entail? Is that something I do in the Vagrantfile? |
You would need to add an additional network configuration inside the Vagrantfile, like:
And put that right before the line that reads You can also specify a particular network interface or IP address for one of your host machine's network interfaces (e.g. bridge to WiFi, or a particular network adapter). See https://docs.vagrantup.com/v2/networking/public_network.html |
I'm thinking the simplest way to make this a configurable option in This box (as is the case with most Vagrant configurations) is configured first for local development convenience, then for security, so keep that in mind :) |
Ok, I think I "may" have this figured out. I was doing an IF/ELSE for the public or private network. But if I add the public_network as a line after the public network is created then it appears to work. Is it a correct assumption that it's creating two network connections then? And I completely agree on the security. It should be private by default. I'm on my home network behind a firewall on my own server. I'll see if I can get a pull request created for this.... at least as a start. |
👍 |
It would be great if there was a configuration option in config.yml to allow for public/bridged networking. I often need to connect directly to my guest from a device other than the host for a variety of reasons, including testing from a mobile device. I am also starting to play with setting up my dev VMs on an ubuntu server and a bridged network would make it easier to connect from my laptop/desktop.
The text was updated successfully, but these errors were encountered: