Score:0

Docker station Iptables task

vn flag

I have a virtual machine running on VBox. This VM contains the host and three dockers, let`s name the dockers as the_first, the_second, the_third.

I want to apply a filter on network firewall with iptables that can do this:

Running through the host and set this from terminal:

To block all connections that are going to the second docker but(all connections) but in the same time to allow some protocols like ssh, icmp and ftp.

I understand the functionality of INPUT or OUTPUT iptables rules but i don`t know how to use it in one state or maybe 2-3 lines to do what i explained before.

rvs avatar
vn flag
rvs
Your question is hard to read. Please edit it and remove typos/duplicate words if you can. Adding more specifics can also help - port numbers, etc could help. In particular, please check https://docs.docker.com/config/containers/container-networking/ and clarify which ports are exposed by docker and why is it not sufficient.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.