mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
Fix removal of iptable forwarding rules
This commit is contained in:
parent
3e1aeff4c5
commit
42aec3d000
@ -1,3 +1,7 @@
|
|||||||
|
Thu May 22 11:49:29 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/qemu_driver.c: Fix removal of iptables forwarding rules
|
||||||
|
|
||||||
Thu May 22 11:38:29 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
Thu May 22 11:38:29 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* configure.in: Remove some duplicated error messages
|
* configure.in: Remove some duplicated error messages
|
||||||
|
@ -1213,12 +1213,20 @@ qemudRemoveIptablesRules(struct qemud_driver *driver,
|
|||||||
struct qemud_network *network) {
|
struct qemud_network *network) {
|
||||||
if (network->def->forward) {
|
if (network->def->forward) {
|
||||||
iptablesRemoveForwardMasquerade(driver->iptables,
|
iptablesRemoveForwardMasquerade(driver->iptables,
|
||||||
network->def->network,
|
network->def->network,
|
||||||
network->def->forwardDev);
|
network->def->forwardDev);
|
||||||
iptablesRemoveForwardAllowIn(driver->iptables,
|
|
||||||
network->def->network,
|
if (network->def->forwardMode == QEMUD_NET_FORWARD_NAT)
|
||||||
network->bridge,
|
iptablesRemoveForwardAllowRelatedIn(driver->iptables,
|
||||||
network->def->forwardDev);
|
network->def->network,
|
||||||
|
network->bridge,
|
||||||
|
network->def->forwardDev);
|
||||||
|
else if (network->def->forwardMode == QEMUD_NET_FORWARD_ROUTE)
|
||||||
|
iptablesRemoveForwardAllowIn(driver->iptables,
|
||||||
|
network->def->network,
|
||||||
|
network->bridge,
|
||||||
|
network->def->forwardDev);
|
||||||
|
|
||||||
iptablesRemoveForwardAllowOut(driver->iptables,
|
iptablesRemoveForwardAllowOut(driver->iptables,
|
||||||
network->def->network,
|
network->def->network,
|
||||||
network->bridge,
|
network->bridge,
|
||||||
|
Loading…
Reference in New Issue
Block a user