Currently my home network is logically segmented in 2 separate VLANS.
- LAN (untagged native LAN
10.20.0.0/16
): where all the trusted devices will operate - IOT_LAN (with tag 30
10.30.0.0/16
): where all the IOT/home entertainment untrusted devices will operate.
At firewall level LAN
can access IOT_LAN
but not viceversa.
I'm running Docker on a raspberry pi 4 connected via ethernet cable to a trunk port of my switch. At Raspi level, the Native LAN is bound to the eth0
interface while IOT_LAN
is bound to eth0.30
.
The question here is: is it possible to have 2 different containers running at the same time one bound to the eth0 interface and the other bound to eth0.30?
For sake of example we can say container 1 is an application which needs to be able to access the main LAN
network and container 2 is an IOT specific app which I want to be restricted to the IOT_LAN
network.
Thank you