From owner-freebsd-bugs Sun Jan 21 13:50:19 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2F93E37B401 for ; Sun, 21 Jan 2001 13:50:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0LLo1Y11221; Sun, 21 Jan 2001 13:50:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C793237B401 for ; Sun, 21 Jan 2001 13:43:46 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0LLhkV10828; Sun, 21 Jan 2001 13:43:46 -0800 (PST) (envelope-from nobody) Message-Id: <200101212143.f0LLhkV10828@freefall.freebsd.org> Date: Sun, 21 Jan 2001 13:43:46 -0800 (PST) From: cyberwin@mail.ru To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/24513: new options for pppd Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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