How to tunnel all traffic of a QEMU VM through a Proxy?
I'm trying to make a VM in which all its traffic goes through a proxy (like a tor proxy or any other ip/port proxy). I've found this article showing that it is possible in command line, however I'm using the GUI manager (virtual manager) and didn't found in anywhere a place to setup a proxy for the VM. So I'm asking if is it possible to make through the GUI?
I want to make it on the host machine so it doesn't happen to make any connection by mistake inside the virtual machine to outside using my default connection.
Top Answer/Comment:
The answer to this question is similar to tap + tun2socks for making a QEMU virtual machine go through a proxy
You just need to replace this step in the answer linked above:
Use the following two parameters to configure the network in the qemu virtual machine startup command:
-netdev tap,id=net0,ifname=tap0,script=no,downscript=no
-device virtio-net,netdev=net0
Replace it with:
Click Virtual Hardware Details -> Virtual Network Interface -> XML
Make the following changes:
<interface type="ethernet">
<mac address="52:54:00:02:4e:80"/>
<target dev="tap0" managed="no"/>
<model type="virtio-net-pci"/>
<alias name="net0"/>
<address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
</interface>
The rest of the steps stay the same.
상단 광고의 [X] 버튼을 누르면 내용이 보입니다