Date: Sat, 18 Oct 2003 15:52:39 -0700 (PDT) From: Andrew Thomas <ath101a@yahoo.com> To: freebsd-questions@freebsd.org Subject: PPP dialin server (-direct) won't route traffic - sets incorrect gateway on PC Message-ID: <20031018225239.83847.qmail@web20701.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031018225239.83847.qmail>