From 643714799e648fa3afcfb0e81cb9340de24f4fd8 Mon Sep 17 00:00:00 2001 From: "Matthew R. Kasun" Date: Wed, 5 Oct 2022 13:30:27 -0400 Subject: [PATCH 1/2] ipv6 ingress not supported on server --- logic/gateway.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/logic/gateway.go b/logic/gateway.go index c9d66697..f69789f9 100644 --- a/logic/gateway.go +++ b/logic/gateway.go @@ -199,6 +199,10 @@ func CreateIngressGateway(netid string, nodeid string, failover bool) (models.No node.IngressGatewayRange = network.AddressRange node.IngressGatewayRange6 = network.AddressRange6 ipv4, ipv6 := getNetworkProtocols(cidrs) + //no support for ipv6 and ip6tables in netmaker container + if node.IsServer == "yes" { + ipv6 = false + } logger.Log(3, "creating ingress gateway firewall in use is '", node.FirewallInUse, "'") switch node.FirewallInUse { case models.FIREWALL_NFTABLES: From fa2ad00de9eb0302fcc02d5eb5c23c09a61306fd Mon Sep 17 00:00:00 2001 From: "Matthew R. Kasun" Date: Wed, 5 Oct 2022 13:49:15 -0400 Subject: [PATCH 2/2] add check to create egress as well --- logic/gateway.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/logic/gateway.go b/logic/gateway.go index f69789f9..19014183 100644 --- a/logic/gateway.go +++ b/logic/gateway.go @@ -47,6 +47,10 @@ func CreateEgressGateway(gateway models.EgressGatewayRequest) (models.Node, erro postUpCmd := "" postDownCmd := "" ipv4, ipv6 := getNetworkProtocols(gateway.Ranges) + //no support for ipv6 and ip6tables in netmaker container + if node.IsServer == "yes" { + ipv6 = false + } logger.Log(3, "creating egress gateway firewall in use is '", node.FirewallInUse, "'") if node.OS == "linux" { switch node.FirewallInUse {