Browse Source

Merge pull request #18058 from TDT-AG/pr/20220314-keepalived

keepalived: enable nftables filtering
lilik-openwrt-22.03
Florian Eckert 3 years ago
committed by GitHub
parent
commit
c789e3c9c4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions
  1. +9
    -0
      net/keepalived/Config.in
  2. +8
    -1
      net/keepalived/Makefile

+ 9
- 0
net/keepalived/Config.in View File

@ -71,6 +71,15 @@ config KEEPALIVED_IPTABLES
Builds support for using iptables/ipsets for filtering packets
to VIPs
config KEEPALIVED_NFTABLES
depends on KEEPALIVED_VRRP
bool
default y
prompt "Enable nftables for VIP filtering"
help
Builds support for using nftables for filtering packets
to VIPs
config KEEPALIVED_SNMP_VRRP
depends on KEEPALIVED_VRRP
bool


+ 8
- 1
net/keepalived/Makefile View File

@ -22,6 +22,7 @@ PKG_MAINTAINER:=Ben Kelly <ben@benjii.net> \
Florian Eckert <fe@dev.tdt.de>
PKG_CONFIG_DEPENDS += \
KEEPALIVED_NFTABLES \
KEEPALIVED_VRRP \
KEEPALIVED_LVS \
KEEPALIVED_IPTABLES \
@ -62,6 +63,7 @@ define Package/keepalived
+libnl-genl \
+libmagic \
+libkmod \
+KEEPALIVED_NFTABLES:libnftnl \
+KEEPALIVED_VRRP:kmod-macvlan \
+KEEPALIVED_VRRP:libnl-route \
+KEEPALIVED_VRRP:libnfnetlink \
@ -87,7 +89,6 @@ endef
CONFIGURE_ARGS+= \
--with-init=SYSV \
--disable-nftables \
--disable-track-process \
--runstatedir="/var/run"
@ -113,6 +114,12 @@ endif
ifeq ($(CONFIG_KEEPALIVED_VRRP),y)
ifeq ($(CONFIG_KEEPALIVED_NFTABLES),)
CONFIGURE_ARGS += \
--disable-nftables
endif
ifeq ($(CONFIG_KEEPALIVED_IPTABLES),)
CONFIGURE_ARGS += \
--disable-iptables


Loading…
Cancel
Save