From owner-freebsd-current@FreeBSD.ORG Fri Oct 10 20:39:06 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8FB388F9 for ; Fri, 10 Oct 2014 20:39:06 +0000 (UTC) Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2A966EF4 for ; Fri, 10 Oct 2014 20:39:06 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id a1so4766103wgh.11 for ; Fri, 10 Oct 2014 13:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=h5yEk32wupUQrJpFe6jkYGPiR9JAYlgOrGxSwWWQxu0=; b=cG3njL3HRCMLote4a3Qk9t0sT/sdBwneSzSG/B5QMw7ONEqS7QZ7z3cfK7dnebzoph SGKhDnmGzQibdPNt/ueCWOk65kbmH9TxsQinmDZrnoYodokT7Vx8fEPhDDO47b2aeJYr h/6hwmXMPj5mm1anB3tN/H1q55X6qPWS6QS9Z8nA46zIW2yPUwhMOHmQKSe037RCxDD/ 0t+gWc4VYrUw8QIEJijwEuJxNIOrCuAXS+EEkTlrlVEvISzFB2Hu9W4Wr6vIQ2duf9Bv s46xx2ocwRF+pIUa6Tq1K1HZPrWvxeRtF+CvfRXgMnfkAfAQV6Ezpk+68T3RQkhlNUcA TzDA== X-Received: by 10.180.223.100 with SMTP id qt4mr7098492wic.35.1412973543875; Fri, 10 Oct 2014 13:39:03 -0700 (PDT) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.194.164.73 with HTTP; Fri, 10 Oct 2014 13:38:43 -0700 (PDT) From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= Date: Fri, 10 Oct 2014 22:38:43 +0200 X-Google-Sender-Auth: sLTT2j2CrT7GBars7VXOv7Q8dOI Message-ID: Subject: Proposal for adding "firewall_myservices_udp" in etc/rc.conf To: "freebsd-current@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2014 20:39:06 -0000 For a simple workstation, we can use this simple configuration in /etc/rc.conf: firewall_type="workstation" firewall_enable="YES" firewall_myservices="22,80" firewall_allowservices="any" But the firewall_myservices allows only TCP services. It's not possible to declare UDP services (like a torrent client). This patch propose to add UDP services by 2 changes: 1. firewall_myservices became a deprecated alias, the new is firewall_myservices_tcp 2. A new firewall_myservices_udp variable is added. Patch attached to PR194292: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194292 What do you think ?