Bug 127290

Summary: FAQ book: discourage the use of port 53 for outgoing DNS queries
Product: Documentation Reporter: Aleksandr Stankevic <alex>
Component: Books & ArticlesAssignee: Gabor Pali <pgj>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
127290.patch.diff none

Description Aleksandr Stankevic 2008-09-11 08:30:02 UTC
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/security.html#EXTRA-NAMED-PORT

-- quote --
BIND uses a random high-numbered port for outgoing queries. If you want to use port 53 for outgoing queries, either to get past a firewall or to make yourself feel better, you can try the following in /etc/namedb/named.conf:

options {
        query-source address * port 53;
};

You can replace the * with a single IP address if you want to tighten things further.
-- quote --

We should discourage the use of query-source address * port 53 because of the last vulnerability in DNS.
Comment 1 Gabor Pali freebsd_committer freebsd_triage 2008-09-11 12:38:38 UTC
Responsible Changed
From-To: freebsd-doc->pgj

Take.
Comment 2 Gabor Pali freebsd_committer freebsd_triage 2008-09-29 10:04:10 UTC
Hello Aleksandr,

How do you like this patch?  Please review and comment on it.

Thanks,
:g
Comment 3 alex 2008-09-30 12:11:13 UTC
(re-mailing with CC to gnats)

Sounds fine to me. 


On Mon, 2008-09-29 at 11:04 +0200, Gabor PALI wrote:
> Hello Aleksandr,
> 
> How do you like this patch?  Please review and comment on it.
> 
> Thanks,
> :g
> 
> plain text document attachment (127290.patch.diff)
> Index: book.sgml
> ===================================================================
> RCS file: /home/dcvs/doc/en_US.ISO8859-1/books/faq/book.sgml,v
> retrieving revision 1.1099
> diff -u -r1.1099 book.sgml
> --- book.sgml	21 Aug 2008 20:53:08 -0000	1.1099
> +++ book.sgml	26 Sep 2008 16:33:10 -0000
> @@ -8479,23 +8479,30 @@
>  
>        <qandaentry>
>  	<question id="extra-named-port">
> -	  <para>BIND (<command>named</command>) is listening on port 53
> -	    and some other high-numbered port.  What is going on?</para>
> +	  <para>BIND (<command>named</command>) is listening on
> +	    some high-numbered ports.  What is going on?</para>
>  	</question>
>  
>  	<answer>
>  	  <para>BIND uses a random high-numbered port for outgoing
> -	    queries.  If you want to use port 53 for outgoing queries,
> -	    either to get past a firewall or to make yourself feel
> -	    better, you can try the following in
> -	    <filename>/etc/namedb/named.conf</filename>:</para>
> -
> -	  <programlisting>options {
> -        query-source address * port 53;
> -};</programlisting>
> +	    queries.  Recent versions of it choose a new, random UDP
> +	    port for each query.  This may cause problems for some
> +	    network configurations, especially if a firewall blocks
> +	    incoming UDP packets on particular ports.  If you want to
> +	    get past that firewall, you can try the
> +	    <literal>avoid-v4-udp-ports</literal> and
> +	    <literal>avoid-v6-udp-ports</literal> options to avoid
> +	    selecting random port numbers within a blocked range.</para>
>  
> -	  <para>You can replace the <literal>*</literal> with a single
> -	    IP address if you want to tighten things further.</para>
> +	  <warning>
> +	    <para>If a port number (like 53) is specified via the
> +	      <literal>query-source</literal> or
> +	      <literal>query-source-v6</literal> options in
> +	      <filename>/etc/namedb/named.conf</filename>, randomized
> +	      port selection will not be used.  It is strongly
> +	      recommended that these options not be used to specify
> +	      fixed port numbers.</para>
> +	  </warning>
>  
>  	  <para>Congratulations, by the way.  It is good practice to
>  	    read your &man.sockstat.1; output and notice odd

-- 
Aleksandr Stankevic
UNIX system administrator
Comment 4 dfilter service freebsd_committer freebsd_triage 2008-10-02 13:33:04 UTC
pgj         2008-10-02 12:32:56 UTC

  FreeBSD doc repository

  Modified files:
    en_US.ISO8859-1/books/faq book.sgml 
  Log:
  Update Question 13.3 (extra-named-port):
  - Discourage the use of port 53 for outgoing DNS queries
  
  PR:     docs/127290
  Submitted by:   Aleksandr Stankevic <alex (at) braske (dot) net>
  Approved by:    gabor (mentor)
  
  Revision  Changes    Path
  1.1100    +19 -12    doc/en_US.ISO8859-1/books/faq/book.sgml
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Gabor Pali freebsd_committer freebsd_triage 2008-10-02 14:13:34 UTC
State Changed
From-To: open->closed

I have committed the patch I offered.  Thank you for your cooperation 
and for your suggestion.