From owner-freebsd-bugs@FreeBSD.ORG Sat Aug 23 02:40:16 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE1A816A4BF for ; Sat, 23 Aug 2003 02:40:16 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACBDC43FE9 for ; Sat, 23 Aug 2003 02:40:15 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7N9eFUp070279 for ; Sat, 23 Aug 2003 02:40:15 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7N9eF6t070278; Sat, 23 Aug 2003 02:40:15 -0700 (PDT) Resent-Date: Sat, 23 Aug 2003 02:40:15 -0700 (PDT) Resent-Message-Id: <200308230940.h7N9eF6t070278@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5FAC16A4BF for ; Sat, 23 Aug 2003 02:40:01 -0700 (PDT) Received: from meicon.at (meicon.at [161.58.231.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEF8943FAF for ; Sat, 23 Aug 2003 02:40:00 -0700 (PDT) (envelope-from raveboy@circa.air-maxx.net) Received: from circa.air-maxx.net (dsl-213-023-026-063.arcor-ip.net [213.23.26.63]) by meicon.at (8.12.9/8.11.6) with ESMTP id h7N9dwoB000819 for ; Sat, 23 Aug 2003 11:39:59 +0200 (CEST) Received: from circa.air-maxx.net (localhost [127.0.0.1]) by circa.air-maxx.net (8.12.9/8.12.9) with ESMTP id h7N9do6A005445 for ; Sat, 23 Aug 2003 11:39:50 +0200 (CEST) (envelope-from raveboy@circa.air-maxx.net) Received: (from raveboy@localhost) by circa.air-maxx.net (8.12.9/8.12.9/Submit) id h7N9dojb005444; Sat, 23 Aug 2003 11:39:50 +0200 (CEST) Message-Id: <200308230939.h7N9dojb005444@circa.air-maxx.net> Date: Sat, 23 Aug 2003 11:39:50 +0200 (CEST) From: Martin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/55890: Error: bundle_Create: ioctl(TUNSIFMODE): Device busy X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Martin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2003 09:40:16 -0000 >Number: 55890 >Category: kern >Synopsis: Error: bundle_Create: ioctl(TUNSIFMODE): Device busy >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Aug 23 02:40:15 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Martin Werner >Release: FreeBSD 5.1-RELEASE-p2 i386 >Organization: none >Environment: System: FreeBSD circa.air-maxx.net 5.1-RELEASE-p2 FreeBSD 5.1-RELEASE-p2 #1: Wed Aug 20 23:59:25 CEST 2003 root@circa.air-maxx.net:/usr/obj/usr/src/sys/CIRCA i386 >Description: I need to have two tunnel devices. One is for internet connection, wich is PPPoE, the other one is for a PPPoSSH session - to connect to my company via a VPN. During startup, I enabled ppp to dial to Internet in the rc.conf script. # PPPoE for DSL ppp_enable=YES ppp_mode=ddial ppp_nat="no" ppp_profile="arcor-dsl" ppp_user="root" When I want to connect to my company I simply start ppp. PPP then answers with an error message which kills my PPPoE session to the Internet. The error messages logged by /var/log/messages Aug 20 17:23:40 circa ppp[935]: Error: bundle_Create: ioctl(TUNSIFMODE): Device busy Aug 20 17:23:45 circa ppp[225]: tun0: Error: ip_Input: deflink: wrote 56, got 0 Aug 20 17:23:47 circa last message repeated 3 times Aug 20 17:23:47 circa ppp[225]: tun0: Warning: iface rm: ioctl(SIOCDIFADDR, 213.23.24.183 -> 145.253.4.4): Can't assign reques ted address I then have to kill my ppp, start the internet again and then open the PPPoSSH session. After the first fail, everything is fine. So I have to go through this procedure only once - just after reboot. >How-To-Repeat: To have a full documentation, here is my ppp.conf # # ppp.conf: PPPoE configuration # default: set log phase tun # download /etc/resolv.conf #enable dns arcor-dsl: # PPP over Ethernet set device PPPoE:rl0 set speed sync set mru 1492 set mtu 1492 set ctsrts off # monitor line quality enable lqr # log just a bit set log phase tun # insert default route upon connection add default HISADDR # User / Pass set authname * (changed for report) set authkey * (changed for report) sparta: set device !/etc/ppp/sparta set speed 115200 set mtu 800 allow users root hannes raveboy set timeout 0 set log phase chat connect lcp ipcp command set dial set login set ifaddr 192.168.3.1 192.168.3.2 set server /var/tmp/loop "" 0177 And the "/etc/ppp/sparta" file #!/bin/sh exec ssh -C -c blowfish raveboy@82.**.**.77 -i ~/.ssh/raveboy\@sparta.key '/usr/sbin/ppp -direct scheme' (IP Changed, becaus I don't want to show it to public!) >Fix: Okay, here are the commands from the shell ppp quit ps ax|grep ppp 941 ?? Ss 0:00.61 /usr/sbin/ppp -quiet -ddial arcor-dsl kill 941 /usr/sbin/ppp -quiet -ddial arcor-dsl ppp Working in interactive mode Using interface: tun1 dial sparta >Release-Note: >Audit-Trail: >Unformatted: