]> git.ipfire.org Git - ipfire-2.x.git/commit
rules.pl: apply location filter to ppp0 if configured
authorPeter Müller <peter.mueller@ipfire.org>
Tue, 3 Nov 2020 10:48:09 +0000 (11:48 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 11 Nov 2020 15:53:05 +0000 (15:53 +0000)
commit2293e1de0bef48e607ff4701bad07863d9ed57ee
tree7fe14452f5ede83bb9900b84f1df7e3539b51894
parent66c9d821d6252d3c0c50b2dcd37910002c8dcdf5
rules.pl: apply location filter to ppp0 if configured

In order to prevent collateral damage to internal traffic, commit
c69c820025c21713cdb77eae3dd4fa61ca71b5fb introduced applying location
block on red0 as a sanity check.

On systems configured to use PPPoE, however, traffic appears on the ppp0
interface instead. This patch checks if a system is configured to use
this connection method, and applies the location filter to this
interface. red0 is used otherwise.

Fixes: #12519
Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/firewall/rules.pl