Opened 2 years ago

Closed 16 months ago

#2356 closed defect (worksforme)

Unable to set Website Hostname field on some routers

Reported by: slumlord Owned by:
Priority: minor Milestone: undecided
Component: apps/i2ptunnel Version: 0.9.37
Keywords: hidden service, http, website hostname, spoofedhost Cc: zzz
Parent Tickets: Sensitive: no

Description (last modified by slumlord)

I2P version:	0.9.37-0
Java version:	Oracle Corporation 1.7.0_161 (OpenJDK Runtime Environment 1.7.0_161-b01)
Wrapper version:	3.5.34
Server version:	9.2.25.v20180606
Servlet version:	Jasper JSP 2.3 Engine
JSTL version:	standard-taglib 1.2.0
Platform:	FreeBSD amd64 11.2-RELEASE-p4
Processor:	Ryzen 7 (athlon64)
JBigI status:	Locally optimized library loaded from file
GMP version:	6.0.0
JBigI version:	3
JCpuId version:	3
Encoding:	UTF-8
Charset:	UTF-8
Built By:	zzz

I have a number of HTTP hidden services configured in a router, I am unable to set the Website Hostname field for any of them. I have also tried manually setting the tunnel.$INT.spoofedHost field in ~/.i2p/i2ptunnel.config which does not seem to work either. This is happening on a FreeBSD system, I can set & change the Website Hostname setting on a Linux (Fedora) system without issue, though that could just be a coincidence.

Edit: The logs do not show any error when I try to add in a hostname through the router console.


Change History (6)

comment:1 Changed 2 years ago by slumlord

Description: modified (diff)

comment:2 Changed 2 years ago by zzz

Status: newinfoneeded_new

works for me on linux, don't have a BSD to test with.
Manual setting in i2ptunnel.config requires hidden services manager or full router restart, did you do that? There's no automatic reload like there is for router.config.
I assume you're putting in some regular ASCII chars for the hostname and not something that might get caught in the XSS filter… although non-ASCII chars should work fine too.
Can you change anything else on the form, or is this specific to the host name field?

comment:3 Changed 2 years ago by slumlord

Status: infoneeded_newnew

Hm, no I did not try restarting the router as it is currently hosting services. I will see if I can test that in the near future.

Yes, I am using regular ASCII text for the hostname - e.g. bobthebuilder.i2p - and any other change that I try to make is successfully saved.

comment:4 Changed 23 months ago by zzz

Status: newinfoneeded_new

Still trying to understand exactly what happened and what didn't.
So you made the change via the GUI, correct?. Did the change get reflected in i2ptunnel.config? Did it get reflected in the GUI? Did the server see the change?

You said in the OP you were "unable to set" it, so that to me sounds like the change didn't take effect anywhere, not even in the GUI?

comment:5 Changed 21 months ago by slumlord

Status: infoneeded_newnew

Yes, I made the changes via the GUI on the console at

I tried this again, I changed the Name, Description & Website Hostname settings.
Name & Description changes are reflected on both the console and the i2ptunnel.config file. Website Hostname change is not seen either in the i2ptunnel.config file or the console.

comment:6 Changed 16 months ago by zzz

Resolution: worksforme
Sensitive: unset
Status: newclosed

just tried it again, unable to reproduce.

Note: See TracTickets for help on using tickets.