mirror of
https://github.com/hardenedlinux/harbian-audit.git
synced 2025-07-31 01:24:58 +02:00
Fix a bug: 7.7.5.3 for ip6tables.
This commit is contained in:
parent
02a9a64fc0
commit
16e1eeb5bf
@ -39,7 +39,7 @@ audit () {
|
|||||||
if [ "$PROTO_TYPE" == 'udp6' ]; then
|
if [ "$PROTO_TYPE" == 'udp6' ]; then
|
||||||
PROTO_TYPE="udp"
|
PROTO_TYPE="udp"
|
||||||
fi
|
fi
|
||||||
LISTEN_PORT=$(echo ${LISTENING} | awk '{print $4}' | awk -F: '{print $4}')
|
LISTEN_PORT=$(echo ${LISTENING} | awk '{print $4}' | awk -F: '{print $NF}')
|
||||||
if [ $($IPS6 -S | grep "^\-A INPUT \-p $PROTO_TYPE" | grep -c "\-\-dport $LISTEN_PORT \-m state \-\-state NEW \-j ACCEPT") -ge 1 ]; then
|
if [ $($IPS6 -S | grep "^\-A INPUT \-p $PROTO_TYPE" | grep -c "\-\-dport $LISTEN_PORT \-m state \-\-state NEW \-j ACCEPT") -ge 1 ]; then
|
||||||
info "Service: protocol $PROTO_TYPE listening port $LISTEN_PORT was set ipv6 firewall rules."
|
info "Service: protocol $PROTO_TYPE listening port $LISTEN_PORT was set ipv6 firewall rules."
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user