mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-09 01:04:06 +01:00
Correct status output with CONFIG_IP_ADVANCED_ROUTER=n
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2023 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
8912f5b528
commit
49224ad36f
@ -10,6 +10,8 @@ Changes in 2.2.3
|
||||
|
||||
5) Add QUEUE policy.
|
||||
|
||||
6) Fix routing output when advanced routing support not in kernel.
|
||||
|
||||
Changes in 2.2.2
|
||||
|
||||
1) The 'check' command disclaimer is toned down further and only
|
||||
|
@ -7,6 +7,10 @@ Problems corrected in version 2.2.3
|
||||
<interface>:!<network> in the HOSTS column then startup errors occur
|
||||
on "shorewall [re]start".
|
||||
|
||||
2) Previously, if "shorewall status" was run on a system whose kernel
|
||||
lacked advanced routing support (CONFIG_IP_ADVANCED_ROUTER), then
|
||||
no routing information was displayed.
|
||||
|
||||
-----------------------------------------------------------------------
|
||||
New Features in version 2.2.3
|
||||
|
||||
|
@ -1014,17 +1014,24 @@ case "$1" in
|
||||
done
|
||||
done
|
||||
|
||||
echo
|
||||
echo "Routing Rules"
|
||||
echo
|
||||
ip rule ls
|
||||
ip rule ls | while read rule; do
|
||||
table=${rule##* }
|
||||
if [ -n "$(ip rule ls)" ]; then
|
||||
echo
|
||||
echo "Table $table:"
|
||||
echo "Routing Rules"
|
||||
echo
|
||||
ip route ls table $table
|
||||
done
|
||||
ip rule ls
|
||||
ip rule ls | while read rule; do
|
||||
table=${rule##* }
|
||||
echo
|
||||
echo "Table $table:"
|
||||
echo
|
||||
ip route ls table $table
|
||||
done
|
||||
else
|
||||
echo
|
||||
echo "Routing Table"
|
||||
echo
|
||||
ip route ls
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "ARP"
|
||||
|
Loading…
Reference in New Issue
Block a user