Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Apr 2019 14:48:35 +0000 (UTC)
From:      Benedict Reuschling <bcr@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r52944 - head/en_US.ISO8859-1/books/handbook/firewalls
Message-ID:  <201904191448.x3JEmZqG043802@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bcr
Date: Fri Apr 19 14:48:34 2019
New Revision: 52944
URL: https://svnweb.freebsd.org/changeset/doc/52944

Log:
  Revert a sysrc to an echo as it due to invalid characters.
  
  When running
      sysrc -f /etc/sysctl.conf net.inet.ip.fw.verbose_limit=5
  
  it throws the following error:
  
      sysrc: net.inet.ip.fw.verbose_limit: name contains characters not allowed in
  shell
  
  Fix this by reverting to using an echo to add the sysctl to sysctl.conf.
  
  Reported by:	    Laurent Gilbert (lg.athome@free.fr)
  Event:		    Aberdeen hackathon 2019

Modified:
  head/en_US.ISO8859-1/books/handbook/firewalls/chapter.xml

Modified: head/en_US.ISO8859-1/books/handbook/firewalls/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/handbook/firewalls/chapter.xml	Fri Apr 19 13:27:45 2019	(r52943)
+++ head/en_US.ISO8859-1/books/handbook/firewalls/chapter.xml	Fri Apr 19 14:48:34 2019	(r52944)
@@ -1708,7 +1708,7 @@ options         ALTQ_PRIQ       # Priority Queuing (PR
 	logged per connection attempt, specify the number using this
 	line in <filename>/etc/sysctl.conf</filename>:</para>
 
-      <screen>&prompt.root; <userinput>sysrc -f /etc/sysctl.conf net.inet.ip.fw.verbose_limit=<replaceable>5</replaceable></userinput></screen>
+      <screen>&prompt.root; <userinput>echo "net.inet.ip.fw.verbose_limit=<replaceable>5</replaceable>" >> /etc/sysctl.conf</userinput></screen>
 
       <para>To enable logging through a dedicated interface named
 	<literal>ipfw0</literal>, add this line to



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