8 WRAPPER
="/etc/i2p/wrapper.config"
10 # This must be set in order for the i2p init script to work
11 sed -i 's/^RUN_DAEMON=.*$/RUN_DAEMON="true"/' /etc
/default
/i2p
13 # Remove the false.i2p outproxy from i2ptunnel
14 sed -i '/^tunnel.0.proxyList/d' "$I2P/i2ptunnel.config"
16 # Disable the https outproxy
17 # We go out through Tor so this is redundant.
18 sed -i 's|^.*\(tunnel.6.startOnLoad\).*|\1=false|' "$I2P/i2ptunnel.config"
20 # Don't serve the router console on IPv6
21 sed -i 's|^clientApp\.0\.args=7657\s\+::1,127\.0\.0\.1|clientApp.0.args=7657 127.0.0.1|' "$I2P/clients.config"
23 # Disable IPv6 in the wrapper
24 sed -i 's|^.*\(wrapper\.java\.additional\.5=-Djava\.net\.preferIPv4Stack=\).*|\1true|' "$WRAPPER"
25 sed -i 's|^.*\(wrapper\.java\.additional\.6=-Djava\.net\.preferIPv6Addresses=\).*|\1false|' "$WRAPPER"
27 # Tails specific router configs:
28 # * i2cp: allows java clients to communicate with I2P outside of the JVM. Disabled.
30 # * HiddenMode: Enabled
31 # * In-I2P Network Updates: Disabled
32 # * Inbound connections: Disabled (setting is "i2cp.ntcp.autoip")
33 cat > "$I2P/router.config" << EOF
34 # NOTE: This I2P config file must use UTF-8 encoding
35 i2cp.disableInterface=true
37 i2np.ntcp.autoip=false
40 router.updateDisabled=true