local block_file block_file="$(ctx::block::path "${name}.block")" local blocks="" if [[ -f "$block_file" ]] && [[ -s "$block_file" ]]; then while IFS=" " read -r client_ip target port proto; do if [[ -z "$target" ]]; then blocks+=" all traffic blocked\n" else local rule=" ${target}" [[ -n "$port" ]] && rule+=":${port}/${proto}" blocks+="${rule}\n" fi done < "$block_file" fi