"Semi-shutdown": Temporarily stopping accepting participating tunnels.
Opened 7 years ago
Last modified 3 years ago
#1139openenhancement
"Semi-shutdown": Temporarily stopping accepting participating tunnels.
Reported by:_ViOwned by: Priority: minor Milestone:
Component: apps/console Version: 0.9.8.1 Keywords: participation easy Cc:
Parent Tickets:
Sensitive: no
Description
Suppose you are using I2P router on a laptop. You have a good VPN connection with static IPv6 and properly forwarded TCP and UDP ports for I2P, so you want to participate and be useful to the I2P network.
But you need to go offline from time to time. As suddenly going offline while having lots of participating tunnels causes some problems for other users, the recommended way of "saying goodbue" is pressing "graceful shutdown" button on a page and waiting for up to 11 minutes.
As far as I understand, doing this is equivalent to:
-
Setting router.maxParticipatingTunnels=0;
-
Waiting for current participating tunnels to expire;
-
Shutting down I2p;
-
Restoring router.maxParticipatingTunnels on next bootup.
I want to be able to put I2P into transient "semi-shutdown" mode: no participating tunnels allowed, but I2p still works (so I can chat in the IRC / view some eepsites) and can be safely shut down in any moment. It should work like this:
-
Set router.maxParticipatingTunnels=0;
-
Wait for current participating tunnels to reach "0";
-
Display message like "Router can be turned off anytime now";
-
In case of router restart (including because of clock skew or public IP change or other event; maybe also just after timeout), restore router.maxParticipatingTunnels back to original value.
As a workaround I currently use
sed "s/router.maxParticipatingTunnels=.*/router.maxParticipatingTunnels=$1/" -i $HOME/.i2p/router.config
script in advance before putting computer to standby and after bringing it back online. This is not convenient as I have to remember to put the config option back. It would be useful to have a "Suspend participation for 1h" button.