I'm trying to apply a nwfilter rule for two networks on the same guest interface, like so:

~ # virsh nwfilter-dumpxml 1081532-private-both
<filter name='1081532-private-both' chain='root'>
  <rule action='accept' direction='in' priority='500'>
    <ip srcipaddr='' srcipmask='24'/>
  <rule action='accept' direction='in' priority='600'>
    <ip srcipaddr='' srcipmask='24'/>
  <rule action='drop' direction='in' priority='1000'/>

Within the guest, the IPs are both setup on one interface, with the IP for second network ( configured as an alias, like so:

3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:00:0a:d0:4e:f3 brd ff:ff:ff:ff:ff:ff
    inet brd scope global eth1
       valid_lft forever preferred_lft forever
    inet brd scope global eth1:0
       valid_lft forever preferred_lft forever
    inet6 fe80::200:aff:fed0:4ef3/64 scope link 
       valid_lft forever preferred_lft forever

The problem I'm running into is that after applying the nwfilter, I cannot reach the second network, only the first. Is this an issue with both IPs being on the same interface? The machine I'm attempting to reach has the same exact configuration -- i.e. it has an IP on the same network for both networks.

Thanks in advance for any advice that can be given.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.