Re: Multiroute question

2012-09-23 Thread Julian Elischer
On 9/23/12 5:20 AM, Paul Schenkeveld wrote: On Thu, Sep 20, 2012 at 01:25:50PM -0400, Michael MacLeod wrote: Actually, multiple routing tables is the correct solution. I documented it here: http://www.mmacleod.ca/blog/2011/06/source-based-routing-with-freebsd-using-multiple-routing-table/ >Fro

Re: Multiroute question

2012-09-23 Thread Paul Schenkeveld
On Thu, Sep 20, 2012 at 01:25:50PM -0400, Michael MacLeod wrote: > Actually, multiple routing tables is the correct solution. I documented it > here: > > http://www.mmacleod.ca/blog/2011/06/source-based-routing-with-freebsd-using-multiple-routing-table/ > > >From the post: "... But route-to and r

Re: Multiroute question

2012-09-22 Thread Juan José Sánchez Mesa
El 20/09/2012 17:01, Michael Pounov escribió: Hi, Juan Use pf like in that simple example: $dsl_if = "CardA" $int_if = "CardB" $dsl_addr = "_dsl_if_ip_" $int_addr = "_int_if_ip_" $dsl_gw = "_dsl_gw_ip_" $int_gw = "_int_gw_ip_" set state-policy if-bound blah blah blah whatever rules ...

Re: Multiroute question

2012-09-20 Thread Julian Elischer
On 9/20/12 10:25 AM, Michael MacLeod wrote: Actually, multiple routing tables is the correct solution. I documented it here: http://www.mmacleod.ca/blog/2011/06/source-based-routing-with-freebsd-using-multiple-routing-table/ >From the post: "... But route-to and reply-to do not trump the defau

Re: Multiroute question

2012-09-20 Thread Julian Elischer
On 9/20/12 7:16 AM, Juan José Sánchez Mesa wrote: Hi! (sorry for my bad english) I have a FreeBSD machine (8.2-RELEASE-p3). The machine has two ethernet cards, configured in this way: - Card A: internet IP address - Card B: intranet IP address Default route goes via card A. Now, on the int

Re: Multiroute question

2012-09-20 Thread Michael Pounov
I dont think that route-to is only for passthrough traffic :):):) This pf config work even traffic is originated from and to machine ;) :) Please read option careful in example ;) On Thu, 20 Sep 2012 13:25:50 -0400 Michael MacLeod wrote: > Actually, multiple routing tables is the correct sol

Re: Multiroute question

2012-09-20 Thread Michael MacLeod
Actually, multiple routing tables is the correct solution. I documented it here: http://www.mmacleod.ca/blog/2011/06/source-based-routing-with-freebsd-using-multiple-routing-table/ >From the post: "... But route-to and reply-to do not trump the default routing table for traffic that originates or

Re: Multiroute question

2012-09-20 Thread Michael Pounov
Hi, Juan Use pf like in that simple example: $dsl_if = "CardA" $int_if = "CardB" $dsl_addr = "_dsl_if_ip_" $int_addr = "_int_if_ip_" $dsl_gw = "_dsl_gw_ip_" $int_gw = "_int_gw_ip_" set state-policy if-bound blah blah blah whatever rules ... pass out on $dsl_if route-to ($int_if $int_gw) f

Re: Multiroute question

2012-09-20 Thread Nikolay Denev
On Sep 20, 2012, at 5:16 PM, Juan José Sánchez Mesa wrote: > Hi! > > (sorry for my bad english) > > I have a FreeBSD machine (8.2-RELEASE-p3). The machine has two ethernet > cards, configured in this way: > > - Card A: internet IP address > - Card B: intranet IP address > > Default route g

Re: Multiroute question

2012-09-20 Thread Eggert, Lars
On Sep 20, 2012, at 16:16, Juan José Sánchez Mesa wrote: > There is a way to configure the network so that outgoing packets goes to the > card from where the incoming packets was arrived ? Policy routing e.g. with ipfw. Read up on ipfw "fwd". Lars