> >> 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
_______________________________________________
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"

Reply via email to