Hallo! Thanks for the reply, i am familiar with route-to and using multiple external links but my main problem here is how to differentiate between hosts in subnet based on what gateway address are the configured to use. But it seems there is principally no straithforward way to do it using one physical/vlan interface.
I havent tried it using two physical/vlan interfaces on the same gateway in one subnet using different ip aadresses, could it help or is it at all reasonable in some circumstances? It seems that at least with incoming packets it is clear from what client they came from. picture would then be something like this one link ohter link to the internet | | \ ___ / | | |___| 10.0.1.253 | | 10.0.1.254 | | | | ---|-------|-|--------|----- | | | | host 1 host 2 gw: 10.0.1.253 gw: 10.0.1.254 Imre Henry Sieff wrote: > Use pf: > > http://www.openbsd.org/faq/pf/pools.html#outgoing is sort of what you > want to do. > > On Wed, May 20, 2009 at 1:38 PM, Imre Oolberg <i...@auul.pri.ee> wrote: >> Hi! >> >> I guess that maybe i need to solve my problem using different means i.e. >> administrative means but i would be thankful if somebody could comment >> if there is feasible technical solution for this situation. >> >> I have gateway between one subnet and two connections to the internet. I >> would like the subnet's side of the gateway to have two ip addresses >> (from the same subnet, maybe as aliases or two physical/vlan interfaces) >> and based on what address host uses as its default gw to route its >> traffic thru one or the other link towards the internet. >> >> Below is meant to be a descriptive ascii illustration >> >> one link ohter link to the internet >> | | >> \ ___ / >> | | >> |___| >> | 10.0.1.253, 10.0.1.254 >> | >> | >> ---|--------|---------|----- >> | | >> | | >> >> host 1 host 2 >> gw: 10.0.1.253 gw: 10.0.1.254 >> >> >> Best regards, >> Imre