Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 2009 06:23:29 -0700
From:      Julian Elischer <julian@elischer.org>
To:        vova@fbsd.ru
Cc:        freebsd-net@freebsd.org, Jamie Ostrowski <jamie.ostrowski@gmail.com>, "Lucian@lastdot.org" <lucian@lastdot.org>
Subject:   Re: How to change default source address?
Message-ID:  <4A69B5D1.3070807@elischer.org>
In-Reply-To: <1248433706.1678.13.camel@localhost>
References:  <5a3c8f450907230757j21191a11n6cae4699ec8a76e1@mail.gmail.com>	 <29ae62fc0907232114r2afb9dc8y966a22db6d3236bc@mail.gmail.com>	 <4A693DE2.3050905@elischer.org> <1248433706.1678.13.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
Vladimir Grebenschikov wrote:
> Hi 
> 
>  
>> you could set up 2 routing tables and assign different apps to use 
>> different tables
> 
> Is it possible to select routing table by ipfw setfib X ?
> 
> someting like:
> 
> ipfw add setfib 1 ip from a.b.c.d to any out xmit em0
> setfib 1 route add default 10.10.10.1 
> 
> 
> PS:
> you may need to compile kernel with 
> options ROUTETABLES=2

yes

> 
> PPS:
> why there is not sysctl way to specify number of routing tables ? 

There is, kind of.
originally there had to be a compiled in table and you had to specif 
the maximum you would allow (up to 16),
and the sysctl would reduce that maximum. (that may have changed as I 
see it's read-only now for me)
That may change in the future but the hours in the day are still <= 24

> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A69B5D1.3070807>