]> git.ipfire.org Git - thirdparty/libvirt.git/commit
examples: Add clean-traffic-gateway into nwfilters
authorAles Musil <amusil@redhat.com>
Wed, 18 Jul 2018 08:33:03 +0000 (10:33 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 18 Jul 2018 12:03:47 +0000 (14:03 +0200)
commitac01fbc90b7eb4ccc7a6140d618d1a3859365155
tree0f7440d49db2dfc116849664b31f6518f8601bd8
parenta37d832c9179fa7fef2e54f596258fd4712146ab
examples: Add clean-traffic-gateway into nwfilters

The filter purpose is to simulate isolated private VLAN.

The behavior can be achieved by limiting network traffic
to traffic between VM and gateway. Because there is no
concept of the PVLAN in the linux bridge.

The filter also contains parts from clean-traffic
to prevent VM from spoofing its IP and MAC address.

To use this filter the user just needs to set
the GATEWAY_MAC variable to gateway MAC address.

Signed-off-by: Ales Musil <amusil@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
examples/xml/nwfilter/clean-traffic-gateway.xml [new file with mode: 0644]