On 2013/11/01 19:57, sven falempin wrote: > FreeBSD propose to have a specific routing table for a process, which is > even more powerful. > When the router has multiple gateway i guess when a source address is > choose the route should be chosen given that. Nothing more. > > What use of this <<improvement>> do you imagine ?, of course you may want > this traffic over this network(low latency) and the other one on > another(high badnwith), put you may use pf for this, or specific route for > the services. > > Writing about this make me think you want a route that <select> on the PORT > instead of the IP. Is this madness ???
This is also known as "policy based routing". I've being doing this with "route-to" in PF for ages, or alternatively you can use multiple route tables and "rtable" in PF to push certain traffic to using a certain table (either based on port number, or source address, or UID if it's a connection from the local machine, etc).