Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Mar 2000 13:22:20 -0600
From:      "Doug Poland" <dpoland@execpc.com>
To:        <FreeBSD-Questions@FreeBSD.ORG>
Subject:   RE: How to trouble-shoot user ppp routing problem
Message-ID:  <NDBBKMNOJKJGAEKJNLIAGEFMDDAA.dpoland@execpc.com>
In-Reply-To: <38E3F06D.D4B6E39B@sympatico.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Doug Poland wrote:
> 
> > Hello,
> >
> > I'm using user ppp on a 3.1-RELEASE box.  I connect to my
> > ISP (dynamic IPs) and get my IP address and his IP address
> > (verified with ipconfig -u tun0) and the proper net mask.
> > The routing table (netstat -rn) has my tun0 IP address as
> > gateway to his address as destination.  His address is
> > the gateway to default.
> 
> I am assuming that by "his" address you are referring to 
> your isp? Anyway, are you sending the proper commands
> to ppp upon completion of the connection? most importantly 
> <add default> HISADDR
>
Yes, when I say "his" address, I'm referring to the ISP.
Here's my ppp.conf...

default:
 set log Phase Chat LCP IPCP CCP tun command
 set device /dev/cuaa0
 set speed 19200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT (wrapped)
    5 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
 allow users djp sybase

ExecPC:
 set phone 9686400|8306240
 set login
 set authname uid
 set authkey pwd
 set timeout 600
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR
 enable dns

>
>  Also, are you sure that the device is even intialized. 
>
Do you mean /dev/cuaa0?.  It's an external modem, it dials,
handshakes and the proper lights are blinking. I run either 
interactively or with -background or -auto switches and it 
get connected.  I'm verifying the assignment of IP addresses 
with ifconfig.  Here's an example:

% ifconfig -u tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1514
        inet 169.207.24.236 --> 169.207.111.79 netmask 0xffff0000

so I assume the device is initialized.  Here's a netstat

% netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            169.207.111.79     UGSc        2        0     tun0
10.20/16           link#1             UC          0        0      ed0
10.20.10.28        0:10:5a:d3:cf:a1   UHLW        1      132      ed0   1129
10.20.10.31        0:c0:4f:5a:f4:0    UHLW        0       14      ed0   1180
127.0.0.1          127.0.0.1          UH          0       31      lo0
169.207.111.79     169.207.24.236     UH          3        0     tun0

>
>  Do you have IPFW or IPFILTER operating ?
>
No, I'm not running either
 
>
> Are all of the necessary configuration files in /etc setup
> ie. nameservers, host tables etc. 
>
Yes.  Here's rc.conf...

% cat /etc/rc.conf
moused_port="/dev/psm0"
moused_enable="NO"
saver="fade"
blanktime="300"
keyrate="fast"
linux_enable="YES"
ntpdate_flags="ntp1.cs.wisc.edu ntp2.cs.wisc.edu ncar.ucar.edu"
ntpdate_enable="YES"
network_interfaces="ed0 lo0"
ifconfig_ed0="inet 10.20.1.121  netmask 255.255.0.0"
# gateway_enable="YES"
hostname="canaan.newresources.com"  

Here's resolv.conf... Note: these are all ISP entries,
nothing from my LAN

% cat /etc/resolv.conf
domain execpc.com
nameserver 169.207.1.3
nameserver 204.29.202.6

Here's hosts

% cat /etc/hosts
127.0.0.1               localhost.newresources.com localhost
10.20.1.121             canaan.newresources.com canaan
10.20.1.121             canaan.newresources.com.
10.20.10.11             judah

>
> Try and be a little more specific about your enviroment setup.
> 
The machine is running on a corporate intranet behind a novell
firewall.  The addresses you see in netstat and ifconfig are real.  

User ppp was working until about two weeks ago.  I had an 
unexpected power interruption (I accidentally pulled the
wrong plug out of a power strip).  This was on a Friday after-
noon and when I think back on it, I don't think ppp has worked
since then, but I won't swear it happened then.  
Could a file or device have been corrupted?

I'm wondering if somehow the IP requests are being routed not
through tun0 but ed0.  The blasted novell firewall only allows
http requests through, thus my need to dial out.

Thanks for your help!

> >
> >
> > Unfortunately, I cannot see outside my LAN.  When I ping the
> > IP address on the other side of tun0, ping just sits there.
> > So does any other attempt to access something outside my LAN.
> > No ftp, telnet, http, no nothing.
> >
> > How can I troubleshoot this problem?  It seems from the
> > ifconfig and netstat commands that everything is fine.
> >
> > Many thanks for your help...
> >
> > --
> > Doug Poland
> > dpoland@execpc.com
> >
> 
> --
> [ - deadpoint - ]
> ============================================================================
> Don't underestimate the power of stupid people in large groups.
> 
> Email: dp@penix.org
> BIO: http://bling.dyn.dhs.org
> GPG Key fingerprint: 2D7C A7E2 DB1F EA5F 8C6F  D5EC 3D39 F274 4AA3 E8B9
> Public Key available here: http://bling.dyn.dhs.org/dp.asc
> ============================================================================
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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