From 431a05b652a57144bb2db44fdf04abaff6b5d5ef Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Mon, 14 Jul 2025 00:31:55 +0800 Subject: run monerod only when all network thru wireguard wg_ba network interface tunnels all network through wireguard to ba. I would like to only run monerod when this happened due to various reasons see comments in monerod@.service. Some measures I take are: systemd unit bind to wg_ba, networkmanager dispatcher stop monerod service pre wg_ba down, and vpn script kill monerod process before wg_ba down. The former two measures are in this commit. For bitmonero.conf, I also limit upload rate, reason see comment. I also enabled ipv6. I also try bind ip, which seems does not work, but I put there anyway. --- home/xyz/.bitmonero/bitmonero.conf | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'home') diff --git a/home/xyz/.bitmonero/bitmonero.conf b/home/xyz/.bitmonero/bitmonero.conf index 2319f1f1..4743a5cd 100644 --- a/home/xyz/.bitmonero/bitmonero.conf +++ b/home/xyz/.bitmonero/bitmonero.conf @@ -1,8 +1,14 @@ -# use home internet limits -# 20 Mbps \approx 2441 KiB/s -limit-rate-up=2441 -# 300 Mbps \approx 36621 KiB/s -limit-rate-down=36621 +# 80 KiB/s is about the actual upload speed, because I would like to contribute +# back but I don't want to make China ISP unhappy about me uploading too much +limit-rate-up=80 # https://monerodocs.org/interacting/monero-config-file/#syntax # need =1 for options without value -#p2p-use-ipv6=1 +p2p-use-ipv6=1 +# Bind to wireguard ips, I want monerod only using network through wireguard, +# otherwise China ISP will think I mine crypto and will be unhappy. But +# p2p-bin-ip and p2pbind-ipv6-address seems do not work, see vq buts note. But +# I still have those configs here because what if they somehow fixed it in the +# future. +# Can be tested with sth. like `sudo tcpdump -i wlp2s0 port 18080` +p2p-bind-ip=10.0.0.1 +p2p-bind-ipv6-address=fdc9:281f:04d7:9ee9::1 -- cgit v1.2.3-70-g09d2