Skip to contentSkip to conversation

Deploy specific iptables ruleset for each container...

DISCUSSION Sebastián Maruca via Containers 2 participants 2 messages Jun 7, 2016 2 messages not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi to everyone!
Is it possible to deploy a "central" iptables ruleset at a Host,and then, deploy several "isolated" iptables rulesets, one for each container? I'd like to have a this "central" iptables to chain basic rules,and each one of them have trivial rulesets, so as to speak of a"multi-tenant" IPTables. Best regards,Seba
_______________________________________________
Containers mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/containers

#3 lore raw
In reply to a message not in the archive
Quoted 7 lines · Sebastián Maruca via Containers

Hi to everyone!
Is it possible to deploy a "central" iptables ruleset at a Host,and then, deploy several "isolated" iptables rulesets, one for each container?
I'd like to have a this "central" iptables to chain basic rules,and each one of them have trivial rulesets, so as to speak of a"multi -tenant" IPTables.

It depends what you mean by "deploy". Firewall rule sets are 1:1 with network namespaces, so it isn't possible to "inherit" rules from the parent netns. It is, however, perfectly possible to run a veth pair between two different netns and apply different firewall rules on each end with each rule set being in its own netns. It sounds like this could cover your use case.

James

_______________________________________________
Containers mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/containers