Bitmessage / PyBitmessage

Reference client for Bitmessage: a P2P encrypted decentralised communication protocol:
https://bitmessage.org/wiki/Main_Page
Other
2.81k stars 578 forks source link

SOCKS flood #834

Open PeterSurda opened 8 years ago

PeterSurda commented 8 years ago

Apparently, SOCKS (e.g. Tor) can get overloaded by syn flood. I haven't experienced this but people reported it in the general chan. One suggested solution is to reduce maximumNumberOfHalfOpenConnections when using Tor. Another one is to increase MaxClientCircuitsPending in torrc.

Apparently, this can happen on Tails, the suggestion is "either remove IsolateDestAddr and IsolateDestPort or increase the MaxClientCircuitsPending but consult the manual first."

Maybe PyBitmessage can try to detect Tor config and adjust accordingly. Apparently Tor has a RPC so maybe this can be used for this purpose.

Having a large number of half-open connections is considered abuse of Tor.

PeterSurda commented 8 years ago

Partially addressed in mailchuck@225789d01f7b1c91cce48068f892313c3d3dab7f where I reduced the value to 4. It will be addressed more thorougly during 0.8 milestone.