xmrig / xmrig-proxy

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

Multi bind host and pools #571

Closed MahdiJamal closed 3 months ago

MahdiJamal commented 3 months ago

I want 0.0.0.0:34343 to bind to c3pool.com:34653 and 0.0.0.0:3847 to bind to supportxmr.com:3453

I have already created two folders and placed an xmrig proxy in each folder and created a config for each.

Is there the best way?

I know the code below is wrong ( But it helps you understand what I mean better )

"bind": [
    {
        "host": "0.0.0.0",
        "port": 44444,
        "tls": true,
        "pools": {
            "algo": "rx/0",
            "coin": null,
            "url": "supportxmr.com:3453",
            "user": "346v457sv58brz68bzr6b8szr68z68rbzr68br687zrb8zr68xrb686rm8ct909",
            "pass": "x",
            "rig-id": null,
            "tls": true,
            "keepalive": true,
            "nicehash": false,
            "enabled": true,
            "sni": false,
            "tls-fingerprint": null,
            "daemon": false,
            "socks5": null,
            "self-select": null,
            "submit-to-origin": false
        }
    },
    {
        "host": "0.0.0.0",
        "port": 55555,
        "tls": true,
        "pools": {
            "algo": "rx/0",
            "coin": null,
            "url": "c3pool.com:12431",
            "user": "346v457sv58brz68bzr6b8szr68z68rbzr68br687zrb8zr68xrb686rm8ct909",
            "pass": "x",
            "rig-id": null,
            "tls": true,
            "keepalive": true,
            "nicehash": false,
            "enabled": true,
            "sni": false,
            "tls-fingerprint": null,
            "daemon": false,
            "socks5": null,
            "self-select": null,
            "submit-to-origin": false
        }
    },
]
SChernykh commented 3 months ago

You need a separate config per proxy, with only one pool in each config. Yes, you can run two proxies on one host if you run them from different folders.