I need to filter both outcoming and incoming traffic of the guest system on Qemu (Linux). The host system is Linux too. I think iptables is a good tool, but I don't know how to use it here. What command line parameters should I use to run Qemu for correct network interface configuring? How should I use iptables? Is iptables the best tool?
I need just simple filtering: dropping any packets for example.
Thank You!