Re: Pf with multi gateways

2013-02-13 Thread Indunil Jayasooriya
> You can list multiple gateways in priority order (I would usually > add these in hostname.if files e.g. "!route add") > > route add default -priority 10 10.1.1.1 > route add default -priority 12 10.2.2.2 > should the file /etc/mygate be deleted? I think "yes" -- Thank you Indunil Jay

Re: Pf with multi gateways

2013-02-13 Thread Stuart Henderson
On 2013-02-13, What you get is Not what you see wrote: > Hi > I have a pf box with 4 links (a multihomed box ) and some services like > dns,dhcp on it. > I have set /etc/mygate to one of the gateways. > Sometimes the line drops and when it drops, obviously some services like > dns stop. > But the

Re: Pf with multi gateways

2013-02-13 Thread MJ
Best solution is ECMP combined with ifstated - you get double bandwidth until one link goes down, in which case it is automatically removed from the routing table until it comes up again. This is a pretty common setup in e.g. Top Of Rack (ToR) switching setups. I just wrote a blog post mentioning

Re: Pf with multi gateways

2013-02-13 Thread Jorge Enrique Valbuena Vargas
HI, take a look at : http://openbsd.org/faq/faq6.html#Multipath On Wed, Feb 13, 2013 at 10:15 AM, What you get is Not what you see < wygin...@gmail.com> wrote: > Hi > I have a pf box with 4 links (a multihomed box ) and some services like > dns,dhcp on it. > I have set /etc/mygate to one of the

Re: Pf with multi gateways

2013-02-13 Thread Janne Johansson
You can have ifstated test gw reachability, I think relayd has similar functionality to manage routes, one could somewhat easily script "if gwA up send packets via ifA, if gwB up ..." mpath would be yet one option. 2013/2/13 What you get is Not what you see : > Hi > I have a pf box with 4 links (a

Pf with multi gateways

2013-02-13 Thread What you get is Not what you see
Hi I have a pf box with 4 links (a multihomed box ) and some services like dns,dhcp on it. I have set /etc/mygate to one of the gateways. Sometimes the line drops and when it drops, obviously some services like dns stop. But the other lines are up then. What is the proper way of handling mygate? Do