CT 114: onlynet=onion entfernt — kompilierte onion-Seeds sind tot (Befund k)
Live gegen CT 114 geprüft: alle onion-Seeds von v0.21.5.8 'host unreachable' via Tor, clearnet-via-Tor und duckduckgo-onion funktionieren. Mit proxy= 127.0.0.1:9050 geht jetzt ALLER P2P-Verkehr durch Tor (DNS-Seeds + clearnet- Peers via Exits), listen=0/discover=0 bleiben — unsere IP wird nie exponiert. Audit prüft jetzt: proxy pro Netzwerk gesetzt + keine inbound Peers. GNAI-024 Abschnitt 2 Befund k + Abschnitt 12 aktualisiert. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -134,18 +134,24 @@
|
||||
that:
|
||||
- litecoin_audit_tor_config.rc == 0
|
||||
|
||||
- name: Read the litecoind network state via the read-only wrapper
|
||||
- name: Verify Tor-only networking and no inbound peers via the read-only wrapper
|
||||
become: false
|
||||
ansible.builtin.shell: |
|
||||
/usr/bin/sudo -n /usr/local/bin/ltc-readonly getnetworkinfo | /usr/bin/python3 -c '
|
||||
import json, sys
|
||||
data = json.load(sys.stdin)
|
||||
reach = {n["name"]: n.get("reachable") for n in data["networks"]}
|
||||
print("network reachability:", reach)
|
||||
if reach.get("onion") is not True:
|
||||
sys.exit("onion network is not reachable")
|
||||
if reach.get("ipv4") is True or reach.get("ipv6") is True:
|
||||
sys.exit("clearnet network is reachable; expected onion-only")
|
||||
for n in data["networks"]:
|
||||
if n.get("proxy") != "127.0.0.1:9050":
|
||||
sys.exit("network %s is not proxied via Tor: %r" % (n["name"], n.get("proxy")))
|
||||
print("all networks proxied via Tor:", [n["name"] for n in data["networks"]])
|
||||
'
|
||||
/usr/bin/sudo -n /usr/local/bin/ltc-readonly getpeerinfo | /usr/bin/python3 -c '
|
||||
import json, sys
|
||||
peers = json.load(sys.stdin)
|
||||
inbound = [p for p in peers if p.get("inbound")]
|
||||
print("peers:", len(peers), "inbound:", len(inbound))
|
||||
if inbound:
|
||||
sys.exit("inbound peers present although listen=0")
|
||||
'
|
||||
args:
|
||||
executable: /bin/bash
|
||||
@@ -156,9 +162,9 @@
|
||||
- not ansible_check_mode
|
||||
- litecoin_service_start_allowed | bool
|
||||
|
||||
- name: Report the onion-only network state
|
||||
- name: Report the Tor-only network state
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ litecoin_audit_networkinfo.stdout | default('check mode or node stopped: skipped') }}"
|
||||
msg: "{{ litecoin_audit_networkinfo.stdout_lines | default(['check mode or node stopped: skipped']) }}"
|
||||
when:
|
||||
- not ansible_check_mode
|
||||
- litecoin_service_start_allowed | bool
|
||||
|
||||
+6
-4
@@ -1,13 +1,15 @@
|
||||
# Managed by Ansible role litecoin_core. No credentials in this file:
|
||||
# RPC is cookie-authenticated and bound to loopback only (GNAI-024 Befund d/e).
|
||||
|
||||
# --- Network: Tor only, no clearnet, no inbound ---
|
||||
# --- Network: ALL traffic via Tor (SOCKS5), no inbound, our IP never exposed ---
|
||||
# GNAI-024 Befund k (2026-11-27): the compiled-in onion seeds of v0.21.5.8 are
|
||||
# unreachable ("host unreachable" via Tor while clearnet-via-Tor works), so
|
||||
# onlynet=onion would leave the node peerless forever. With proxy set, DNS
|
||||
# seeds and clearnet peers are reached through Tor exit relays; listen=0 and
|
||||
# discover=0 keep the node dial-out only.
|
||||
proxy={{ litecoin_core_tor_socks }}
|
||||
onlynet=onion
|
||||
listen=0
|
||||
discover=0
|
||||
dnsseed=0
|
||||
fixedseeds=0
|
||||
upnp=0
|
||||
natpmp=0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user