Re: Best practice for custom iptables rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il 13/01/14 04:06, Gao Yongwei ha scritto:

how about this daemon hook script?

#!/bin/bash
#
insert_rule() {
     sleep 2
     iptables -t nat -D CUSTOM_RULE
     iptables -t nat -I CUSTOM_RULE
}
[...]

Thanks, I already tried inserting a delay with "sleep" but it didn't change anything, as the hook script is not processed in parallel with other operations: libvirt waits until the hook script has been completed, before proceeding with the creation of its own iptables rules.

--
01

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux