mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 06:10:42 +01:00
Avoid panic among the user base by suppressing missing table error messages
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
b22b279bd1
commit
508475d80b
@ -794,14 +794,20 @@ dump_command() {
|
||||
heading "Log ($LOGFILE)"
|
||||
packet_log 20
|
||||
|
||||
if qt $IPTABLES -t nat -L -n; then
|
||||
heading "NAT Table"
|
||||
$IPTABLES -t nat -L $g_ipt_options
|
||||
fi
|
||||
|
||||
if qt $IPTABLES -t mangle -L -n; then
|
||||
heading "Mangle Table"
|
||||
$IPTABLES -t mangle -L $g_ipt_options
|
||||
fi
|
||||
|
||||
if qt $IPTABLES -t raw -L -n; then
|
||||
heading "Raw Table"
|
||||
$IPTABLES -t raw -L $g_ipt_options
|
||||
fi
|
||||
|
||||
local count=$(cat /proc/sys/net/netfilter/nf_conntrack_count)
|
||||
local max=$(cat /proc/sys/net/netfilter/nf_conntrack_max)
|
||||
|
@ -675,11 +675,15 @@ dump_command() {
|
||||
heading "Log ($LOGFILE)"
|
||||
packet_log 20
|
||||
|
||||
if qt $IP6TABLES -t mangle -L -n; then
|
||||
heading "Mangle Table"
|
||||
$IP6TABLES -t mangle -L $g_ipt_options
|
||||
fi
|
||||
|
||||
if qt $IP6TABLES -t raw -L -n; then
|
||||
heading "Raw Table"
|
||||
$IP6TABLES -t raw -L $g_ipt_options
|
||||
fi
|
||||
|
||||
local count=$(cat /proc/sys/net/netfilter/nf_conntrack_count)
|
||||
local max=$(cat /proc/sys/net/netfilter/nf_conntrack_max)
|
||||
|
Loading…
Reference in New Issue
Block a user