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

A message that is not in the archive (sent off-list or not yet received): 1037489545.134365.1465266607461.JavaMail.yahoo.ref@mail.yahoo.com

#1 lore raw

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

A message that is not in the archive (sent off-list or not yet received): 1037489545.134365.1465266607461.JavaMail.yahoo-sAHhhX/[email protected]

#3 lore raw
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