G
G
gt4e32016-07-19 00:01:12
virtual box
gt4e3, 2016-07-19 00:01:12

How to prevent a VirtualBox machine from visiting any IPs other than those allowed?

Good afternoon.

We have VirtualBox where we will need to deploy a VPN on a Windows machine. As you know, if the connection is broken, then my IP leaks. In Ubuntu (from where I start the machine) I did it through IPtables, but in the Windows system there is no such thing, there is no way to do it for sure.

There are two ways, and in both cases your help is needed:
1. Make the restriction through the virtualbox settings
2. In the system itself, it is GUARANTEED to cut off all connections, except for the VPN server.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mureevms, 2016-07-19
@mureevms

In the system itself, it is GUARANTEED to cut off all connections, except for the VPN server.

1. In the network settings, remove the default gateway
2. Add a route manually only to the machine that is the VPN server.

L
Lindon_cano, 2016-07-19
@Lindon_cano

One of my recent answers contains an example /etc/network/interfaces for the machine to only be able to walk through the VPN. See the history of my answers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question