Re: Internet Connection - Load Balancing and Failover

2012-11-13 Thread Imre Oolberg

On 11/13/12 08:57, Tomas Bodzar wrote:

On Mon, Nov 12, 2012 at 11:09 PM, Walter Netowsouz...@gmail.com  wrote:

Hello guys,

I have two internet connections, and I want to make load balancing and
failover service, I had read about pf load balancing and multi-path route,
what is the difference between them.

Which is the better to use in my scenario?

And for failover, the best solution is ifstated(8)?


One of the possible approaches, but maybe easier for you will be
http://www.openbsd.org/cgi-bin/man.cgi?query=trunkapropos=0sektion=0manpath=OpenBSD+Currentarch=i386format=html


I have been under impression that man trunk is for L2 redundancy. Could 
you elaborate how it would help to load balance and fail over between 
two different ISPs uplinks (one link per isp, i assume they have 
different ip configurations)?



Imre






thanks in advance.

Walter Neto




Re: Internet Connection - Load Balancing and Failover

2012-11-13 Thread Uwe Werler
-Ursprüngliche Nachricht-
An: OpenBSD-misc list misc@openbsd.org; 
Von:Imre Oolberg i...@auul.pri.ee
Gesendet:   Di 13.11.2012 09:05
Betreff:Re: Internet Connection - Load Balancing and Failover
 On 11/13/12 08:57, Tomas Bodzar wrote:
  On Mon, Nov 12, 2012 at 11:09 PM, Walter Netowsouz...@gmail.com  wrote:
  Hello guys,
 
  I have two internet connections, and I want to make load balancing and
  failover service, I had read about pf load balancing and multi-path route,
  what is the difference between them.
 
  Which is the better to use in my scenario?
 
  And for failover, the best solution is ifstated(8)?
 
  One of the possible approaches, but maybe easier for you will be
  
 http://www.openbsd.org/cgi-bin/man.cgi?query=trunkapropos=0sektion=0manpath=O
 penBSD+Currentarch=i386format=html
 
 I have been under impression that man trunk is for L2 redundancy. Could 
 you elaborate how it would help to load balance and fail over between 
 two different ISPs uplinks (one link per isp, i assume they have 
 different ip configurations)?
 
 
 Imre
 
 
 
 
  thanks in advance.
 
  Walter Neto
 
 

Hi Imre,

take a look at the router section of relayd.conf: 
http://www.openbsd.org/cgi-bin/man.cgi?query=relayd.confapropos=0sektion=0manpath=OpenBSD+Currentarch=i386format=html

Regards Uwe



Re: Internet Connection - Load Balancing and Failover

2012-11-13 Thread Pierre Marchal
Hello,

I don't think that trunk is appropriate for this scenario. 
It is use for OSI level 2 (Ethernet) fail over and/or load balancing but won't 
be able to load balance traffic between two internet connection, witch involve 
TCP/IP load balancing.



Tomas Bodzar tomas.bod...@gmail.com a écrit :

On Mon, Nov 12, 2012 at 11:09 PM, Walter Neto wsouz...@gmail.com wrote:
 Hello guys,

 I have two internet connections, and I want to make load balancing and
 failover service, I had read about pf load balancing and multi-path route,
 what is the difference between them.

 Which is the better to use in my scenario?

 And for failover, the best solution is ifstated(8)?

One of the possible approaches, but maybe easier for you will be
http://www.openbsd.org/cgi-bin/man.cgi?query=trunkapropos=0sektion=0manpath=OpenBSD+Currentarch=i386format=html


 thanks in advance.

 Walter Neto



Re: Internet Connection - Load Balancing and Failover

2012-11-13 Thread David Coppa
On Mon, Nov 12, 2012 at 11:09 PM, Walter Neto wsouz...@gmail.com wrote:
 Hello guys,

 I have two internet connections, and I want to make load balancing and
 failover service, I had read about pf load balancing and multi-path route,
 what is the difference between them.

 Which is the better to use in my scenario?

 And for failover, the best solution is ifstated(8)?

 thanks in advance.

http://www.openbsd.org/faq/faq6.html#Multipath

http://www.openbsd.org/faq/pf/pools.html#outgoing



Re: Internet Connection - Load Balancing and Failover

2012-11-13 Thread Udo Siewert

On 11/13/12 08:39, Pierre Marchal wrote:

Hello,

I don't think that trunk is appropriate for this scenario.
It is use for OSI level 2 (Ethernet) fail over and/or load balancing but won't 
be able to load balance traffic between two internet connection, witch involve 
TCP/IP load balancing.


You might try haproxy.

pkg_add haproxy

man HAPROXY(1)


--
Udo



Re: Internet Connection - Load Balancing and Failover

2012-11-13 Thread Reyk Floeter
Hi,

I've read the other replies and there's no need to install any port. Like
mentioned before, just use relayd(8) from base with the router option in
relayd.conf(5) in combination with multipath routing (sysctl
net.inet.ip.multipath=1). You can also use pf with route-to or rtable
as a classifier for outbound traffic (eg. send SSH traffic over uplink A,
Web traffic over uplink B).

Reyk

Am Montag, 12. November 2012 schrieb Walter Neto :

 Hello guys,

 I have two internet connections, and I want to make load balancing and
 failover service, I had read about pf load balancing and multi-path route,
 what is the difference between them.

 Which is the better to use in my scenario?

 And for failover, the best solution is ifstated(8)?

 thanks in advance.

 Walter Neto



Internet Connection - Load Balancing and Failover

2012-11-12 Thread Walter Neto
Hello guys,

I have two internet connections, and I want to make load balancing and
failover service, I had read about pf load balancing and multi-path route,
what is the difference between them.

Which is the better to use in my scenario?

And for failover, the best solution is ifstated(8)?

thanks in advance.

Walter Neto



Re: Internet Connection - Load Balancing and Failover

2012-11-12 Thread Tomas Bodzar
On Mon, Nov 12, 2012 at 11:09 PM, Walter Neto wsouz...@gmail.com wrote:
 Hello guys,

 I have two internet connections, and I want to make load balancing and
 failover service, I had read about pf load balancing and multi-path route,
 what is the difference between them.

 Which is the better to use in my scenario?

 And for failover, the best solution is ifstated(8)?

One of the possible approaches, but maybe easier for you will be
http://www.openbsd.org/cgi-bin/man.cgi?query=trunkapropos=0sektion=0manpath=OpenBSD+Currentarch=i386format=html


 thanks in advance.

 Walter Neto