<div class="gmail_quote"><div>Hello,<br><br>is there any easy way, how to limit connections for Tor? Thousands of connections often breaks my lowcost ADSL router at home and I have to restart it.<br><br>I think it should be similar option like Bandwidth rate. Or is there any reason, why there must be thousands of connection from point of Tor network design?<br>
<br>Thanks,<br>Marek<br>&nbsp; <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
This happens because the user tor is running as has a system-imposed limit<br>
on the number of open file descriptors - one file descriptor corresponds to<br>
one open file or socket. Many linux systems use &#39;1024&#39; as the default value<br>
here - which is probably what yours is.<br>
<br>
The solution to this problem is to raise that limit for tor&#39;s user; first by<br>
figuring out what user tor is running as (&#39;ps aux&#39; will show this alongside<br>
the process). Then, you or your sysadmin should raise the FD limit for that<br>
user to something more reasonable for a socket-hungry application like tor.<br>
I use 4096.<br>
</blockquote></div><br>