From owner-freebsd-bugs Sat Apr 8 9: 0: 7 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 4C1A637BAA1 for ; Sat, 8 Apr 2000 09:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id JAA49320; Sat, 8 Apr 2000 09:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from smtp.millennium20.com (smtp.thecyberguys.net [209.79.190.13]) by hub.freebsd.org (Postfix) with ESMTP id 4A19337B5DD for ; Sat, 8 Apr 2000 08:51:58 -0700 (PDT) (envelope-from glennpj@bayouhome.net) Received: from gforce.johnson.home (1Cust88.tnt2.covington.la.da.uu.net [63.31.31.88]) by smtp.millennium20.com (8.10.0/8.10.0) with SMTP id e38FnU627466 for ; Sat, 8 Apr 2000 08:49:30 -0700 Received: (from glenn@localhost) by gforce.johnson.home (8.9.3/8.9.3) id KAA00871; Sat, 8 Apr 2000 10:51:51 -0500 (CDT) (envelope-from glenn) Message-Id: <200004081551.KAA00871@gforce.johnson.home> Date: Sat, 8 Apr 2000 10:51:51 -0500 (CDT) From: Glenn Johnson Reply-To: glennpj@bayouhome.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: conf/17865: Add ppp deny keep alive filter entries for NetBIOS Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 17865 >Category: conf >Synopsis: example ppp filters to keep NetBIOS from keeping link up >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Apr 8 09:00:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Glenn Johnson >Release: FreeBSD 4.0-STABLE i386 >Organization: >Environment: >Description: NetBIOS packets will keep a ppp link up longer than desirable in ppp -auto mode. This would apply to people with a network using Samba and ppp -auto as their Internet link. Example filter entries are in /usr/share/examples/ppp/ppp.conf.sample to show how to keep NetBIOS packets from triggering a dial. The enclosed patch adds example entries to show how to keep NetBIOS packets from keeping the connection alive unnecessarily. >How-To-Repeat: >Fix: Apply the enclosed patch to /usr/src/share/examples/ppp/ppp.conf.sample. --- /usr/src/share/examples/ppp/ppp.conf.sample.orig Tue Apr 4 17:27:14 2000 +++ /usr/src/share/examples/ppp/ppp.conf.sample Tue Apr 4 17:31:02 2000 @@ -218,8 +218,14 @@ set filter alive 1 deny udp dst eq 520 # routed set filter alive 2 deny udp src eq 513 # rwhod set filter alive 3 deny udp src eq 525 # timed - set filter alive 4 deny 0/0 MYADDR icmp # Ping to us from outside - set filter alive 5 permit 0/0 0/0 + set filter alive 4 deny udp src eq 137 # NetBIOS name service + set filter alive 5 deny udp src eq 138 # NetBIOS datagram service + set filter alive 6 deny udp src eq 139 # NetBIOS session service + set filter alive 7 deny udp dst eq 137 # NetBIOS name service + set filter alive 8 deny udp dst eq 138 # NetBIOS datagram service + set filter alive 9 deny udp dst eq 139 # NetBIOS session service + set filter alive 10 deny 0/0 MYADDR icmp # Ping to us from outside + set filter alive 11 permit 0/0 0/0 # # And in auto mode, we don't want certain packets to cause a dialup # >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message