From 88792ef95e0cc8b20971ff42142f9741fdb45da7 Mon Sep 17 00:00:00 2001 From: unman Date: Mon, 21 Apr 2025 11:18:21 +0000 Subject: [PATCH] i2p - Enable and start i2p service in sys-i2p. Disable IPv6 --- i2p/configure.sls | 12 ++++++++++++ i2p/install.sls | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100644 i2p/configure.sls diff --git a/i2p/configure.sls b/i2p/configure.sls new file mode 100644 index 0000000..ebd73e6 --- /dev/null +++ b/i2p/configure.sls @@ -0,0 +1,12 @@ +# vim: set syntax=yaml ts=2 sw=2 sts=2 et : + +{% if grains['nodename'] != 'dom0' %} + +i2p.local: + file.append: + - name: /rw/config/rc.local + - text: | + systemctl unmask i2p + systemctl start i2p + +{% endif %} diff --git a/i2p/install.sls b/i2p/install.sls index 9a06a78..a8b83e4 100644 --- a/i2p/install.sls +++ b/i2p/install.sls @@ -79,5 +79,13 @@ i2p_untar_extension: - source: salt://i2p/i2p_browser.tgz - user: root - group: root + +i2p_disable_ipv6: + file.append: + - name: /etc/sysctl.conf + - text: | + net.ipv6.conf.all.disable_ipv6 = 1 + net.ipv6.conf.default.disable_ipv6 = 1 + net.ipv6.conf.lo.disable_ipv6 = 1 {% endif %}