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

Reply via email to