xmrig / xmrig-proxy

Monero (XMR) Stratum protocol proxy
https://xmrig.com/proxy
GNU General Public License v3.0
612 stars 331 forks source link

Rejecting connections. #475

Open balsaboskovic opened 2 years ago

balsaboskovic commented 2 years ago

Hi, I have had this problem for over a year with proxy. After 3/4h of mining, xmrig-proxy stops accepting new miner connections if it reconnects, also API stops responding. In simplified, proxy can't accept any sort of new connection (API, miner) after 4/5h of mining. Miners already connected continue to mine but if I restart miners or do something, Proxy does not accept them and API is unreachable. After restarting Proxy, all go back to normal, and after 4/5h it breaks again. Please fix the problem, it is an Xmrig-Proxy problem because I've tried: -Different OS (CentOS/Debian) -Open Files Limit increased -Swap file activated -With TLS/noTLS (pool/miners) -Keepalive on/off (pool/miners) -Different Pools, coins, algos

pr0vieh commented 2 years ago

i have exactly the same Problem with Version

lfaoro commented 2 years ago

@balsaboskovic @pr0vieh check your established connections, someone might be flooding your proxy. netstat -antpl or ss

count how many connections you have open netstat -antpl |wc -l see if most of these are from a single ip and block it in the firewall ufw insert 1 deny from <rogue IP>

compare netstat -antpl |wc -l w/ netstat -antpl |uniq |wc -l, if for example you see 1,000 connections and only 300 unique ones, then you have a rogue machine flooding you.