[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ppp: allow users



> Hi,
> 
> when I run ppp as root to access my ADSL provider,
> everything works fine. But I can't connect, when
> running it as a normal user "alex":
> 
>   pref# chmod go+rw /dev/tun[012]
>   pref# ll /dev/tun[012]
>   crw-rw-rw-  1 root  wheel   40,   0 Aug  1 17:24 /dev/tun0
>   crw-rw-rw-  1 root  wheel   40,   1 Jun 30 13:27 /dev/tun1
>   crw-rw-rw-  1 root  wheel   40,   2 Jun 30 13:27 /dev/tun2
>   pref# exit

Changing permissions on /dev/tun* isn't necessary.

>   pref:alex {117} ppp tdsl
>   Working in interactive mode
>   Using interface: tun0
>   Warning: Add route failed: 0.0.0.0: errno: No such process
>   ppp ON pref> dial
>   ppp ON pref>
>   ppp ON pref>
> 
> The "tail -f /var/log/ppp.log" shows following:
[.....]
>   Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: login -> lcp
>   Aug  1 17:32:39 pref ppp[19064]: tun0: LCP: FSM: Using "deflink" as a transport
>   Aug  1 17:32:39 pref ppp[19064]: tun0: LCP: deflink: State change Initial --> Closed
>   Aug  1 17:32:39 pref ppp[19064]: tun0: LCP: deflink: State change Closed --> Stopped
>   Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: read (2): Connection reset by peer
[.....]

This looks as if pppoe(8) is failing.

> Regards
> Alex
> 
> PS: I wonder also, how to get rid of the
> 
>       Warning: Add route failed: 0.0.0.0: errno: No such process
> 
>     message at the ppp's start?

Move the ``add default HISADDR'' to /etc/ppp/ppp.linkup.  It produces 
that warning if you're not running in -auto mode as the interface 
configuration is deferred 'till IPCP is up and HISADDR is still 
0.0.0.0.

-- 
Brian <brian@freebsd-services.com>                <brian@Awfulhak.org>
      http://www.freebsd-services.com/        <brian@[uk.]FreeBSD.org>
Don't _EVER_ lose your sense of humour !      <brian@[uk.]OpenBSD.org>