Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 2006 20:28:40 +0000
From:      peter harrison <harrisons.piggybox@tiscali.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Odd ppp and route problem...
Message-ID:  <20060309202840.GA722@desktop.piggybox>

next in thread | raw e-mail | index | archive | help
Hello all,

I'm trying to get inbound ppp working on my freebsd box. I've reached the point where I can get the other machine to connect to my box via tun0, and the 2 can ping each other.

However, the client on the other end can ping anything else on my LAN. My set up looks like this:

Gateway (192.168.1.1)
	|
	|
	|
FreeBSD (192.168.1.2)
	|
	|
	|
ppp connection (192.168.1.10)

So 192.168.1.10 can ping 192.168.1.2 but can't ping 192.168.1.1

The command I'm running is /usr/sbin/ppp -auto palm, and this is on 6.0-RELEASEp4

The ppp client making the connection to the FreeBSD box is a Palm Tungsten E via USB cable.

I've read the (brief) handbook section on inbound ppp, the ppp man page, and googled a bit and I can't work out what I'm doing wrong - but it's probably something basic!

Any help or advice greatly appreciated!

Peter Harrison (see further info below)

-------------------------------------------------------

Here's the output of netstat while the connection's up:

Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.1.1        UGS         0      699   sis0
127.0.0.1          127.0.0.1          UH          0       22    lo0
192.168.1          link#1             UC          0        0   sis0
192.168.1.1        00:14:bf:94:1e:75  UHLW        2    12368   sis0    548
192.168.1.10       192.168.1.2        UH          0        0   tun0

And here's my ppp.conf:

#################################################################
# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.10 2004/11/19 17:12:56 obrien Exp $
#################################################################

default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)

 # Ensure that "device" references the correct serial port
 # for your modem. (cuad0 = COM1, cuad1 = COM2)
 #
 set device /dev/cuad1

 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
           \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set timeout 180			# 3 minute idle timer (the default)
# enable dns				# request DNS info (for resolv.conf)

papchap:
 #
 # edit the next three lines and replace the items in caps with
 # the values which have been assigned by your ISP.
 #

 set phone PHONE_NUM
 set authname USERNAME
 set authkey PASSWORD

 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR			# Add a (sticky) default route

palm:
	set device /dev/ttyU0
	set cd off
	set dial
	set speed 57600
	set timeout 300
	set redial 5 0
	set reconnect 3 5
	set ctsrts on
	set ifaddr 192.168.1.2 192.168.1.10 255.255.255.255
	open



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060309202840.GA722>