1- On a Tor proxy server which is located in the internal network of an organization, how can I limit the bandwidth of a group of IP addresses or a specific IP address?
2- When I use the netstat -nat command, it shows me the addresses of those who are connected to the Tor server and are using a proxy. Am I right? How can I find out how much bandwidth an IP address uses?
I may be wrong about some assumptions but yes, tor does have options to limit bandwidth, this can be done in three ways:
BandwidthRate BandwidthBurst
Those two options are used to limit traffic speed, while keeping your advertised bandwidth untouched. They are generally used along AccountingMax and AccountingStart when your VPS is under data usage limits. For example, you have a rented VPS with a plan of max 1TB traffic, if you exceed it you may be charged more or get your connection shutdown/heavily reduced.
The other option is the one I use as it also limits the maximum number of circuits, the main purpose is to limit overall bandwidth:
MaxAdvertisedBandwidth
This last option is useful if you are running your relay on limited hardware, as I do, because by reducing the maximum number of circuits created, less CPU and RAM is used.