Add iptables NETMAP init container to Plex for local network treatment#946
Draft
Add iptables NETMAP init container to Plex for local network treatment#946
Conversation
… treatment Co-authored-by: bancey <23360105+bancey@users.noreply.github.com>
… isolation Co-authored-by: bancey <23360105+bancey@users.noreply.github.com>
Contributor
Plan Result (test_vpn_gateway) |
Contributor
Plan Result (generate_ansible_inventory) |
Contributor
Plan Result (prod_twingate) |
Co-authored-by: bancey <23360105+bancey@users.noreply.github.com>
Contributor
Plan Result (test_gameserver) |
Contributor
Plan Result (prod_vpn_gateway) |
Copilot
AI
changed the title
[WIP] Add init container to configure iptables SNAT rules for Plex
Add iptables NETMAP init container to Plex for local network treatment
Dec 19, 2025
Contributor
Plan Result (prod_gameserver) |
Contributor
Plan Result (prod_dns) |
Contributor
Plan Result (wanda_virtual_machines) |
Contributor
Plan Result (tiny_virtual_machines) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Plex running on Wanda with Cilium CNI only treats clients as "local" when they originate from the same
/16subnet as the pod. Traffic arriving via LoadBalancer IP10.151.24.161appears to come from different subnets than the pod network10.42.0.0/16, causing remote treatment.Changes
kubernetes/apps/wanda/plex-patch.yamlthat installs iptables and applies NETMAP SNAT ruleNET_ADMINandNET_RAWcapabilities (no privileged mode)The NETMAP rule rewrites source addresses in PREROUTING to appear as though they originate from the pod network. Operates at pod network namespace level, compatible with Cilium eBPF datapath.
Original prompt
This pull request was created from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.