i2p - Enable and start i2p service in sys-i2p.

Disable IPv6
This commit is contained in:
unman 2025-04-21 11:18:21 +00:00
parent e77afa71ac
commit 88792ef95e
No known key found for this signature in database
GPG key ID: FDD1B8244731B36C
2 changed files with 20 additions and 0 deletions

12
i2p/configure.sls Normal file
View file

@ -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 %}

View file

@ -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 %}