Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

My device, which is a Linux based IP in-liner is transparent to the network peripherals, that is, no IP address assigned to any of its interfaces.

For the sake of the conversation, let's use ADSL connection as an example, while the device is inspecting the bi-directional traffic, the network is behaving same as if device was not there, attached to the wire (see Physical setup at the attached diagram).

I wonder if I can enclosed that "device" within a Windows machine and have it operated virtually so it still seats inline between the ADSL router and the Windows netwroking interface by using virtual NICs, (or whatever their name is in windows), and inspecting the traffic, same as if it was on a separate physical device, the drawing under "Virtual Setup" in the attached diagram show what I am trying to achieve.

Reading a bit on the VirtualBox docs, seems like binding the right side is relatively simple, perhaps I should have one network adapter set as Bridge Networking and VirtualBox will connect it to the physical NIC on the host machine, and network packets are exchanged directly, circumventing the host operating system's network stack (WinXP in my case).

However, I have no idea how to achieve the left side of my diagram, which requires adding virtual NICs to windows and configure them correctly in a way to make that pipeline possible.

I would appreciate any help.

by the way, if that is not possible with VirtualBox but with other virtualization solution (e.g. VMWare), I would accept the other as well.

components setup diagram

share|improve this question

2 Answers 2

You can assign multiple virtual NICs to your appliance which are "matched" to either the same or separate physical NICs (depending on your physical network layout/configuration).

share|improve this answer
    
please elaborate, in my case, there is only one single physical NIC on the host (XP). How do I set the traffic is routed from virtual a (XP public IP) and the virtual b (left VNic of the linux guest)? –  Tzury Bar Yochay Jul 26 '10 at 4:06
    
Actually... Based upon your diagram "virtual b" (left side of the diagram) may wind up being two virtual NICs which are "machine"/"local" only to the hypervisor/host. So... The App and Linux networking will be via "machine"/"local" only virtual NICs - based upon your diagram. –  user48838 Jul 26 '10 at 6:09

bridged networking is easily done out of the box by libvirt/kvm, using a normal linux bridge interface attached to a physical NIC, and a TUN driver

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.