Skip to content

Commit

Permalink
policyrouting: add list for Interfaces to ignore
Browse files Browse the repository at this point in the history
* import freifunk/openwrt-packages#53
* add a UCI-list of interfaces to not act on
  • Loading branch information
SvenRoederer committed Sep 5, 2021
1 parent 88a3a3a commit a26ff82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ uci set network.tunl0=interface
uci set network.tunl0.ifname=tunl0
uci set network.tunl0.proto=none

# ignore the ffuplink interface when setting up the freifunk policyrouting
# it's just a 2nd uplink
uci add_list freifunk-policyrouting.pr.ignore_interface=ffuplink

uci commit network
uci commit freifunk-policyrouting.pr
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/sh

[ "$INTERFACE" = wan ] && exit

. /lib/functions.sh
. /lib/functions/network.sh

IGNORE_INTERFACES=$(uci get freifunk-policyrouting.pr.ignore_interface)
list_contains IGNORE_INTERFACES $INTERFACE && exit

log() {
logger -t ff-policyrouting-ng "$1"
}
Expand Down

0 comments on commit a26ff82

Please sign in to comment.