On 2007/03/27 10:45, riwanlky wrote:
> Thanks for the hint on -mpath.
> 
> I am just trying to get the internal to external. I had two ISP, and
> when I try to route add default at the second time I got
> route: writing to routing socket: File exists
> add net default: gateway 10.10.10.2: File exists

If you use -mpath that error message won't be displayed (you also need
to set a sysctl to make it work, and probably some NAT rules).

> So I am wondering how do I send out traffic to the ISP if I don't
> have routing.
> 
> I know that I can use PF to route the internal to external traffic.
> I thought that I need routing in order to use PF.

PF 'route-to' and 'reply-to' can be used with pretty much any type
of connection. http://www.openbsd.org/faq/pf/pools.html has an example
(in the "load balance outgoing traffic" section).

> I mean to say that I can't use OpenOSPFD and OpenBGPD.
> My mistake. Sorry for the inconvenience.

No trouble (-:

Reply via email to