greenpau / cni-plugins

CNI Plugins compatible with nftables
Apache License 2.0
48 stars 13 forks source link

Only jump to the port mapping chain if the traffic destination is the local system. #14

Closed dafydd2277 closed 3 years ago

dafydd2277 commented 3 years ago

This solves Issue #12 .

1) Only jump to cni-npr-<containerID> if the destination address is on the local system.

dafydd2277 commented 3 years ago

I forgot to add/ask. If you're doing semantic versioning, I can make a fair argument that modifying the jump rules to only match local IP addresses is a feature add, making this pull request version 1.1.0. The code wasn't actually broken, I just needed to expand its capabilities.

greenpau commented 3 years ago

@dafydd2277 , please fix linter issue and squash commits.

greenpau commented 3 years ago

@dafydd2277 , LGTM 👍 Thank you for your contribution!