Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jun 2020 09:54:19 +0200
From:      xpetrl <xpetrl@beepc.ch>
To:        freebsd-questions@freebsd.org
Subject:   Re: limit bandwidth for a process
Message-ID:  <e815e567-cf0f-b9e7-f02d-be11fd3adbdc@beepc.ch>
In-Reply-To: <a976953e-1124-5eb5-7e4a-94a00ebff3bb@baywinds.org>
References:  <8cb1b4a8-b839-e495-272e-1b12f0f2aa6b@freenetMail.de> <a976953e-1124-5eb5-7e4a-94a00ebff3bb@baywinds.org>

next in thread | previous in thread | raw e-mail | index | archive | help


On 6/23/20 6:32 AM, Bruce Ferrell wrote:
> On 6/22/20 6:28 PM, Wesley wrote:
>> Hi
>>
>> How can I limit a process's bandwidth usage in freebsd?
>> For example, I want proftpd can consume max bandwidth 50mb.
>>
>> Thanks.
>> _______________________________________________
>> freebsd-questions@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to 
>> "freebsd-questions-unsubscribe@freebsd.org"
>>
> At the OS level, there is little you can do.  At the the firewall, you 
> can limit the bandwidth the ports used by FTP uses.
> 

Yes, at firewall level, i.e. PF (Packet filtering) can do that.

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.

_______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e815e567-cf0f-b9e7-f02d-be11fd3adbdc>