mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-09 01:04:06 +01:00
Modify kernel version patch
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2465 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
46210cd6bb
commit
5de0a44eea
@ -560,6 +560,15 @@ read_yesno_with_timeout() {
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# Print a heading with leading and trailing black lines
|
||||
#
|
||||
heading() {
|
||||
echo
|
||||
echo "$@"
|
||||
echo
|
||||
}
|
||||
|
||||
#
|
||||
# Execution begins here
|
||||
#
|
||||
@ -944,40 +953,28 @@ case "$1" in
|
||||
$IPTABLES -L $IPT_OPTIONS
|
||||
echo
|
||||
packet_log 20
|
||||
echo
|
||||
echo "NAT Table"
|
||||
echo
|
||||
|
||||
heading "NAT Table"
|
||||
$IPTABLES -t nat -L $IPT_OPTIONS
|
||||
echo
|
||||
echo "Mangle Table"
|
||||
echo
|
||||
|
||||
heading "Mangle Table"
|
||||
$IPTABLES -t mangle -L $IPT_OPTIONS
|
||||
echo
|
||||
cat /proc/net/ip_conntrack
|
||||
echo
|
||||
echo "Kernel"
|
||||
echo
|
||||
cat /proc/version
|
||||
echo
|
||||
echo "IP Configuration"
|
||||
echo
|
||||
|
||||
heading "IP Configuration"
|
||||
ip addr ls
|
||||
echo
|
||||
echo "IP Stats"
|
||||
echo
|
||||
|
||||
heading "IP Stats"
|
||||
ip -stat link ls
|
||||
|
||||
if qt mywhich brctl; then
|
||||
echo
|
||||
echo "Bridges"
|
||||
echo
|
||||
heading "Bridges"
|
||||
brctl show
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "/proc"
|
||||
echo
|
||||
|
||||
heading "/proc"
|
||||
show_proc /proc/version
|
||||
show_proc /proc/sys/net/ipv4/ip_forward
|
||||
show_proc /proc/sys/net/ipv4/icmp_echo_ignore_all
|
||||
|
||||
@ -988,34 +985,24 @@ case "$1" in
|
||||
done
|
||||
|
||||
if [ -n "$(ip rule ls)" ]; then
|
||||
echo
|
||||
echo "Routing Rules"
|
||||
echo
|
||||
heading "Routing Rules"
|
||||
ip rule ls
|
||||
ip rule ls | while read rule; do
|
||||
echo ${rule##* }
|
||||
done | sort -u | while read table; do
|
||||
echo
|
||||
echo "Table $table:"
|
||||
echo
|
||||
heading "Table $table:"
|
||||
ip route ls table $table
|
||||
done
|
||||
else
|
||||
echo
|
||||
echo "Routing Table"
|
||||
echo
|
||||
heading "Routing Table"
|
||||
ip route ls
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "ARP"
|
||||
echo
|
||||
heading "ARP"
|
||||
arp -na
|
||||
|
||||
if qt mywhich lsmod; then
|
||||
echo
|
||||
echo "Modules"
|
||||
echo
|
||||
heading "Modules"
|
||||
lsmod | grep -E '^ip_|^ipt_|^iptable_'
|
||||
fi
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user