Skip to content

Commit 26a436f

Browse files
committed
Fixes for OpenWRT 18.06
1 parent d5a230a commit 26a436f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

openwrt/firehol/files/firehol-defaults.conf

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# --- BEGIN OF FIREHOL DEFAULTS ---
22
#
3-
# If you install iprange, comment the next line in, so firehol can use it:
4-
# IPRANGE_CMD=/usr/bin/iprange
53

64
# These are the defaults for FireHOL.
75
# You can set everything system-wide here, or set any or all
@@ -282,5 +280,12 @@ PRIVATE_IPV6="FC00::/7 FE80::/10"
282280
MULTICAST_IPV4="224.0.0.0/4"
283281
MULTICAST_IPV6="FF00::/16"
284282

285-
MODPROBE_CMD=/usr/sbin/insmod
283+
IP_CMD=/sbin/ip
284+
MODPROBE_CMD=/sbin/modprobe
285+
286+
# Have firehol use iprange if we installed it:
287+
if [ -x /usr/bin/iprange ]
288+
then
289+
IPRANGE_CMD=/usr/bin/iprange
290+
fi
286291
# --- END OF FIREHOL DEFAULTS ---

0 commit comments

Comments
 (0)