Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow forwarding of all DHCP traffic
Recently we added iptables rule to prevent forwarding of non-app traffic (so that attacker cannot use EVE to hop from one network to another). This rule is based on connection tracking and differentiating between host and app traffic using marks. However, app-initiated DHCP requests can match the same conntrack entry as was created for DHCP requests sent by the DHCP client of EVE. This is because source/destination IPs are undefined or broadcast: [72]: udp 17 src=0.0.0.0 dst=255.255.255.255 sport=68 dport=67 src=255.255.255.255 dst=0.0.0.0 sport=67 dport=68 mark=0xa This means that application DHCP traffic may get mark "in_dhcp" (as opposed to "app_dhcp") and forwarding will not be allowed. This is particularly problem for switch NI. Lets create an exception rule, allowing forwarding of DHCP traffic even if it has in_dhcp mark, given that the same mark can be accidentally assigned also to an application DHCP request. Signed-off-by: Milan Lenco <[email protected]> (cherry picked from commit 080afbf)
- Loading branch information