From owner-freebsd-questions@freebsd.org Wed Dec 16 13:12:35 2015 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 89D7BA485A0 for ; Wed, 16 Dec 2015 13:12:35 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 50420199F for ; Wed, 16 Dec 2015 13:12:34 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a99jd-00047t-Gb for freebsd-questions@freebsd.org; Wed, 16 Dec 2015 11:55:09 +0100 Received: from c-b410e655.030-194-6d6c6d4.cust.bredbandsbolaget.se ([85.230.16.180]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Dec 2015 11:55:05 +0100 Received: from quite by c-b410e655.030-194-6d6c6d4.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Dec 2015 11:55:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Daniel Subject: Setting prefered ipv6 source address Date: Wed, 16 Dec 2015 10:53:17 +0000 (UTC) Lines: 18 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 85.230.16.180 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36) 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: Wed, 16 Dec 2015 13:12:35 -0000 Hello, I'm using a gif0 tunnel for my ipv6 connectivity (he). The setup in rc.conf works fine, with an additional aliased IP. I would like this IP (which I control the reverse dns for!) to be preferred as source addr, which I am able to do with: ifconfig gif0 inet6 $ipv6tunnelendpoint deprecated (This is apparently undocumented, and I found out how to do it by knowing about preferred_lft of iproute2 on Linux. s/deprecated/pltime 0/ also works). But how can I nicely squeeze this line into rc.conf, along with the tunnel setup?