*BSD News Article 95225


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.caldera.com!enews.sgi.com!news.mathworks.com!howland.erols.net!surfnet.nl!feed2.belnet.be!news.belnet.be!feed1.news.innet.be!INbe.net!stns.news.pipex.net!warm.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: silly server
Date: 13 May 1997 13:52:25 GMT
Organization: Awfulhak Ltd.
Lines: 89
Message-ID: <5l9rmp$gqi@ui-gate.utell.co.uk>
References: <336EE6AB.41C67EA6@usa.net> <5kng9c$k13@ui-gate.utell.co.uk>
    <337508DC.41C67EA6@usa.net>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:40794

In article <337508DC.41C67EA6@usa.net>,
	rob <rob.abbott@usa.net> writes:
> (my internet connection works...)
>> > fine so long as I use the localhost address.  But if I try to access
>> > my server my ip address (which is dynamically set when I dial up) or try
>> > to ping myself -- no response whatsoever.
> 
> ....
> 
>> You'll need to post the output of "netstat -rn" and tell us what the
>> IP number is.  Also, what are you using to dial up (ppp,pppd,slattach
>> etc) and what do the config files look like.
> 
> ....
> 
> Ok, here goes.  I'd really like to see if I can get this to work.
> 
> ----------------------------- netstat ------------------------
> bash$ netstat -rn
> Routing tables
> 
> Internet:
> Destination        Gateway            Flags     Refs     Use     Netif
> Expire
> default            192.41.96.9        UGSc       16      358      tun0
> 127.0.0.1          127.0.0.1          UH          0       34       lo0
> 192.41.96.9        192.41.69.46       UH         16        0      tun0
> 
> I am using the program ppp to hook up.  Here are (hopefully)
> the relavant files???
> 
> ---------------------- ppp.conf ------------------------------
>  bash$ cat ppp.conf
> default:
>         set device /dev/cuaa1
>         set speed 38400
>         disable lqr
>         deny lqr
>         set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0
> OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"
> its:
>         set phone (my provider's number)
>         set login "TIMEOUT 10 sername: (my username) word: (my
> password)"
>         set timeout 120
>         set ifaddr 0 0
> its_auto:
>         set phone (my provider's number)
>         set login "TIMEOUT 10 sername: (my username) word: (my
> password)"
>         set timeout 120
>         set ifaddr 10.10.10.10/0 10.10.11.11/0 255.255.255.0
>         delete ALL
>         add 0 0 HISADDR
>         set openmode active
> 
> ------------------------ ppp.linkup -----------------------------
> MYADDR:
>    delete ALL
>    add 0 0 HISADDR
> -------------------------------------------------------------------
> 
> To hook up I use 
> ppp its    .... then
> dial
> 
> I haven't been able to get the -auto option for ppp to work at all
> (it doesn't seem to respond when I try to access the web)
> 
> 
> I suspect there may be other relavant files.  What would they be?

The problem is that HISADDR is invalid in ppp.conf - it's only
available in ppp.linkup.  Try using

    add 0 0 10.10.11.11

> Thanks, rob.

And before you say anything (like, but hang on a minute, I didn't
make this up y'know ;)  The handbook and the ppp.conf.sample
files have been updated !  I got it wrong :O

Your -auto switch should work now too !

-- 
Brian <brian@awfulhak.org> <brian@freebsd.org>
      <http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour !