From b1a421fa8e2cfd45057e69ee7f5c3db9a7f3d922 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Fri, 30 Oct 2026 17:43:53 +0100 Subject: ipsec: T9542: do not error on missing route table 220 in debug output "show vpn debug" ended with "Error: ipv4: FIB table does not exist" whenever strongSwan had not installed any route, as the kernel only creates table 220 with its first route. The section now lists the routes of table 220 when there are any and stays empty otherwise. --- src/op_mode/vpn_ipsec.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/op_mode/vpn_ipsec.py b/src/op_mode/vpn_ipsec.py index 3c812db7b..dae8f837f 100755 --- a/src/op_mode/vpn_ipsec.py +++ b/src/op_mode/vpn_ipsec.py @@ -68,7 +68,8 @@ def debug_peer(peer, tunnel): "ip address", "ip rule show", "ip route | head -100", - "ip route show table 220" + # charon creates table 220 only with its first route + "ip route show table all | grep -w 'table 220'" ] for debug_cmd in debug_commands: # call() output bypasses our buffer, flush to keep the order -- cgit v1.2.3