From owner-freebsd-questions@FreeBSD.ORG Sat Oct 18 15:52:42 2003 Return-Path: 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 E64D216A4B3 for ; Sat, 18 Oct 2003 15:52:42 -0700 (PDT) Received: from web20701.mail.yahoo.com (web20701.mail.yahoo.com [216.136.226.174]) by mx1.FreeBSD.org (Postfix) with SMTP id 6FB4543FBF for ; Sat, 18 Oct 2003 15:52:40 -0700 (PDT) (envelope-from ath101a@yahoo.com) Message-ID: <20031018225239.83847.qmail@web20701.mail.yahoo.com> Received: from [66.219.73.30] by web20701.mail.yahoo.com via HTTP; Sat, 18 Oct 2003 15:52:39 PDT Date: Sat, 18 Oct 2003 15:52:39 -0700 (PDT) From: Andrew Thomas To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: PPP dialin server (-direct) won't route traffic - sets incorrect gateway on PC X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2003 22:52:43 -0000 I'm trying allow a dialin connection to my 4.8-STABLE box (although I've tried with my 5.1-CURRENT box with the same results) via userland ppp. The modem can connect just fine and I can login to the machine. I then start ppp. However, no matter how I setup ppp, I cannot get the routing to work. Yes, the server side HAS 'gateway_enable="YES"' in rc.conf (the machine routes for my network already). I started with an old ppp config file that used to work. It doesn't anymore. So, I started following the handbook pages - even verbatim. But, the PC side always ends up with something similar to the following: ---------------------- Active Routes: Network Address Netmask Gateway Address Interface Metric 0.0.0.0 0.0.0.0 192.168.201.2 192.168.201.2 1 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 192.168.201.0 255.255.255.0 192.168.201.2 192.168.201.2 1 192.168.201.2 255.255.255.255 127.0.0.1 127.0.0.1 1 192.168.201.255 255.255.255.255 192.168.201.2 192.168.201.2 1 224.0.0.0 224.0.0.0 192.168.201.2 192.168.201.2 1 255.255.255.255 255.255.255.255 192.168.201.2 192.168.201.2 1 ---------------------- Notice that there is no 'next hop' (that is always the case, not matter what ppp.conf looks like). The gateway address is *always* the PC address, not the server. How can the packets go anywhere with settings like that? It feels like there's a bug in ppp where it sends the wrong address to the PC for what its gateway will be. Am I missing something? I've done this before - it was working fine up until early-ish last year - and it was a piece of cake. Now though, I can't get it to work to save my life. Can anyone help? It would be appreciated. Thanks Andy ps A long time ago I sent email to Brian about this but I never got a response. pps For completeness... -------------- ppp.conf dialin: set log All allow users dialin set timeout 0 enable dns accept dns deny pap disable pap deny chap disable chap disable lqr deny lqr set ifaddr 192.168.200.1 192.168.201.1 255.255.255.255 -------------- ppp.linkup dialin: add 192.168.201.0 netmask 255.255.255.0 HISADDR __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com