From 5b08cef72c4a8ad1daa7a7aad168863752d0e738 Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Thu, 2 Jan 2025 18:15:07 +0000 Subject: [PATCH] improve log dumper get more networking information usefult to troubleshoot network issues. --- pkg/dump/dumper.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkg/dump/dumper.go b/pkg/dump/dumper.go index 138642acffdfe..3c3aee7d6e2aa 100644 --- a/pkg/dump/dumper.go +++ b/pkg/dump/dumper.go @@ -345,7 +345,19 @@ func (n *logDumperNode) dump(ctx context.Context) []error { if err := n.shellToFile(ctx, "sudo iptables -t filter --list-rules", filepath.Join(n.dir, "iptables-filter.log")); err != nil { errors = append(errors, err) } - if err := n.shellToFile(ctx, "ip route", filepath.Join(n.dir, "ip-routes.log")); err != nil { + if err := n.shellToFile(ctx, "sudo nft list ruleset", filepath.Join(n.dir, "nftables-ruleset.log")); err != nil { + errors = append(errors, err) + } + if err := n.shellToFile(ctx, "ip route show table all", filepath.Join(n.dir, "ip-routes.log")); err != nil { + errors = append(errors, err) + } + if err := n.shellToFile(ctx, "ip rule list", filepath.Join(n.dir, "ip-rules.log")); err != nil { + errors = append(errors, err) + } + if err := n.shellToFile(ctx, "ip -s link", filepath.Join(n.dir, "ip-link.log")); err != nil { + errors = append(errors, err) + } + if err := n.shellToFile(ctx, "ss -s", filepath.Join(n.dir, "netstat.log")); err != nil { errors = append(errors, err) }