On Thu, Oct 23, 2014 at 2:28 AM, Steve Dougherty <st...@asksteved.com> wrote: > > On 10/06/2014 08:41 AM, v...@equalit.ie wrote: > > Hello xor, > > > >> For example Freenet *does* have a public gateway mode where you can > >> allow other people on the Internet to use your Freenet node in a safe > >> manner > >> (i.e. anything which can change the configuration is disabled). > > Not re-inventing the wheel(s) is that is very valid point and thank > > you very much for pointing this out to us. > > > > Could you please give me a reference to this code, so I can look at it > > myself and then come back to you for further plan of action. > > I can point you to the setting though I've never used it myself: in > advanced mode it's Configuration > Web interface > Public gateway mode.
Neither have I ever used this functionality, but I'll give you some pointers to where to look in the code. The "Public gateway mode" configuration option is registered by freenet.clients.http.SimpleToadletServer (boolean publicGatewayMode and related) [1], and is checked by several Toadlets (e.g. FProxyToadlet, FileInsertWizardToadlet, …) in the same package [2]. The approach is to disable certain sensitive functionality if the node is in public gateway mode and/or the source address is not on the allowedFullAccess list. For your information, Toadlets are the components that make Freenet's default web-interface (FProxy), you can think of them as servlets. [1] https://github.com/freenet/fred/blob/next/src/freenet/clients/http/SimpleToadletServer.java [2] https://github.com/freenet/fred/blob/next/src/freenet/clients/http/ _______________________________________________ Devl mailing list Devl@freenetproject.org https://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl