From owner-freebsd-net Thu Nov 30 16:58: 3 2000 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id DA31037B699 for ; Thu, 30 Nov 2000 16:57:52 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.1/8.11.1) with ESMTP id eB10s2819821; Fri, 1 Dec 2000 00:54:02 GMT (envelope-from brian@hak.lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.1/8.11.1) with ESMTP id eB10ttD23111; Fri, 1 Dec 2000 00:55:55 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200012010055.eB10ttD23111@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Andrea Venturoli Cc: freebsd-net@FreeBSD.org, brian@Awfulhak.org Subject: Re: ppp filters In-Reply-To: Message from Andrea Venturoli of "Thu, 30 Nov 2000 23:19:09 EST." <200011302219.eAUMJ5n11538@relay.flashnet.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 01 Dec 2000 00:55:54 +0000 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, If the aim is to have a program that actively keeps the connection alive without sending anything, I'd advise using ``set server'' (perhaps ``set server /tmp/mysocket "" 0177'' to listen for diagnostic connections and have a program/script that does pppctl /tmp/mysocket set timeout 30 as setting the timeout value will also reset the idle timer. > Routing note from: Andrea Venturoli 11/25/00 04:20pm > > Hello. > I'd like to have ppp work in auto mode; however I'd like to control exactly when it should > dial-up or hang, so I put the following in /etc/ppp/ppp.conf: > > set filter dial 0 permit udp dst eq 8081 > set filter alive 0 permit udp dst eq 8081 > set filter out 0 deny udp dst eq 8081 > set filter out 1 permit 0 0 > set timeout 30 > set mode auto > > > Then I wrote a small program that sends every 10 seconds an UDP packet to port 8081 to an > host outside my network. > When I start up this program ppp dials (as I expect), however blocking the packet with the > "out" filter prevents it from keeping the connection alive. > Is there a way to correct whis? > > Bye & Thanks > av. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message