Add localhostmasquerade to Thunder plugin #130
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add
localhostMasquerade
functionality to Thunder plugin.When enabled, Thunder will be available at
127.0.0.1:9998
inside the container in addition to100.64.11.1:9998
. This is useful for applications that don't correctly respect the THUNDER_ACCESS env var.Refactor some iptables rule generation code for re-use, as localhost masquerade feature is used across Network, AS and Thunder plugins.
Test Procedure
When the Thunder plugin is configured with
localhostMasquerade
set:Thunder should be accessible over
127.0.0.1:9998
inside the container.Type of Change
Requires Bitbake Recipe changes?
meta-rdk-ext/recipes-containers/dobby/dobby.bb
) must be modified to support the changes in this PR (beyond updatingSRC_REV
)