no message
parent
3e7c254037
commit
33261c140e
|
@ -338,8 +338,8 @@ function enable_filtering {
|
|||
[[ -z ${state} ]] && state="-"
|
||||
([[ ${IP_VERSION} == "ipv4" ]] && [[ ${Enablev4ConnectionTracking} == "yes" ]] && [[ ! ${state} == "-" ]]) && conntrack_state="${M_STATE} ${C_STATE} ${state}"
|
||||
([[ ${IP_VERSION} == "ipv6" ]] && [[ ${Enablev6ConnectionTracking} == "yes" ]] && [[ ! ${state} == "-" ]]) && conntrack_state="${M_STATE} ${C_STATE} ${state}"
|
||||
[[ ${dstport} != "-" ]] && dstport="--dport ${dstport}"
|
||||
[[ ${srcport} != "-" ]] && srcport="--sport ${srcport}"
|
||||
#[[ ${dstport} != "-" ]] && dstport="--dport ${dstport}"
|
||||
#[[ ${srcport} != "-" ]] && srcport="--sport ${srcport}"
|
||||
[[ ${srcaddress} != "-" ]] && srcaddress="-s ${srcaddress}"
|
||||
[[ ${dstaddress} != "-" ]] && dstaddress="-d ${dstaddress}"
|
||||
([[ ${interface} != "-" ]] && [[ ${direction} == "IN" ]]) && interface="-i ${interface}"
|
||||
|
|
Loading…
Reference in New Issue