munin: tor1 #1046

Open
opened 2026-02-16 18:48:55 +01:00 by mg · 6 comments
Owner

domain inet.mgrote.net
tor plugins

domain inet.mgrote.net tor plugins
Author
Owner
https://munin-monitoring.org/faq#q-how-can-i-use-an-ssh-tunnel-to-connect-to-a-node
Author
Owner
https://serverfault.com/questions/1150575/start-ssh-tunnel-on-server-startup
Author
Owner
https://gallery.munin-monitoring.org/plugins/munin-contrib/tor_/
mg changed title from tor1 in munin aufnehmen to munin: tor1 2026-02-19 11:05:37 +01:00
Author
Owner

apt install munin-node
visudo

dont ask password from mg

mg ALL=(ALL) NOPASSWD: ALL

dont ask password from munin

munin ALL=NOPASSWD: ALL

muninn node cnf

Which address to bind to;

host 127.0.0.1

munin-node-configure --shell --debug
munin-node-configure --shell --debug | sh -x
cd /usr/share/munin/plugins
wget https://raw.githubusercontent.com/munin-monitoring/contrib/refs/heads/master/plugins/tor/tor_
chmod +x tor_

/etc/munin/plugins
root@tor1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/tor_ tor_bandwidth
root@tor1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/tor_ tor_connections
root@tor1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/tor_ tor_dormant
root@tor1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/tor_ tor_flags
root@tor1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/tor_ tor_routers
root@tor1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/tor_ tor_traffic

/etc/munin/plugin-conf.d
root@tor1:/etc/munin/plugin-conf.d# cat tor
[tor_*]
user debian-tor
group debian-tor
env.torcachefile munin_tor_country_stats.json
env.torconnectmethod port
env.torport 9001
env.torsocket /var/run/tor/control

sudo apt install python3-pip

apt install munin-node visudo # dont ask password from mg mg ALL=(ALL) NOPASSWD: ALL # dont ask password from munin munin ALL=NOPASSWD: ALL muninn node cnf # Which address to bind to; host 127.0.0.1 munin-node-configure --shell --debug munin-node-configure --shell --debug | sh -x cd /usr/share/munin/plugins wget https://raw.githubusercontent.com/munin-monitoring/contrib/refs/heads/master/plugins/tor/tor_ chmod +x tor_ /etc/munin/plugins root@tor1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/tor_ tor_bandwidth root@tor1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/tor_ tor_connections root@tor1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/tor_ tor_dormant root@tor1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/tor_ tor_flags root@tor1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/tor_ tor_routers root@tor1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/tor_ tor_traffic /etc/munin/plugin-conf.d root@tor1:/etc/munin/plugin-conf.d# cat tor [tor_*] user debian-tor group debian-tor env.torcachefile munin_tor_country_stats.json env.torconnectmethod port env.torport 9001 env.torsocket /var/run/tor/control sudo apt install python3-pip
Author
Owner

laptop/munin
ssh -L 127.0.0.1:5555:127.0.0.53:53 mg@tor1 -o ExitOnForwardFailure=yes

test locakl
dig @127.0.0.1 -p 5555 google.de +tcp +short

laptop/munin ssh -L 127.0.0.1:5555:127.0.0.53:53 mg@tor1 -o ExitOnForwardFailure=yes test locakl dig @127.0.0.1 -p 5555 google.de +tcp +short
Author
Owner

nyx, packe in hintergrund
ssh -L 127.0.0.1:5555:127.0.0.1:9001 -N mg@tor1 -o ExitOnForwardFailure=yes -
ssh -L ::: user@gerät

nyx, packe in hintergrund ssh -L 127.0.0.1:5555:127.0.0.1:9001 -N mg@tor1 -o ExitOnForwardFailure=yes - ssh -L <iplocal>:<portlocal>:<ipremote auf die geunden werden soll>:<same fur port> user@gerät
Sign in to join this conversation.
No labels
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
mg/homeserver#1046
No description provided.