From owner-freebsd-questions Sun Sep 26 16:23:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from awfulhak.org (dynamic-100.max1-du-ws.dialnetwork.pavilion.co.uk [212.74.8.100]) by hub.freebsd.org (Postfix) with ESMTP id 4FA0415099 for ; Sun, 26 Sep 1999 16:23:25 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (root@keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id AAA03377; Mon, 27 Sep 1999 00:23:23 +0100 (BST) (envelope-from brian@lan.awfulhak.org) Received: from keep.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id AAA29619; Mon, 27 Sep 1999 00:29:44 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199909262329.AAA29619@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Eric MASSON Cc: FreeBSD Questions Subject: Re: ppp : dial different numbers depending on network to reach ? In-reply-to: Your message of "Thu, 23 Sep 1999 17:26:37 +0200." <37EA46AD.2607F66C@kisoft-services.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 27 Sep 1999 00:29:44 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Run two invocations of ppp -auto. > Hello, > > Is there any way with ppp (userland or kernel) to make it dial different > numbers depending on the network to reach ? > > Explanation : (Some ASCII art :) > > 192.168.1.0/24 192.168.1.1 > +----------------+ lan +---------------+ > | Box on the lan |-----| Bsd box (ppp) | > +----------------+ +---------------+ > | Modem or ISDN-TA > / \ pstn or isdn > / \ > NT remote lan_/ \_Internet > 192.168.0.0/24 0.0.0.0/0 > Office Phone number Isp phone number > > The Bsd box 192.168.1.1 is the default gateway for 192.168.1.0/24 lan. > I'd like it to dial via ppp to "Office phone number" if there's an > attempt to reach 192.168.0.0/24 lan and otherwise dial "Isp phone > number". > Is there a way to do that given the fact i have only one sio port on the > bsd box (so only one TA or Modem as well) > > Regards > > Eric > > -- > Any opinions expressed above | Murphy's Law Corollary : > are my own, not Kisoft's | Murphy was an optimist. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message