* I2PTunnel:
- Make IRC Proxy non-shared, delayed-start, close-on-idle for new users, for the anonymity benefits (see "Shared Clients, Correlation and Collusion" http://zzz.i2p/topics/217 ) - Remove "experimental" flag on new client options * configclients.jsp: Add full path to config file * Add some path help in some config files
This commit is contained in:
@ -1 +1,6 @@
|
|||||||
|
#
|
||||||
|
# If you have a 'split' directory installation, with configuration
|
||||||
|
# files in ~/.i2p (Linux) or %APPDATA%\I2P (Windows), be sure to
|
||||||
|
# edit the file in the configuration directory, NOT the install directory.
|
||||||
|
#
|
||||||
i2psnark.dir=i2psnark
|
i2psnark.dir=i2psnark
|
||||||
|
@ -319,7 +319,7 @@
|
|||||||
|
|
||||||
<div id="optionsField" class="rowItem">
|
<div id="optionsField" class="rowItem">
|
||||||
<label for="reduce" accesskey="c">
|
<label for="reduce" accesskey="c">
|
||||||
<span class="accessKey">C</span>lose tunnels when idle: <i>Experimental</i>
|
<span class="accessKey">C</span>lose tunnels when idle:
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div id="portField" class="rowItem">
|
<div id="portField" class="rowItem">
|
||||||
@ -354,7 +354,7 @@
|
|||||||
|
|
||||||
<div id="optionsField" class="rowItem">
|
<div id="optionsField" class="rowItem">
|
||||||
<label for="reduce" accesskey="c">
|
<label for="reduce" accesskey="c">
|
||||||
<span class="accessKey">D</span>elay tunnel open until required: <i>Experimental</i>
|
<span class="accessKey">D</span>elay tunnel open until required:
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div id="portField" class="rowItem">
|
<div id="portField" class="rowItem">
|
||||||
|
@ -38,7 +38,9 @@ button span.hide{
|
|||||||
</p><p> <div class="wideload">
|
</p><p> <div class="wideload">
|
||||||
<jsp:getProperty name="clientshelper" property="form1" />
|
<jsp:getProperty name="clientshelper" property="form1" />
|
||||||
</p><p>
|
</p><p>
|
||||||
<i>All changes require restart to take effect. To change other client options, edit the clients.config file.</i>
|
<i>To change other client options, edit the file
|
||||||
|
<%=net.i2p.router.startup.ClientAppConfig.configFile(net.i2p.I2PAppContext.getGlobalContext())%>.
|
||||||
|
All changes require restart to take effect.</i>
|
||||||
</p> <hr /><div class="formaction">
|
</p> <hr /><div class="formaction">
|
||||||
<input type="submit" name="action" value="Save Client Configuration" />
|
<input type="submit" name="action" value="Save Client Configuration" />
|
||||||
</div></div>
|
</div></div>
|
||||||
@ -57,7 +59,7 @@ button span.hide{
|
|||||||
<jsp:getProperty name="clientshelper" property="form2" />
|
<jsp:getProperty name="clientshelper" property="form2" />
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<i>All changes require restart to take effect. To change other webapp options, edit the webapps.config file.</i>
|
<i>All changes require restart to take effect.</i>
|
||||||
</p>
|
</p>
|
||||||
<hr><div class="formaction">
|
<hr><div class="formaction">
|
||||||
<input type="submit" name="action" value="Save WebApp Configuration" />
|
<input type="submit" name="action" value="Save WebApp Configuration" />
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
#
|
||||||
|
# If you have a 'split' directory installation, with configuration
|
||||||
|
# files in ~/.i2p (Linux) or %APPDATA%\I2P (Windows), be sure to
|
||||||
|
# edit the file in the configuration directory, NOT the install directory.
|
||||||
|
#
|
||||||
|
|
||||||
# fire up the web console
|
# fire up the web console
|
||||||
clientApp.0.args=7657 ::1,127.0.0.1 ./webapps/
|
clientApp.0.args=7657 ::1,127.0.0.1 ./webapps/
|
||||||
clientApp.0.main=net.i2p.router.web.RouterConsoleRunner
|
clientApp.0.main=net.i2p.router.web.RouterConsoleRunner
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
#
|
||||||
|
# If you have a 'split' directory installation, with configuration
|
||||||
|
# files in ~/.i2p (Linux) or %APPDATA%\I2P (Windows), be sure to
|
||||||
|
# edit the file in the configuration directory, NOT the install directory.
|
||||||
|
#
|
||||||
|
|
||||||
# eepproxy
|
# eepproxy
|
||||||
tunnel.0.name=eepProxy
|
tunnel.0.name=eepProxy
|
||||||
tunnel.0.description=HTTP proxy for browsing eepsites and the web
|
tunnel.0.description=HTTP proxy for browsing eepsites and the web
|
||||||
@ -17,18 +23,22 @@ tunnel.0.option.i2p.streaming.connectDelay=1000
|
|||||||
tunnel.0.startOnLoad=true
|
tunnel.0.startOnLoad=true
|
||||||
|
|
||||||
# irc
|
# irc
|
||||||
tunnel.1.name=ircProxy
|
tunnel.1.name=IRC Proxy
|
||||||
tunnel.1.description=IRC proxy to access the anonymous irc net
|
tunnel.1.description=IRC proxy to access the anonymous IRC network
|
||||||
tunnel.1.type=ircclient
|
tunnel.1.type=ircclient
|
||||||
tunnel.1.sharedClient=true
|
tunnel.1.sharedClient=false
|
||||||
tunnel.1.interface=127.0.0.1
|
tunnel.1.interface=127.0.0.1
|
||||||
tunnel.1.listenPort=6668
|
tunnel.1.listenPort=6668
|
||||||
tunnel.1.targetDestination=irc.postman.i2p,irc.freshcoffee.i2p
|
tunnel.1.targetDestination=irc.postman.i2p,irc.freshcoffee.i2p
|
||||||
tunnel.1.i2cpHost=127.0.0.1
|
tunnel.1.i2cpHost=127.0.0.1
|
||||||
tunnel.1.i2cpPort=7654
|
tunnel.1.i2cpPort=7654
|
||||||
tunnel.1.option.inbound.nickname=shared clients
|
tunnel.1.option.inbound.nickname=IRC Proxy
|
||||||
tunnel.1.option.outbound.nickname=shared clients
|
tunnel.1.option.outbound.nickname=IRC Proxy
|
||||||
tunnel.1.option.i2cp.reduceIdleTime=900000
|
tunnel.1.option.i2cp.closeIdleTime=1200000
|
||||||
|
tunnel.1.option.i2cp.closeOnIdle=true
|
||||||
|
tunnel.1.option.i2cp.delayOpen=true
|
||||||
|
tunnel.1.option.i2cp.newDestOnResume=false
|
||||||
|
tunnel.1.option.i2cp.reduceIdleTime=600000
|
||||||
tunnel.1.option.i2cp.reduceOnIdle=true
|
tunnel.1.option.i2cp.reduceOnIdle=true
|
||||||
tunnel.1.option.i2cp.reduceQuantity=1
|
tunnel.1.option.i2cp.reduceQuantity=1
|
||||||
tunnel.1.option.i2p.streaming.connectDelay=1000
|
tunnel.1.option.i2p.streaming.connectDelay=1000
|
||||||
|
@ -7,6 +7,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
|
import net.i2p.I2PAppContext;
|
||||||
import net.i2p.data.DataHelper;
|
import net.i2p.data.DataHelper;
|
||||||
import net.i2p.router.RouterContext;
|
import net.i2p.router.RouterContext;
|
||||||
|
|
||||||
@ -39,12 +40,17 @@ public class ClientAppConfig {
|
|||||||
disabled = dis;
|
disabled = dis;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Properties getClientAppProps(RouterContext ctx) {
|
public static File configFile(I2PAppContext ctx) {
|
||||||
Properties rv = new Properties();
|
|
||||||
String clientConfigFile = ctx.getProperty(PROP_CLIENT_CONFIG_FILENAME, DEFAULT_CLIENT_CONFIG_FILENAME);
|
String clientConfigFile = ctx.getProperty(PROP_CLIENT_CONFIG_FILENAME, DEFAULT_CLIENT_CONFIG_FILENAME);
|
||||||
File cfgFile = new File(clientConfigFile);
|
File cfgFile = new File(clientConfigFile);
|
||||||
if (!cfgFile.isAbsolute())
|
if (!cfgFile.isAbsolute())
|
||||||
cfgFile = new File(ctx.getConfigDir(), clientConfigFile);
|
cfgFile = new File(ctx.getConfigDir(), clientConfigFile);
|
||||||
|
return cfgFile;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Properties getClientAppProps(RouterContext ctx) {
|
||||||
|
Properties rv = new Properties();
|
||||||
|
File cfgFile = configFile(ctx);
|
||||||
|
|
||||||
// fall back to use router.config's clientApp.* lines
|
// fall back to use router.config's clientApp.* lines
|
||||||
if (!cfgFile.exists()) {
|
if (!cfgFile.exists()) {
|
||||||
@ -94,10 +100,7 @@ public class ClientAppConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void writeClientAppConfig(RouterContext ctx, List apps) {
|
public static void writeClientAppConfig(RouterContext ctx, List apps) {
|
||||||
String clientConfigFile = ctx.getProperty(PROP_CLIENT_CONFIG_FILENAME, DEFAULT_CLIENT_CONFIG_FILENAME);
|
File cfgFile = configFile(ctx);
|
||||||
File cfgFile = new File(clientConfigFile);
|
|
||||||
if (!cfgFile.isAbsolute())
|
|
||||||
cfgFile = new File(ctx.getConfigDir(), clientConfigFile);
|
|
||||||
FileOutputStream fos = null;
|
FileOutputStream fos = null;
|
||||||
try {
|
try {
|
||||||
fos = new FileOutputStream(cfgFile);
|
fos = new FileOutputStream(cfgFile);
|
||||||
|
Reference in New Issue
Block a user