Isolate ports - same subnet

I need to set up a routerboard where all ports fall on the same subnet but having port1 and port 2 isolated from each other while port 3 sees both port1 and port 2 as same subnet. Any help please?

Bridge split horizon feature may help here: set the same horizon value for bridge ports 1 and 2.