-
Notifications
You must be signed in to change notification settings - Fork 91
Tunnel through VirtualBox Shared Folder
Fidel Perez-Smith edited this page Nov 9, 2025
·
1 revision
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.
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:
Run the VM.
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"
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