roles/common: minor change to firehol update script

They include bogons like 127.0.0.1 that should not be routed on the
public Internet, but this blocks local applications we proxy to.
This commit is contained in:
Alan Orth 2025-01-28 09:14:48 +03:00
parent bb14f05d2a
commit cb79f7ef70
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -28,11 +28,14 @@ if [[ -f "firehol_level1.netset" ]]; then
firehol_level1_ipv4_list_temp=$(mktemp)
firehol_level1_ipv4_set_temp=$(mktemp)
# Filter blank lines and comments
# Filter blank lines, comments, and bogons we use inside the LAN, DMZ, and
# for local services like systemd-resolved and others on localhost. Ideally
# these are blocked already at the WAN side by network administrators.
cat firehol_level1.netset \
| sed \
-e '/^$/d' \
-e '/^#.*/d' \
-e '/^127\.0\.0\.0\/8/d' \
> "$firehol_level1_ipv4_list_temp"
echo "Building firehol_level1-ipv4 set"