limit bandwidth for a process

xpetrl xpetrl at beepc.ch
Tue Jun 23 07:54:30 UTC 2020



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 at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to 
>> "freebsd-questions-unsubscribe at 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list