nat: fix dhcp client on outside interface with output feature 08/23608/2
authorAlexander Chernavin <achernavin@netgate.com>
Fri, 22 Nov 2019 15:10:45 +0000 (10:10 -0500)
committerOle Trøan <otroan@employees.org>
Wed, 27 Nov 2019 10:57:30 +0000 (10:57 +0000)
commitd3b8c861a44e70c197ab721fa3ce7f38bbeab7fd
treecc74274181cd192bbb7589572cdaa2aa99892b2c
parent9fb6d40eb3d4a2da8f45187de773498b784596e6
nat: fix dhcp client on outside interface with output feature

When a DHCP client is configured on a NAT outside interface with
output feature enabled, DHCP packets will reach the NAT in2out-output
node and will be dropped with "out of ports" reason.

With this commit, allow locally originated DHCP packets to be sent
from a NAT outside interface with output feature enabled.

Type: fix

Change-Id: I47d76b22587f2bf0c7b0b9dfda41c89f8f61d0b4
Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
src/plugins/dhcp/client.c
src/plugins/nat/in2out.c
src/plugins/nat/in2out_ed.c