# Customization of libvirt Network Filters per Virtual Machine

**URL:** https://forum.opennebula.io/t/customization-of-libvirt-network-filters-per-virtual-machine/1586
**Category:** Product Support
**Created:** [December 14, 2015, 10:17am UTC](https://forum.opennebula.io/t/customization-of-libvirt-network-filters-per-virtual-machine/1586 "2015-12-14T10:17:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![loureiro](https://avatars.discourse-cdn.com/v4/letter/l/c0e974/32.png) [@loureiro](https://forum.opennebula.io/u/loureiro)
#### Post date: [December 14, 2015, 10:17am UTC](https://forum.opennebula.io/t/customization-of-libvirt-network-filters-per-virtual-machine/1586/1 "2015-12-14T10:17:39Z")

</div>

Hi:

In the deployment i have i am using 802.1Q VNETS. I need to deploy a Virtual Router ( i ma testing several solutions), but i have a general concern in all the cases:  
As OpenNebula default Netfilter is “Cleantraffic” avoinding IP Spoofng, MAC Spoofing, etc… I want to keep this clean an sane configuration for all the Virtual Machines, except for the instances for Virtual Router .  
If i keep “Clean Traffic” Netfilter, there is no possibility to assign to the Public interface a Virtual IP, as IP Soppfing filter will not allow traffic for this IP.

So, i am wondering how can i assign a customized Netfilter only for the instances of the Virtual Router. As i have several network (2 Public and 12 internal) i don’t know in advance the networks that i am going to use for the instance in Virtual Router: I don’t know in advance the NICs and so i cannot preassign in the template the rule per NIC…  
==\>Is there a way to automate this without preparing a template with all the possible NICs and then use in each instance some of them??

Thanks in advance  
Manolo
