VirtualBox

15 年 前 建立

14 年 前 更新

#6323 new defect

Can't get IP Forwarding to work with Host-only adapter

回報者: grattemedi 負責人:
元件: network/hostif 版本: VirtualBox 3.0.6
關鍵字: ip forwarding host only 副本:
Guest type: Linux Host type: Linux

描述

Hello,

I'm developing a software to demonstrate how Man in the middle works using arp cache poisoning. I can't get ip forwarding to work with Host-only adapter!

I was previously using a bridged network on tun/tap devices that I was creating myself. My network was designed like this :

[*]1 bridge br0

[*]2 tun/tap interfaces tap0 and tap1

Then I add the tap0 and tap1 to the bridge and configure my 2 VMs to use bridged network on tap0 and tap1. With this configuration, ip-forwading works perfectly fine! My bridge br0 can play the role of the attacker and forward ip between my first and second VM.

Now I'm trying to use host-only adapter, so that i could use later in my program the VBoxManage hostonly ipconfig command line. In the configuration I want to be, my 1st VM wants to talk to my 2nd VM but its arp cache has been corrupted so that packets are sent to the host (host-only interface). My problem is packets aren't forwarded by the host, and they normally should be.

I'm enabling ip forwarding on the host-only adapter (vboxnet0), as I was doing before with my bridge br0 :

echo 1 > /proc/sys/net/ipv4/conf/*/forwarding 
echo 0 > /proc/sys/net/ipv4/conf/*/send_redirects

Unfortunately, even though each machine in this configuration can communicate with one another, the vboxnet0 interface doesn't forward ip packets. Shouldn't host only interface behave like a normal networking interface?

Thank you,

Laurent Sebag

更動歷史 (1)

comment:1 14 年 前Frank Mehnert 編輯

元件: networknetwork/hostif
注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette