1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-25 01:34:11 +03:00
libvirt/tests/nwfilterxml2firewalldata/iter1-linux.args
Daniel P. Berrangé 02b8045517 nwfilter: drop support for legacy iptables match syntax
Long ago we adapted to iptables changes by introducing support
for '-m conntrack':

  commit 06844ccbaa
  Author: Stefan Berger <stefanb@us.ibm.com>
  Date:   Tue Aug 6 20:30:46 2013 -0400

    nwfilter: Use -m conntrack rather than -m state

    Since iptables version 1.4.16 '-m state --state NEW' is converted to
    '-m conntrack --ctstate NEW'. Therefore, when encountering this or later
    versions of iptables use '-m conntrack --ctstate'.

Given our supported platform targets, we no longer need to
consider a version of iptables before 1.4.16, so can drop
support for the old syntax.

The test suite updates are triggered because that never
probed for the new syntax, and so unconditionally
generated the old syntax.

Reviewed-by: Laine Stump <laine@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-03-09 11:37:12 +00:00

100 lines
1.3 KiB
Plaintext

iptables \
-w \
-A FJ-vnet0 \
-p tcp \
--source 1.1.1.1 \
-m dscp \
--dscp 2 \
--sport 80 \
-m conntrack \
--ctstate NEW,ESTABLISHED \
-j RETURN
iptables \
-w \
-A FP-vnet0 \
-p tcp \
--destination 1.1.1.1 \
-m dscp \
--dscp 2 \
--dport 80 \
-m conntrack \
--ctstate ESTABLISHED \
-j ACCEPT
iptables \
-w \
-A HJ-vnet0 \
-p tcp \
--source 1.1.1.1 \
-m dscp \
--dscp 2 \
--sport 80 \
-m conntrack \
--ctstate NEW,ESTABLISHED \
-j RETURN
iptables \
-w \
-A FJ-vnet0 \
-p tcp \
--source 2.2.2.2 \
-m dscp \
--dscp 2 \
--sport 90 \
-m conntrack \
--ctstate NEW,ESTABLISHED \
-j RETURN
iptables \
-w \
-A FP-vnet0 \
-p tcp \
--destination 2.2.2.2 \
-m dscp \
--dscp 2 \
--dport 90 \
-m conntrack \
--ctstate ESTABLISHED \
-j ACCEPT
iptables \
-w \
-A HJ-vnet0 \
-p tcp \
--source 2.2.2.2 \
-m dscp \
--dscp 2 \
--sport 90 \
-m conntrack \
--ctstate NEW,ESTABLISHED \
-j RETURN
iptables \
-w \
-A FJ-vnet0 \
-p tcp \
--source 3.3.3.3 \
-m dscp \
--dscp 2 \
--sport 80 \
-m conntrack \
--ctstate NEW,ESTABLISHED \
-j RETURN
iptables \
-w \
-A FP-vnet0 \
-p tcp \
--destination 3.3.3.3 \
-m dscp \
--dscp 2 \
--dport 80 \
-m conntrack \
--ctstate ESTABLISHED \
-j ACCEPT
iptables \
-w \
-A HJ-vnet0 \
-p tcp \
--source 3.3.3.3 \
-m dscp \
--dscp 2 \
--sport 80 \
-m conntrack \
--ctstate NEW,ESTABLISHED \
-j RETURN