Opened 4 years ago

Last modified 5 weeks ago

#1417 accepted defect

Cannot use TCP when UDP is disabled for directly connected systems to public network with dynamic IP address autodetection

Reported by: djjeshk Owned by: zzz
Priority: major Milestone: 0.9.39
Component: router/transport Version: 0.9.17
Keywords: Network UDP UPnP Disabled TCP IP detection failure Cc:
Parent Tickets:

Description

I2P version: 0.9.17-0
Java version: Oracle Corporation 1.7.0_71 (Java(TM) SE Runtime Environment 1.7.0_71-b14)
Wrapper version: 3.5.25
Server version: 8.1.16.v20140903
Servlet version: Jasper JSP 2.1 Engine
Platform: Windows XP x86 5.1
Processor: Core 2 (45nm) (core2)
Jbigi: Locally optimized native BigInteger? library loaded from file
Encoding: Cp1257
Charset: windows-1257

I2P report Network: ERR-UDP Disabled and Inbound TCP host/port not set.
My settings are as follows:

Enable UPnP to open firewall ports - disabled (there is no firewall)
Externally reachable hostname or IP address - Use all auto-detect methods
UDP Configuration - Completely disable
TCP Configuration - Use auto-detected IP address (currently unknown) if we are not firewalled

PS. Under text Specify hostname or IP it shows correct IP adress. Why this IP address is not auto-detected?

Subtickets (add)

Change History (6)

comment:1 Changed 4 years ago by somewon

  • Status changed from new to testing

I think you just need to set a TCP port.

On http://127.0.0.1:7657/confignet look for "Externally reachable TCP port:" and enter a number between 1025 and 65535 in the box marked "Specify Port:". If that doesn't work, your router may not support UPnP and you may have to forward the port manually. Instructions for your router's make and model are probably available at http://www.portforward.com (Apologies, no router in use)

Just curious, though - why disable UDP completely at all?

Last edited 4 years ago by somewon (previous) (diff)

comment:2 Changed 4 years ago by djjeshk

First i have no router, my system is directly connected to provider network and whatever goes to my IP address it is processed by my system. Providing TCP port does not work. Providing IP address manually is not what I wan't.

Disabling UDP connections reduced message delay (now less than 100ms before it was approx 300ms) and I need to let anti DDoS driver to secure system against UDP flood. It is proven that incoming UDP flood (not filtered) affect UDP connections with router.

All that I2P router would need is to look at network adapter provided IP adress (it is also public at my case) and use it. Windows users can execute ipconfig and correct information comes up.

Last edited 4 years ago by djjeshk (previous) (diff)

comment:3 Changed 4 years ago by somewon

  • Status changed from testing to needs_work

comment:4 Changed 3 years ago by zzz

  • Component changed from router/general to router/transport
  • Milestone changed from 0.9.18 to 0.9.28

It's true, SSU does the address detection for NTCP.

The message delay calculation is semi-broken see #698

See also #1835

For a direct, public IP, NTCP should get the notification at startup. Will need to test/reproduce.

comment:5 Changed 6 weeks ago by zzz

  • Milestone changed from 0.9.28 to 0.9.39
  • Owner set to zzz
  • Status changed from needs_work to accepted

The changes in #2328 for NTCP1 disable option may have made this worse.
It's not getting the callback from UPnP.
And we still get the ERR-UDP Disabled and Inbound TCP host/port not set.
Going to try to fix this for 39 as the i2p zero folks may want to disable SSU.

comment:6 Changed 5 weeks ago by zzz

Preliminary work in cfacc0fc72bfcbbcdcd92a2631d97ec7c83f9213 0.9.38-8
more to follow

Note: See TracTickets for help on using tickets.