Skip to content

Tunnel through VirtualBox Shared Folder

Fidel Perez-Smith edited this page Nov 9, 2025 · 1 revision

Summary

VirtualBox allows Guest VMs to access to the Host's files using Shared Folders. By using that share for a File Tunnel, you can route traffic between the local and remotes hosts.


On the VM host

ft.exe --write "C:\Temp\1.dat" --read "C:\Temp\2.dat" -L 5000:192.168.1.50:8888

Edit the VM's settings to share the folder:

image

Run the VM.


In the VM Guest (Windows)

Ensure Guest Additions are installed (Devices -> Install Guest Additions)

ft.exe -r "\\vboxsvr\c_drive\Temp\1.dat" -w "\\vboxsvr\c_drive\Temp\2.dat"



In the VM Guest (Linux)

Ensure Guest Additions are installed (Devices -> Install Guest Additions)

mkdir /mnt/c

mount -t vboxsf C_DRIVE /mnt/c

./ft -r "/mnt/c/Temp/1.dat" -w "/mnt/c/Temp/2.dat"


Now on Host A, you can connect to 127.0.0.1:5000 and it will be forwarded to 192.168.1.50:8888

Clone this wiki locally