fix(monerod): expose only the restricted RPC (#8) #21

Open
Lauria wants to merge 1 commit from fix/monero-restricted-rpc into main
Collaborator

Unrestricted monerod RPC (18081) was proxied publicly via monero.polensky.me: anyone on the internet could call stop_daemon, start_mining, set_limits, flush the txpool, or ban peers.

  • asus: bind unrestricted RPC to 127.0.0.1 (p2pool and the json-exporter are local), add a restricted RPC listener on 0.0.0.0:18089, drop 18081 from the firewall
  • server: point both Caddy vhosts and monero-wallet-monitor (view-only wallet) at asus:18089

Verified locally: nixos-rebuild build --flake .#server passes.

Closes #8

Unrestricted monerod RPC (18081) was proxied publicly via monero.polensky.me: anyone on the internet could call `stop_daemon`, `start_mining`, `set_limits`, flush the txpool, or ban peers. - **asus**: bind unrestricted RPC to 127.0.0.1 (p2pool and the json-exporter are local), add a restricted RPC listener on `0.0.0.0:18089`, drop 18081 from the firewall - **server**: point both Caddy vhosts and `monero-wallet-monitor` (view-only wallet) at `asus:18089` Verified locally: `nixos-rebuild build --flake .#server` passes. Closes #8
fix(monerod): expose only the restricted RPC — admin methods out of reach
All checks were successful
check / build-server (pull_request) Successful in 54s
a8fe997492
Unrestricted monerod RPC (18081) was proxied publicly via
monero.polensky.me: anyone on the internet could call stop_daemon,
start_mining, set_limits, flush the txpool, or ban peers.

- asus: bind unrestricted RPC to 127.0.0.1 (p2pool and the
  json-exporter are local), add a restricted RPC listener on
  0.0.0.0:18089, drop 18081 from the firewall
- server: point both Caddy vhosts and monero-wallet-monitor
  (view-only wallet) at asus:18089

Closes #8
All checks were successful
check / build-server (pull_request) Successful in 54s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/monero-restricted-rpc:fix/monero-restricted-rpc
git switch fix/monero-restricted-rpc

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff fix/monero-restricted-rpc
git switch fix/monero-restricted-rpc
git rebase main
git switch main
git merge --ff-only fix/monero-restricted-rpc
git switch fix/monero-restricted-rpc
git rebase main
git switch main
git merge --no-ff fix/monero-restricted-rpc
git switch main
git merge --squash fix/monero-restricted-rpc
git switch main
git merge --ff-only fix/monero-restricted-rpc
git switch main
git merge fix/monero-restricted-rpc
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
polen/nixos!21
No description provided.