From owner-freebsd-hackers Tue May 28 11:32: 4 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from bast.unixathome.org (bast.unixathome.org [216.187.105.150]) by hub.freebsd.org (Postfix) with ESMTP id BA1B237BB46 for ; Tue, 28 May 2002 11:31:39 -0700 (PDT) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 6C6113F35; Tue, 28 May 2002 14:31:56 -0400 (EDT) From: "Dan Langille" Organization: DVL Software Limited To: Dominic Marks Date: Tue, 28 May 2002 14:31:35 -0400 MIME-Version: 1.0 Subject: Re: how to automagically restart net/pptpclient? Reply-To: dan@langille.org Cc: freebsd-hackers@freebsd.org In-reply-to: <20020528093236.A7916@host217-39-111-112.in-addr.btop> References: <20020528045812.0F4F93F35@bast.unixathome.org>; from dan@langille.org on Tue, May 28, 2002 at 12:57:52AM -0400 X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Message-Id: <20020528183156.6C6113F35@bast.unixathome.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 28 May 2002 at 9:32, Dominic Marks wrote: > On Tue, May 28, 2002 at 12:57:52AM -0400, Dan Langille wrote: > > I have installed net/pptpclient (1.0.3). About 5 times a week, it dies > > and must be restarted. Does anyone have a script which checks and > > restarts it if it has died? > > You might like to try one of the other PPTP clients on offer. I > switched from using pptpclient to mpd and think it is superior. This > is all covered in the Handbook :) > > http://www.freebsd.org/handbook/pppoa.html That looks good. I've tried it, but have been unable to connect to the office, which is running an MS PPtP server. I know the *can* work because pptp-client can connect. Does anyone have a working configuration I can use as an example please? For what it's worth, I'm using this configuration (as stolen from /usr/local/etc/mpd/mpd.conf.sample). vpn: new -i ng1 vpn vpn set iface disable on-demand set iface addrs 192.168.0.20 10.0.1.18 set iface idle 0 set iface route 10.0.1.0/24 set pptp peer 1.2.3.4 set bundle disable multilink set bundle authname me set bundle password mypassword set link yes acfcomp protocomp set link no pap set link yes chap # If remote machine is NT you need this.. set link enable no-orig-auth set link keep-alive 10 75 set ipcp no vjcomp set ipcp ranges 192.168.0.20/32 10.0.1.18/32 where 1.2.3.4 is the public IP address of the office 192.168.0.20 is the internal NIC of my dual-homed gateway 10.0.1.0/24 is the interal office LAN -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practical examples To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message