0

I have a Linux Mint Virtual Machine which I use quite a lot with my Windows host. I have lots of Software installed there (mostly with web GUI so I can access them from host easily).

So I am wondering instead of securing individual applications (by adding username/password, limit incoming request from host IP), can I just add a firewall which will limit incoming requests only from host IP? Will it be safe?

1

Using either the Windows (host) firewall or the guest OS firewall to do that is not recommended.

All VM tools already provide that kind of control. Have a look at the different types of networking available. You want a host-only network. By design that can only be used between the host and the VM, it is never accessible outside the host.

I should also have said that if you also need some services to reach outside the host, you can have both by setting up 2 networks and binding your web services to the host-only network.

8
  • 1
    I think OP was asking about a client OS firewall. Jan 23 '16 at 17:57
  • Good point! Though of course, the answer is still the same. Wrong tool and not needed. Adds too much complexity when all you need to do is change the networking. I should also have said that if you also need some services to reach outside the host, you can have both by setting up 2 networks and binding your web services to the host-only network. Jan 23 '16 at 17:59
  • You can edit your answer to include that. Jan 23 '16 at 18:00
  • @NeilSmithline Yes! I was indeed talking about the guest OS firewall.
    – VarunAgw
    Jan 23 '16 at 18:34
  • Updated slightly to include that, sorry for not reading the question properly. The answer is the same thankfully :) Jan 23 '16 at 18:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.