From owner-freebsd-questions@freebsd.org Wed Jun 8 19:23:51 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 66286B7051B; Wed, 8 Jun 2016 19:23:51 +0000 (UTC) (envelope-from stdin@niklaas.eu) Received: from box-hlm-03.niklaas.eu (box-hlm-03.niklaas.eu [IPv6:2a02:2770:15:0:21a:4aff:feaa:e902]) by mx1.freebsd.org (Postfix) with ESMTP id 33E781996; Wed, 8 Jun 2016 19:23:51 +0000 (UTC) (envelope-from stdin@niklaas.eu) Received: by box-hlm-03.niklaas.eu (Postfix, from userid 1001) id F3C843887B3; Wed, 8 Jun 2016 21:23:47 +0200 (CEST) Date: Wed, 8 Jun 2016 21:23:47 +0200 From: Niklaas Baudet von Gersdorff To: freebsd-net@freebsd.org, "freebsd-questions@freebsd.org" Subject: Re: Getting CARP to broadcast on a different interface Message-ID: <20160608192347.GE8540@box-hlm-03.niklaas.eu> Mail-Followup-To: freebsd-net@freebsd.org, "freebsd-questions@freebsd.org" References: <7a877e3c-9c77-c104-e47e-94c9d9389656@shrew.net> <20160608163033.GC8540@box-hlm-03.niklaas.eu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dWYAkE0V1FpFQHQ3" Content-Disposition: inline In-Reply-To: <20160608163033.GC8540@box-hlm-03.niklaas.eu> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2016 19:23:51 -0000 --dWYAkE0V1FpFQHQ3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Niklaas Baudet von Gersdorff [2016-06-08 18:30 +0200] : > Then, I could use devd to assign the public failover IP (that I actually > wanted to share with CARP on vtnet0) to the public interface vtnet0. > CARP(4) provides an example on how to use carp status change events for > additional scripting: >=20 [...] >=20 > Depending von $type, carpcontrol.sh could either >=20 > ifconfig vtnet0 alias >=20 > or >=20 > ifconfig vtnet0 -alias For that to work I must bind processes to non-local IP addresses. How do I do that? I found this https://lists.freebsd.org/pipermail/freebsd-hackers/2011-January/034033.html with some recommendations to do so with ipfw. Can I do something similar with pf? Or is there even another solution for binding to non-local addresses? Niklaas --dWYAkE0V1FpFQHQ3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXWHC8AAoJEG2fODeJrIU/s6wP/1u0no+xoMukUOlvk0eIbNIa HXNxvOCGST3pz4Hy2nWXPibjF883oPgmnEMuDA5I18qXfJwOyW9/MzhgiHg/zi73 qp9kQpivxkDfUYuRJrHGM64TqqzJwCXJEDgSJvz/wZY2Dpwtk6uVWJbw/B3zgPSX xQ1Y/Gtdd3Fl9qepDJ52pDmyhmRlf3gd/O4hyZlZd6uCfYJatTcxM3rcJSGW/yPe LoLxuUxzP5A4Ylr8thcnR93ndeZpGzoTBRegVQEhSIZdrRy3dV5W9P/B4xHLKF3y EdD6hJH3rEQ75rhZne0wASbWaA4m3hMbFTRv49o42kvwllikai5Ys8blcwTFXHib FpB/0/LX65q07OiceJ/aYRVXla+F44DTHh8aUIZ4X+8l0l0cvJgWdlEyfPTq6idJ fT4aOLix5P/SDJIRDeXb0ftS/RnR0ztj8Uppr2SU7PccuPvMi0+sYTZm5FtXJ1X+ gIYWMgwBueL+c8xHCK/g/XswGYvzQk9UvErmcEWctLXB7tGdWyckM+0PGnFOd6QK qcJijq8Le5MfCoU8Jp7OnowL9VfWl48DNBvreARXQp+ea9jNK6kDHi3U0A/cwQ/6 bKlWYHcB0TuoytTSbM1wIC1kULttBC8Way81lq3wKPeq8UefLNtmN4fnBwj/5O4o /hatjY5Zi+I3WE6K+at+ =52YN -----END PGP SIGNATURE----- --dWYAkE0V1FpFQHQ3--