From owner-freebsd-current@FreeBSD.ORG Wed Jul 29 18:12:50 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B8BE1065670 for ; Wed, 29 Jul 2009 18:12:50 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outO.internet-mail-service.net (outo.internet-mail-service.net [216.240.47.238]) by mx1.freebsd.org (Postfix) with ESMTP id 13D4C8FC40 for ; Wed, 29 Jul 2009 18:12:50 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 26AF9B8DC0; Wed, 29 Jul 2009 11:12:50 -0700 (PDT) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 864B02D600E; Wed, 29 Jul 2009 11:12:49 -0700 (PDT) Message-ID: <4A709126.5050102@elischer.org> Date: Wed, 29 Jul 2009 11:12:54 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: Stefan Bethke References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Current Subject: Re: recent change to ifconfig breaks OpenVPN? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2009 18:12:50 -0000 Stefan Bethke wrote: > I just updated this afternoon (r195941), and after rebooting, OpenVPN > has problems ifconfig'ing a tun interface. > > With sources from about one week ago, this is working: > Jul 29 03:07:15 diesel openvpn_zs64[14785]: /sbin/ifconfig tun1 > 44.128.127.2 44.128.127.2 netmask 255.255.255.0 mtu 1500 up > Jul 29 03:07:15 diesel openvpn_zs64[14785]: /sbin/route add -net > 44.128.127.0 44.128.127.2 255.255.255.0 > Jul 29 03:07:15 diesel openvpn_zs64[14785]: /sbin/route add -net > 44.128.64.0 44.128.127.1 255.255.192.0 > > Now, the same sequence fails: > Jul 29 17:31:41 diesel openvpn_zs64[1855]: /sbin/ifconfig tun1 > 44.128.127.2 44.128.127.2 netmask 255.255.255.0 mtu 1500 up > Jul 29 17:31:41 diesel openvpn_zs64[1855]: FreeBSD ifconfig failed: > external program exited with error status: 1 > > Trying the same command manually gets me: > /sbin/ifconfig tun1 44.128.127.2 44.128.127.2 netmask 255.255.255.0 mtu ^^^^^^^^^^^^^^^^^^^^^^^^^ have you tried it without using the same address on both ends? > 1500 up > ifconfig: ioctl (SIOCAIFADDR): File exists > > even though no address was assigned before. > > Another OpenVPN instance using tap continues to work. > > > Stefan >