Answer the question
In order to leave comments, you need to log in
How to simulate internet for virtual machine?
Greetings.
There is a local network (192.168.0.0/22), it includes a server connected to the Internet. A number of services "looking" into the external network are configured on the server.
You need to test services from a computer on the local network, simulating a connection from outside.
I set up a virtual machine, set up a virtual network for it (10.10.10.0/24) and NAT issued the Internet. But now, in addition to the Internet, the virtual machine also has access to the local network (192.168.0.0/22), which is not acceptable for testing (for example, when checking a VPN tunnel).
Actually, the question is how to give the VM access to the Internet and not give access to the local network, thereby simulating a connection from outside.
Thank you.
UPD:
Host system - Debian Sid (64), configuring virtual machines using Virt-Manager, virtual machine system - Windows XP (32).
Answer the question
In order to leave comments, you need to log in
Display the bridge interface to which the virtual machine is attached to a separate VLAN. Accordingly, tagged traffic will be separated from the main one.
The structure is something like this: VM → bridge_vlan101 ← ethX.vlan101 ← ethX
Configuring bridges
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question