From 7266ca8f226d23b4e07a50f170d566a3b1ecb925 Mon Sep 17 00:00:00 2001 From: Paulo Nascimento Date: Sat, 20 Mar 2021 17:51:00 -0300 Subject: [PATCH] Only ipv4 --- pkg/mesh/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mesh/routes.go b/pkg/mesh/routes.go index b7d0c7d..db199d0 100644 --- a/pkg/mesh/routes.go +++ b/pkg/mesh/routes.go @@ -242,7 +242,7 @@ func (t *Topology) Rules(cni bool, logger log.Logger) []iptables.Rule { level.Debug(logger).Log("msg", "Applying Firewall Rules...", "IP len", len(aip.IP), "AIP", aip, "Protocol", protocolName) - rules = append(rules, iptables.NewRule(proto, "nat", "KILO-NAT", "-d", aip.String(), "-m", "comment", "--comment", "Kilo: do not NAT packets destined for known IPs", "-j", "RETURN")) + rules = append(rules, iptables.NewRule(iptables.ProtocolIPv4, "nat", "KILO-NAT", "-d", aip.String(), "-m", "comment", "--comment", "Kilo: do not NAT packets destined for known IPs", "-j", "RETURN")) level.Debug(logger).Log("msg", "Firewall Rules applied.", "AIP", aip, "Protocol", proto) }