How to Drop traffic from guest VM using COM

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
ahmed1
Posts: 5
Joined: 21. Oct 2017, 18:57
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: windows 2008

How to Drop traffic from guest VM using COM

Post by ahmed1 »

Hi,
I am using virtual box 5.1.26 my host is windows 10. I am trying to drop guest VMs traffic after inspecting their packets. is there a way to do so using COM? i am using C#.

thanks
Ahmed,
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: How to Drop traffic from guest VM using COM

Post by noteirak »

You can disconnect/connect NICs (like unplugging the cable) but you can't selectively drop traffic.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
ahmed1
Posts: 5
Joined: 21. Oct 2017, 18:57
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: windows 2008

Re: How to Drop traffic from guest VM using COM

Post by ahmed1 »

Thanks a lot for your prompt response,
Is there any way to continuously inspect the traffic while it is being sent(online) not after reading the trace file.

thanks
Ahmed,
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: How to Drop traffic from guest VM using COM

Post by noteirak »

I'm not aware of any way to do so at the API level.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
ahmed1
Posts: 5
Joined: 21. Oct 2017, 18:57
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: windows 2008

Re: How to Drop traffic from guest VM using COM

Post by ahmed1 »

thanks a lot
do you have any idea about where I can find such info.

thanks
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: How to Drop traffic from guest VM using COM

Post by noteirak »

Asking the vbox developers directly on the dev mailing list for any non-documented features, but I wouldn't hold by breath.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply