From owner-freebsd-questions@freebsd.org Tue Jun 23 08:05:06 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 7CC5A34CF7F for ; Tue, 23 Jun 2020 08:05:06 +0000 (UTC) (envelope-from wesley@freenetMail.de) Received: from mout2.freenet.de (mout2.freenet.de [IPv6:2001:748:100:40::2:4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (Client CN "*.freenet.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49rf2n3zfVz4BB2 for ; Tue, 23 Jun 2020 08:05:05 +0000 (UTC) (envelope-from wesley@freenetMail.de) Received: from [195.4.92.165] (helo=mjail2.freenet.de) by mout2.freenet.de with esmtpa (ID wesley@freenetMail.de) (port 25) (Exim 4.92 #3) id 1jndvS-00024n-C9 for freebsd-questions@freebsd.org; Tue, 23 Jun 2020 10:05:02 +0200 Received: from [::1] (port=60668 helo=mjail2.freenet.de) by mjail2.freenet.de with esmtpa (ID wesley@freenetMail.de) (Exim 4.92 #3) id 1jndvS-0005vg-BK for freebsd-questions@freebsd.org; Tue, 23 Jun 2020 10:05:02 +0200 Received: from sub3.freenet.de ([195.4.92.122]:41404) by mjail2.freenet.de with esmtpa (ID wesley@freenetMail.de) (Exim 4.92 #3) id 1jndsn-00048h-17 for freebsd-questions@freebsd.org; Tue, 23 Jun 2020 10:02:17 +0200 Received: from [113.106.251.87] (port=9138 helo=[172.20.59.136]) by sub3.freenet.de with esmtpsa (ID wesley@freenetMail.de) (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256) (port 587) (Exim 4.92 #3) id 1jndsm-0001d5-A5 for freebsd-questions@freebsd.org; Tue, 23 Jun 2020 10:02:17 +0200 Subject: Re: limit bandwidth for a process To: freebsd-questions@freebsd.org References: <8cb1b4a8-b839-e495-272e-1b12f0f2aa6b@freenetMail.de> From: Wesley Peng Message-ID: Date: Tue, 23 Jun 2020 16:02:08 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originated-At: 113.106.251.87!9138 X-Rspamd-Queue-Id: 49rf2n3zfVz4BB2 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of wesley@freenetMail.de has no SPF policy when checking 2001:748:100:40::2:4) smtp.mailfrom=wesley@freenetMail.de X-Spamd-Result: default: False [2.56 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.46)[0.462]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[freenetMail.de]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.51)[0.513]; NEURAL_SPAM_LONG(0.69)[0.685]; RCVD_IN_DNSWL_NONE(0.00)[2001:748:100:40::2:4:from]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:5430, ipnet:2001:748::/32, country:DE]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2020 08:05:06 -0000 xpetrl wrote: > FTP is using per default port 21 for command and random port for > transfer with clients. For this reason, isn't trivial to firewall an FTP > server and you have to use an FTP-Proxy, which makes the program useful > on firewall. yes, the data transfer port is changed every time, so package filter on specific port is hard to configure. I am looking for a solution for limitation bandwidth against specific process. is there such one? regards.