Force subnet to use static gateway

How can I force a subnet to use a seperate gateway? I have created a static route saying anything headed to a 10.x.x.x subnet to go out a gateway but is there a way to point anything coming from a subnet to a specific wan interface? Thanks

You must mark those sessions originating from that subnet and then you can route those out based on that marker.