View Single Post

   
  #3 (permalink)  
Old 02-16-2008, 05:22 AM
MK
 
Posts: n/a
Default Re: Multiple internet connection routing

Pixel K wrote:

> Hello,
>
> Here is my setup :
> A Cable Line on a SOHO Router on 192.168.0.1
> A DSL Line on another SOHO Router on 192.168.0.128
> some Clients in the 192.168.0.0/24 network
> a OpenBSD Server at 192.168.0.4 with his default gateway at 192.168.0.1
>
> I do mainly ssh connections
>
> When a connection comes from Cable, there is no problem.
> When a connection comes from DSL, OpenBSD tries to send the answer back to
> 192.168.0.1, and the connection fails.
>
> I can't add a static route, because the same internet host should be able to
> access the BSD box by Cable or DSL.
>

You already have a static route (the default one).
I suspect what you need to do is add a route for the x.y.z.128 network
into its ISP subnet(!/sbin/route add x.y.z.128 dsl_if:addr). At the
moment DEFAULT is grabbing all outbounds.

I'm not too sure that will work. Someone suggested PF should do it,
assuming there's a handle for PF to work with. The handle is even better
if PF is doing NAT. It's a matter of preference. Some sites allow pppoe
from all over the place, whereas others restrict it to a natting host.

Without NAT it seems you'd have to do a pf.rdr in an inside-out context.

I'd be curious how your multihomed host fares. My bsd3.3 with 5
interfaces occasionally goes on strike, and /bsd: posts arp warnings all
day long. In my case some interfaces share a bridge, so you wont have
the same problem.

MK

Reply With Quote