mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
net: use newer iptables syntax
iptables-1.4.18 removed the long deprecated "state" match. Use "conntrack" instead in forwarding rules. Fixes openSUSE bug https://bugzilla.novell.com/811251 #811251.
This commit is contained in:
parent
d0cc811ed0
commit
e669a65903
@ -480,8 +480,8 @@ iptablesForwardAllowRelatedIn(iptablesContext *ctx,
|
|||||||
"--destination", networkstr,
|
"--destination", networkstr,
|
||||||
"--in-interface", physdev,
|
"--in-interface", physdev,
|
||||||
"--out-interface", iface,
|
"--out-interface", iface,
|
||||||
"--match", "state",
|
"--match", "conntrack",
|
||||||
"--state", "ESTABLISHED,RELATED",
|
"--ctstate", "ESTABLISHED,RELATED",
|
||||||
"--jump", "ACCEPT",
|
"--jump", "ACCEPT",
|
||||||
NULL);
|
NULL);
|
||||||
} else {
|
} else {
|
||||||
@ -490,8 +490,8 @@ iptablesForwardAllowRelatedIn(iptablesContext *ctx,
|
|||||||
action,
|
action,
|
||||||
"--destination", networkstr,
|
"--destination", networkstr,
|
||||||
"--out-interface", iface,
|
"--out-interface", iface,
|
||||||
"--match", "state",
|
"--match", "conntrack",
|
||||||
"--state", "ESTABLISHED,RELATED",
|
"--ctstate", "ESTABLISHED,RELATED",
|
||||||
"--jump", "ACCEPT",
|
"--jump", "ACCEPT",
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user