Setup as router and switch for a second pc to be outside the firewall.

I am not sure how to search for this answer. I don’t know what it should be called.
Let me describe what I want to do.

I have a RB850gx2 I purchased last week.

I have 2 IPs from my ISP. I get via DHCP

So in ETH1 I will put in the lan cable from my ISP.
And ETH2 a computer that I want to use with 1 of the ips. It shouldnt be firewalled or anything. So it should act as a switch.

On eth3.eth4.eth5 i will have my other computers installed on. so they should all share 1 ip, so a dhcp server should be enabled for them with the network 192.168.0.0/24 where the rb850gx has the ip 192.168.0.1 . . and it should be firewalled, but with port 22/tcp and port 80tcp forwarded to 192.168.0.10.
i hope this makes sense.

i hope this is not a too complicated setup. I know i could just use a switch first, but i wanted to try to learn something.

Looking forward for some guidance!

/YP

You could put Eth0 and Eth1 in a bridge. Get a DHCP address on the bridge interface, and use that as your WAN-facing interface.

Bridging is done in software, but provided the throughput is not overly high this is the easiest way.

Thanks for the advice. But I want to use it as a switch to spare the cpu.
It will be on a 1gbit connection. And the server on port 2 is going to be mainly for backups using btsync and crashplan.

on port3 4 5 will be the home pcs and a unifi ap pro.

I will keep tinkering.