From 0b04926433b60ac1ec448f9dfa8a36dfe5bdcae9 Mon Sep 17 00:00:00 2001 From: Jaap Buurman Date: Tue, 1 May 2018 11:53:53 +0200 Subject: igmpproxy: fix creation of firewall rules The init sccript for igmpproxy uses the option 'network' both as an interface name for fetching the l3_device name and for creating the firewall rules. This only works if the name of the network and firewall zone are identical. This commit introduces a new option 'zone' for configuring the upstream and downstream firewall zones in order for the init script to create the required firewall rules automatically. When no such options are given, the init script falls back to not creating the firewall rules and the user can opt to create these manually. Signed-off-by: Jaap Buurman --- package/network/services/igmpproxy/files/igmpproxy.config | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'package/network/services/igmpproxy/files/igmpproxy.config') diff --git a/package/network/services/igmpproxy/files/igmpproxy.config b/package/network/services/igmpproxy/files/igmpproxy.config index d89013ca98..6230f8aa1d 100644 --- a/package/network/services/igmpproxy/files/igmpproxy.config +++ b/package/network/services/igmpproxy/files/igmpproxy.config @@ -2,11 +2,13 @@ config igmpproxy option quickleave 1 # option verbose [0-2] -config phyint wan +config phyint option network wan + option zone wan option direction upstream list altnet 192.168.1.0/24 -config phyint lan +config phyint option network lan + option zone lan option direction downstream -- cgit v1.2.3