Comment on Turn linux server into a router?
frongt@lemmy.zip 23 hours agoYou 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.
rtxn@lemmy.world 23 hours ago
Do not do that. You need to set up VLANs and proper separation between them on both the switch and the router, assuming the switch even supports tagged trunk lines. If you don’t, you’re just connecting all of your clients to the unfiltered internet.
frongt@lemmy.zip 22 hours ago
Technically yes, but as long as your WAN gateway doesn’t provide a route, clients will only know how to reach your own gateway.
SapphironZA@sh.itjust.works 22 hours ago
But your isp modem will have total access to your local devices.