From owner-freebsd-questions Sun Feb 2 13:35:47 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1492537B401 for ; Sun, 2 Feb 2003 13:35:45 -0800 (PST) Received: from amour.ath.cx (p213.54.17.170.tisdip.tiscali.de [213.54.17.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94D6043F79 for ; Sun, 2 Feb 2003 13:35:43 -0800 (PST) (envelope-from amour@amour.ath.cx) Received: from amour.ath.cx (amour@localhost.ath.cx [127.0.0.1]) by amour.ath.cx (8.12.6/8.12.6) with ESMTP id h12LZe1E078842; Sun, 2 Feb 2003 22:35:41 +0100 (CET) (envelope-from amour@amour.ath.cx) Received: from localhost (amour@localhost) by amour.ath.cx (8.12.6/8.12.6/Submit) with ESMTP id h12LZdJA078839; Sun, 2 Feb 2003 22:35:39 +0100 (CET) Date: Sun, 2 Feb 2003 22:35:39 +0100 (CET) From: Alexander To: Bill Moran Cc: freebsd-questions@freebsd.org Subject: Re: running both pppoe and pptp In-Reply-To: <3E3D655B.7040302@potentialtech.com> Message-ID: <20030202222608.T78548-100000@amour.ath.cx> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Here is my /etc/ppp/ppp.conf: default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) dsl: set device PPPoE:rl0 set MTU 1492 set MRU 1492 set dial set crtscts off set speed sync accept lqr disable ipv6 disable deflate disable pred1 disable vjcomp disable acfcomp disable protocomp enable dns set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0 add default HISADDR set login set authname XXXXXXXXXX set authkey YYYYYYYYYY vpn: set MTU 1024 set MRU 1024 set authname XXXXXXXXXX set authkey YYYYYYYYYY set timeout 0 set ifaddr 0 0 add 192.168.6.0/24 HISADDR alias enable yes disable ipv6 disable deflate pred1 deny deflate pred1 I don't have access to the vpn server but I'm sure it is mpd. At boot time I'm running the dsl as: ppp -quiet -ddial -nat dsl after that pptp is executed as: pptp a.b.c.d vpn & And if, for example, I kill the pptp both interfaces are shut (tun0 & tun1). If something goes wrong and the connection to the vpn server dies then again both interfaces are shut. I forgot to mention that I'm running: FreeBSD 4.7-STABLE #4: Sat Jan 25 16:21:48 CET 2003 thanks On Sun, 2 Feb 2003, Bill Moran wrote: > Alexander wrote: > > Hello > > > > I'm having problems running both pppoe and pptp. > > I'm using pppoe to connect to the internet. > > > > Using pppoe makes tun0 device with dynamic IP given from the ISP. > > Also I'm using pptp to connect to a VPN. pptp creates tun1 interface with > > the proper local addresses (i.e. 192.168.1.2 -> 192.168.1.1). > > > > When I start pptp after the pppoe connection is initialized > > it is going well for a minute and then it disconnects resetting both > > interfaces (tun0 and tun1) and I lose my internet connection and have to > > start ppp again. > > That's odd. I don't see any reason why pptp disconnecting should reset the > tun0 interface. > > > I can't find good documentation about the pptp. The only thing I can find > > is readme telling me what should I edit from the config file and a very short > > example config file (about 10 lines). > > Are you using mpd? What is the server? > Can you send the list a copy of the mpd.conf from both machines (client & server) > or whatever config file is relevent. > > > If You know what is or might be the problem, pls help. > > Make sure multilink is disabled at both ends of the pptp link > > -- > Bill Moran > Potential Technologies > http://www.potentialtech.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message