How to Drop traffic from guest VM using COM

Discussion about using the VirtualBox API, Tutorials, Samples.

How to Drop traffic from guest VM using COM

Postby ahmed1 » 21. Oct 2017, 19:25

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,
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

Postby noteirak » 21. Oct 2017, 19:37

You can disconnect/connect NICs (like unplugging the cable) but you can't selectively drop traffic.
Hyperbox - Virtual Infrastructure Manager - https://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5198
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7

Re: How to Drop traffic from guest VM using COM

Postby ahmed1 » 21. Oct 2017, 20:04

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,
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

Postby noteirak » 21. Oct 2017, 21:08

I'm not aware of any way to do so at the API level.
Hyperbox - Virtual Infrastructure Manager - https://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5198
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7

Re: How to Drop traffic from guest VM using COM

Postby ahmed1 » 27. Oct 2017, 22:33

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

thanks
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

Postby noteirak » 27. Oct 2017, 22:48

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://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5198
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7


Return to The VirtualBox API

Who is online

Users browsing this forum: No registered users and 0 guests