diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index 0133e0c76..8d707c27d 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -638,7 +638,7 @@ show_routing() { ip -$g_family rule list | find_tables | sort -u | while read table; do heading "Table $table:" if [ $g_family -eq 6 ]; then - ip -$g_family -o route list table $table | grep -vF cache | sort_routes + ip -6 -o route list table $table | grep -vF cache | sort_routes else ip -4 -o route list table $table | sort_routes fi @@ -651,7 +651,7 @@ show_routing() { else heading "Routing Table" if [ $g_family -eq 6 ]; then - ip -$g_family -o route list | grep -vF cache | sort_routes + ip -6 -o route list | grep -vF cache | sort_routes else ip -4 -o route list table $table | sort_routes fi