basic inter-vlan routing

Imagine this setup on an SX1024.

Vlan 1 : 10.0.1.0/24

Vlan 2 : 10.0.2.0/24

Vlan 3 : 10.0.3.0/24

I need to setup inter-vlan routing so that I can route between vlan 1,3 as well as 2,3 but not 1,2.

I’d also like to be able to route vlan 3 and 1 to internet using a router connected to the switch.

What’s the simplest way to implement this routing scenario?

Hi I think you will need to create ACL’s and apply the ACL’s to the subinterfaces