From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 20:01:20 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5C21E699 for ; Tue, 28 Apr 2015 20:01:20 +0000 (UTC) Received: from wp376.webpack.hosteurope.de (wp376.webpack.hosteurope.de [80.237.133.145]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1E7751FDD for ; Tue, 28 Apr 2015 20:01:19 +0000 (UTC) Received: from p548fc842.dip0.t-ipconnect.de ([84.143.200.66] helo=[192.168.178.149]); authenticated by wp376.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) id 1YnBPk-0002QU-Ef; Tue, 28 Apr 2015 21:43:28 +0200 Message-ID: <1430250205.4162.1.camel@mccarthy> Subject: can pf load-balance UDP? From: "Christopher J. Ruwe" To: freebsd-questions@freebsd.org Date: Tue, 28 Apr 2015 21:43:25 +0200 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;cjr@cruwe.de;1430251280;24f2a09f; X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 20:01:20 -0000 Hi, I am sorry, I do not have a FreeBSD machine around at the moment, otherwise I would have checked myself. I am looking at options to load-balance log messages sent to a central logserver (at the moment, we are favouring the ever present logstash/elasticsearch stack). Examining the "shipment" of logs from the producer to logstash, we try to keep the footprint of the shipping mechanism low and standard. Eventually, we will need to load balance the log messages, which has led me to question how to load balance UDP. I know OpenBSD and FreeBSD pf can load balance TCP. # RDR ROUND ROBIN # Translate incoming web server connections to a group of web servers on # the internal network. rdr on $ext_if proto tcp from any to any port 80 \ -> { 10.1.2.155, 10.1.2.160, 10.1.2.161 } round-robin Does anybody know about UDP for that matter or is load balancing UDP done differently? Many thanks, cheers, -- Christopher