]> Git Repo - linux.git/commitdiff
netfilter: conntrack: Fix gre tunneling over ipv6
authorLudovic Senecaux <[email protected]>
Thu, 4 Mar 2021 09:10:50 +0000 (04:10 -0500)
committerPablo Neira Ayuso <[email protected]>
Wed, 17 Mar 2021 23:32:06 +0000 (00:32 +0100)
This fix permits gre connections to be tracked within ip6tables rules

Signed-off-by: Ludovic Senecaux <[email protected]>
Acked-by: Florian Westphal <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
net/netfilter/nf_conntrack_proto_gre.c

index 5b05487a60d21cc019d0e9709e0aff9b67bf586a..db11e403d81874e4eff320a604ed6f7a18231a8b 100644 (file)
@@ -218,9 +218,6 @@ int nf_conntrack_gre_packet(struct nf_conn *ct,
                            enum ip_conntrack_info ctinfo,
                            const struct nf_hook_state *state)
 {
-       if (state->pf != NFPROTO_IPV4)
-               return -NF_ACCEPT;
-
        if (!nf_ct_is_confirmed(ct)) {
                unsigned int *timeouts = nf_ct_timeout_lookup(ct);
 
This page took 0.059177 seconds and 4 git commands to generate.