>> 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
no that wouldn't work for 2 reasons.
1/ for local sockets, the routing decision is made already before it
gets to the firewall
2/ for non-ocal packets (from another machine that you are routing)
the packet needs to be tested on the recv (in) side of things
but by then the sending machine has aready decided on a local address
too.
Not nice. I have a dream, that fbsd now capable to do real multi-fib
routing :(
What about ipfw fwd ? That was working years ago for me, but of course,
requires to put all custom routing entries into ipfw rules.
What about binding of FIBs to local addresses or/and interfaces ?
Such way that kernel will decide what fib to use examining local IP
address of package ?
--
Vladimir B. Grebenschikov
v...@fbsd.ru
The actual routing code doesn't receive any information about the source
address (the route is found using exclusively the destination address), so
right now the kernel cannot select the fib by looking at the source address
(local address).
There is an kernel option called RADIX_MPATH wich changes the routing code
substancially (and looks like - from an untrained eye - it uses the
local/source address to select the correct route). Unfornately my test
hardware dies and i cannot look at this (right now) to tell you how this
will work in the "real world", but if you can, you should try it.
Luiz
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"