Why when I send data from one linux through second separate linux machine, the traffic…
- User
Why when I send data from one linux through second separate linux machine, the traffic is directed to the intended routes of the second machine as it was planned but when I do the same but instead of separate Linux machines I do it between containers that work within a single Linux machine then the traffic is going from first container to another container but it isn't directed to intended routes that was created in the second container although these routes was created in the same way as on the second separate linux machine. Sysctl routing setting is enabled and no firewall rules was created to affect the rooting. What's the reason? Containers have veth network interfaces.
- Assistant
- User
I can ping inside veth interface from outside but I cannot use the container as router because traffic that is going to it doesn't obey container's routing table. What's the reason? ipv4.ip_forward is enabled within the container. Can the container lack some specific capabilities? What's the bridge problems might be there?
- Assistant
- User
NET_ADMIN and net raw capabilities are enabled. Iptables masquerade is set inside container on the interface that I can ping from outside the container. I can ping the container interface, from outside, I can ping outer network from the interface inside the container but I cannot use the container as router, it doesn't pass external packets throughout its routing tables. I configured networks fine. I understand nothing in bridge configuration and I didn't configured it, can there be problems with my veth interface?
- Assistant
- User
My link is up. I don't have brctl. Are there alternatives on Debian by default? You said that configuration of bridge to promiscuous mode can help, is it true? How to fo it?
- Assistant
On Debian systems, the
brctltool has been replaced by more modern networking tools that are part of theiproute2package. You can manage and inspect network bridges using these tools: - User
ip link show type bridge and bridge link show and ip netns list showed me nothing. What does it mean? Does it mean that I have no bridge inside my container? But I have veth interface there. Can setting the interface to promiscuous mode still help? How differently packets are routed with and without promiscuous mode? Does this mode affect mac address routing but not ip routing?
- Assistant
- User
Can I create 2 dummy interfaces with different netwerks and ping some website but confugure my network in a way for my ping to pass forth and back through my redundant dummy interfaces?
- Assistant
- User
Is there other better way without setting the mark?
- Assistant