Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2001 13:43:46 -0800 (PST)
From:      cyberwin@mail.ru
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/24513: new options for pppd
Message-ID:  <200101212143.f0LLhkV10828@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


>Number:         24513
>Category:       misc
>Synopsis:       new options for pppd
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 21 13:50:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Kovirshin Alexey
>Release:        4.1-RELEASE
>Organization:
>Environment:
FreeBSD orb.ru 4.1-RELEASE FreeBSD 4.1-RELEASE
#2: Thu Jan 18 22:36:37 MSK 2001
root@orb.ru:/usr/src/sys/compile/PENTIUM  i386

>Description:
I've modifyed pppd sources and added 3 new options:
usepeerdns, update-resolv, hide-password
usepeerdns
    Ask the peer for up to 2 DNS server addresses.  The
    addresses supplied by the peer (if any) are  passed
    to  the  /etc/ppp/ip-up  script  in the environment
    variables DNS1 and DNS2.

update-resolv
    The /etc/resolv.conf will be updated with  the  DNS
    addresses  supplied by the peer (if any). But envi-
    ronment variables DNS1 and DNS2  are  still  avail-
    able.  This  option is work in conjunction with the
    usepeerdns option only.
hide-password
    When logging the  contents  of  PAP  packets,  this
    option  causes  pppd to exclude the password string
    from the log.

Options usepeerdns and hide-password i've taken from pppd-2.3.9,
but usepeerdns doesn't update resolve.conf automatically(like in 2.3.9)
so DNS addresses are available from DNS1, DNS2, USEPEERDNS
environment variables(usefull for /etc/ppp/ip-up(down) scripts).
Option update-resolv update resolv.conf automatically, but DNS1, DNS2,
USEPEERDNS environment variables are still available.

I hope it will be usefull when pppd acts as client.

>How-To-Repeat:

>Fix:
I've maked a patch which can be applied 
to /usr/src/usr.sbin/pppd sources by this way:

cd /usr/src/usr.sbin/pppd
patch < pppd-DNSask.patch




>Release-Note:
>Audit-Trail:
>Unformatted:


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




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