You only need one port. WAN to switch, switch to router. The router routes and sends it back to the switch, and the switch to the LAN. Vice versa for outbound traffic. It’s called a router on a stick.
Not recommended if you’re paranoid about security, because a malicious client or particularly malformed inbound traffic could bypass your router. For general use it’s perfectly fine.
xavier666@lemmy.umucat.day 7 months ago
If you virtualize, you’ll have to deal with the overhead. Unless you’re not running anything high-throughput, this approach is fine.