From owner-freebsd-bugs Sat Sep 1 8:10: 6 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 8144437B40A for ; Sat, 1 Sep 2001 08:10:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f81FA2F43813; Sat, 1 Sep 2001 08:10:02 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DC5D037B40A for ; Sat, 1 Sep 2001 08:07:09 -0700 (PDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f81F79S35239; Sat, 1 Sep 2001 08:07:09 -0700 (PDT) (envelope-from nobody) Message-Id: <200109011507.f81F79S35239@freefall.freebsd.org> Date: Sat, 1 Sep 2001 08:07:09 -0700 (PDT) From: Flemming Jacobsen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/30255: [PATCH] Packets reinjected by natd but denied by ipfw generates annoying errors Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30255 >Category: misc >Synopsis: [PATCH] Packets reinjected by natd but denied by ipfw generates annoying errors >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Sep 01 08:10:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Flemming Jacobsen >Release: 4-stable >Organization: >Environment: N/A >Description: When natd tries to reinject a packet which is denied by a (later) ipfw rule annoying logmessages of the form: natd[pid]: failed to write packet back (Permission denied) are generated. This patch adds an option to suppress these messages. >How-To-Repeat: Install FreeBSD on system with two network cards. Setup nat'ing. Add an ipfw after the divert rule denying traffic. Watch the logmessages. >Fix: Apply patch from: http://www.batmule.dk/FreeBSD/natd.EACCES.udiff Add "-nolog_ipfw_denied" to natd commandline Messages suppressed. The patch has been tested on 3 moderatly used firewalls for nearly 5+ months without any noticeable ill effects. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message