monero-sendrawtransaction-counter

command module
v0.0.0-...-e4fcca4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

Monero node sendrawtransaction unique IP counting reverse proxy

This tool is designed to catch malicious reverse proxies that leech of public nodes and is used by Chainanalysis and probably others.

All it does is count unique IPs that hit /send_raw_transaction and /sendrawtransaction endpoints and pass the unmodified traffic to Monero node.

Usage

Install via:

go install github.com/digilolnet/monero-sendrawtransaction-counter

Usage:

Usage of ./monero-sendrawtransaction-counter:
  -bind string
        Bind address to listen on (default ":18081")
  -metrics-pass string
        Password for metrics endpoint (leave empty for no protection)
  -metrics-user string
        Username for metrics endpoint (leave empty for no protection)
  -upstream string
        The upstream server URL (default "http://localhost:8081")
  -use-x-forwarded
        Use X-Forwarded-For header to get client IP

Example:

monero-sendrawtransaction-counter -bind :18081 -upstream http://localhost:8081 -metrics-user admin -metrics-pass supersecure

All the metrics are exposed in Prometheus format under the /metrics endpoint.

License

Licensed under the Apache License, Version 2.0

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL