mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-18 23:57:14 +02: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.
|
5) Add QUEUE policy.
|
||||||
|
|
||||||
|
6) Fix routing output when advanced routing support not in kernel.
|
||||||
|
|
||||||
Changes in 2.2.2
|
Changes in 2.2.2
|
||||||
|
|
||||||
1) The 'check' command disclaimer is toned down further and only
|
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
|
<interface>:!<network> in the HOSTS column then startup errors occur
|
||||||
on "shorewall [re]start".
|
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
|
New Features in version 2.2.3
|
||||||
|
|
||||||
|
@ -1014,17 +1014,24 @@ case "$1" in
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
echo
|
if [ -n "$(ip rule ls)" ]; then
|
||||||
echo "Routing Rules"
|
|
||||||
echo
|
|
||||||
ip rule ls
|
|
||||||
ip rule ls | while read rule; do
|
|
||||||
table=${rule##* }
|
|
||||||
echo
|
echo
|
||||||
echo "Table $table:"
|
echo "Routing Rules"
|
||||||
echo
|
echo
|
||||||
ip route ls table $table
|
ip rule ls
|
||||||
done
|
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
|
||||||
echo "ARP"
|
echo "ARP"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user