shihjay2 / nosh-in-a-box

NOSH in a Box is a self-contained virtual machine that deploys NOSH ChartingSystem, an EHR coded by a physician for physicians
26 stars 13 forks source link

Provision for allowing access outside of LAN #4

Closed shihjay2 closed 6 years ago

shihjay2 commented 7 years ago

From @rumsant on April 1, 2017 8:16

The recently added provision to allow access from outside of LAN does not work for me. Enabling it gives me a "route -n" readout that looks like the following: stockprovision

Using an alternate provision as follows does work: config.vm.network "public_network" config.vm.provision "shell", run: "always", inline: "route del default; route add default gw 192.168.1.1"

The "route -n" readout using this alternate provision looks like the following: workingprovision

As you can see there is a difference between the two, and even though I don't know what I'm doing, I'm assuming that the difference lies in the deletion of the default route prior to specifying the proper default gateway to use.

Copied from original issue: shihjay2/nosh2#44

shihjay2 commented 7 years ago

It sounds like issue #3 might be related to this if the new provision is set by deleting the default route. Can you confirm?