]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
firewall: Fix source/destination interface settings
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Apr 2019 09:56:05 +0000 (10:56 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Apr 2019 09:56:05 +0000 (10:56 +0100)
commit249839b0ca06f81eaf3b75b03ac41ab2f7b6c352
tree8ed93ebb3a9317157cdfb19becb33fefffc97674
parentae93dd3deb6524036943513e90d1fba84e3608bd
firewall: Fix source/destination interface settings

When a forwarding rule is being created, we sometimes create
INPUT/OUTPUT rules, too. Those were slightly invalid because
the source and destination interfaces where passed, too.

This could render some rules in certain circumstances useless.

This patch fixes this and only adds -i for INPUT and -o for
OUTPUT rules.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/firewall/rules.pl