From root@thehousleys.net  Tue May 16 19:47:07 2000
Return-Path: <root@thehousleys.net>
Received: from thehousleys.net (frenchknot.ne.mediaone.net [24.147.224.201])
	by hub.freebsd.org (Postfix) with ESMTP id 86E4137BB93
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 May 2000 19:47:04 -0700 (PDT)
	(envelope-from root@thehousleys.net)
Received: (from root@localhost)
	by thehousleys.net (8.9.3/8.9.3) id SAA00557;
	Tue, 16 May 2000 18:16:20 -0400 (EDT)
	(envelope-from root)
Message-Id: <200005162216.SAA00557@thehousleys.net>
Date: Tue, 16 May 2000 18:16:20 -0400 (EDT)
From: jim@thehousleys.net
Sender: root@thehousleys.net
Reply-To: jim@thehousleys.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: IPv6 example in /etc/hosts.allow
X-Send-Pr-Version: 3.2

>Number:         18614
>Category:       conf
>Synopsis:       There is no example in hosts.allow for IPv6 addresses
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 16 19:50:00 PDT 2000
>Closed-Date:    Wed Jul 19 06:09:26 PDT 2000
>Last-Modified:  Wed Jul 19 06:11:06 PDT 2000
>Originator:     James Housley
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
The Housleys dot Net
>Environment:

	

>Description:

	hosts_access(5) has information on using IPv6 addresses in
	the hosts.allow file, but a simple example in hosts.allow
	would also be benificial.

>How-To-Repeat:

	

>Fix:


--- hosts.allow	Fri May  5 13:58:34 2000
+++ hosts.allow.new	Tue May 16 18:11:37 2000
@@ -33,6 +33,9 @@
 # name) *MUST* be specified for portmap(8).
 ALL : localhost 127.0.0.1 : allow
 ALL : my.machine.example.com 192.0.2.35 : allow
+# To use IPv6 addresses you must enclose them in []'s
+ALL : [3ffe:fffe:2:1:2:3:4:3fe1] : deny
+ALL : [3ffe:fffe:2:1::]/64 : allow
 
 # Sendmail can help protect you against spammers and relay-rapers
 sendmail : localhost : allow

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ume 
State-Changed-When: Wed Jul 19 06:09:26 PDT 2000 
State-Changed-Why:  
Thanks!  Committed with two examples for link-local address. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=18614 
>Unformatted:
