I have a single home server with a single NIC. I intend to run numerous services -- some will be internet exposed, some will not. I don't know if I am going to run them as VMs or Docker container but it shouldn't matter for this question.
Say I ultimately need to open port:
:1234
that'll accept traffic from the internet (using a port forward on my router):6789
that'll accept traffic just from my local network
I figure I have two options:
- open both ports
:1234
and:6789
oneth0
of my server - use VLANs:
- create a 802.1Q trunk on
eth0
of my server then - create two VLANs:
eth0.10
- dmzeth0.20
- trust
- open ports on the individual VLANs:
:1234
oneth0.10
:6789
oneth0.20
- create a 802.1Q trunk on
The way I see it, option 2 gives me more control on my router/FW for rules for traffic between two VLANs but I am wondering how much it matters if everything is ultimately going to the same ethernet port on the same server.
So I'm wondering from a risk/threat perspective, is one better than the other?