From owner-freebsd-questions@freebsd.org Fri Feb 7 06:05:57 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 957FC244269 for ; Fri, 7 Feb 2020 06:05:57 +0000 (UTC) (envelope-from hamdi20193d@gmail.com) Received: from mail-vs1-xe2f.google.com (mail-vs1-xe2f.google.com [IPv6:2607:f8b0:4864:20::e2f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48DPtX2Vw9z49Fn; Fri, 7 Feb 2020 06:05:56 +0000 (UTC) (envelope-from hamdi20193d@gmail.com) Received: by mail-vs1-xe2f.google.com with SMTP id r18so520743vso.5; Thu, 06 Feb 2020 22:05:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=BVB24txTVPbFWvPx2WQq50AAZGSy5t/Y4P+/By5z9Kg=; b=lST4ivmLSHbvBTdWDti7qhcJADTW7R3MfkqtZQ68TCXXGj2iztfzVc3MEI+vQ7H2he 4761usfzs2Hxt0pS8zqnfbxaP2gK7wwnPhkbsVO+P+i9/osxMakwTYL6qZhtzDtIhBe/ yJN9RJLJcN1ez8PkAirdVnPc0FmvJM3edqwZQjO5DI20a3OWc7s12srhSrkEV6v6jfZW q4Nr0fHNsBAIPlnD/MebMyLCZzoO39fK9EvTxN4CjtVFff3o8fgJ4pvQlrza8KUwK60f VExJHkuh72eFWn8e0ldD57rdXV9e14YW7qQBR2iX1L/SL7VkSNJ4WvmHU4QCuyNgXMoN aZMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=BVB24txTVPbFWvPx2WQq50AAZGSy5t/Y4P+/By5z9Kg=; b=qiDfP4amFxX98CMMQ2moQcmvx96vi3Eldq/zPZZTSTezXdcd0rwCn/DjBZBD0fjg5c AYp23x/K8ko4bY1tZMFHcG66RqoGyYtvL3B9j0BC59Qy22M+QNyMrdzIDS+lA4Cj6ckW kbU5aGiveAqAKEoqgdt/R8to+IPpbsPGWoehLiwlZbbPfudWdPJEIgAHXbq7rQVhEIDW MoaP4g6ZMia4REIjEs+WAf6BsD4zKoeEXqLiSMvSC+7t/LbUkNUjsIVeJIASh2D4Ytaz MwaqhnGbAMtfwwvrdcBr+842s0qKUEjpDSfmQnOE/fVRASjN9AvUfetqgQuWMiKPbRBD wcRg== X-Gm-Message-State: APjAAAWD3rQjS+Bq+jxFNxiFwsML4ReiUN7BwwLxGnfgNKrp+K0MjoMk RJKdTcR4635YN1MieDjyETZtsMjVsKCMmOueCYf6xQ== X-Google-Smtp-Source: APXvYqwgFnO1A3b8AmeT3z/kZjcObA6kunTJMoKRdMDI8S4yMZfjx6n9psXznNOJPftcmyiYSCPU1uCTYkE27EqaWpw= X-Received: by 2002:a67:6601:: with SMTP id a1mr4004713vsc.0.1581055554982; Thu, 06 Feb 2020 22:05:54 -0800 (PST) MIME-Version: 1.0 References: <20200205213024.GA9143@vega.codepro.be> In-Reply-To: <20200205213024.GA9143@vega.codepro.be> From: Andreas X Date: Fri, 7 Feb 2020 09:05:46 +0300 Message-ID: Subject: Re: ipfw for udp on FreeBSD 12.1? To: Kristof Provost , freebsd-questions@freebsd.org X-Rspamd-Queue-Id: 48DPtX2Vw9z49Fn X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=lST4ivmL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of hamdi20193d@gmail.com designates 2607:f8b0:4864:20::e2f as permitted sender) smtp.mailfrom=hamdi20193d@gmail.com X-Spamd-Result: default: False [-1.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_TWO(0.00)[2]; URI_COUNT_ODD(1.00)[3]; IP_SCORE_FREEMAIL(0.00)[]; IP_SCORE(0.00)[ip: (-9.58), ipnet: 2607:f8b0::/32(-1.97), asn: 15169(-1.74), country: US(-0.05)]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[f.2.e.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Feb 2020 06:05:57 -0000 Thank you so much Kristof, That worked! Regards. Kristof Provost , 6 =C5=9Eub 2020 Per, 00:30 tarihinde =C5= =9Funu yazd=C4=B1: > On 2020-02-06 00:21:10 (+0300), Andreas X wrote: > > Hello. > > > > I use ipfw with options such as: firewall_type=3D"workstation" and > > firewall_myservices=3D"21 22 80 443" for my server via rc.conf file. > > > > I need to add an UDP port range to allow, for vsftpd (PASV). However ip= fw > > doesn't has any settings as I heard and "firewall_myservices" only > supports > > TCP ports. Any idea how to manage that issue? > > > > The internet has a lot of tutorials for adding "firewall_myservices_tcp= " > > "firewall_myservices_udp" support, none of them worked for 12.1 > > > > And, anyone got any idea why FreeBSD 10 supports such tags for IPFW, bu= t > > 12.1 not? > > > > > https://svnweb.freebsd.org/base/head/etc/rc.firewall?view=3Dmarkup&pathre= v=3D273201 > > I'd expect firewall_myservices=3D"53/udp" to open UDP port 53. > > As per that commit message you should update your existing services to > be 21/tcp and such. > > Regards, > Kristof >