PurpleI2P / i2pd

🛡 I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website
BSD 3-Clause "New" or "Revised" License
3.14k stars 419 forks source link

not using all / right net interfaces #1868

Open mh-cbon opened 1 year ago

mh-cbon commented 1 year ago

hi,

Having multiple interfaces here, with multiple external ips.

tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1357
        inet 198.18.0.29  netmask 255.255.240.0  destination 198.18.0.29

wlp59s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.78  netmask 255.255.255.0  broadcast 192.168.1.255

198.18.0.29 has ext ip 80.90.....

192.168.1.78 has ext ip 35....

Both has upnp, but the first one is little weird. The upnp interface is shared among multiple clients and asking to get a port often ends up in conflicts. The second is a regular home upnp with very few allocations that would result in conflicts, it works out of the box.

When I load i2pd interface Main page it shows : NTCP2 80....:21022 SSU2 80.....:21022

For better reliability i would have preferred it picks up 192.168.1.78, and, In general i had have expected it to open i2pd on both interfaces. Possbly have an opton to tear down / tear up wichever interface i prefer to run.

uname -a
Linux Host-001 6.1.8-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jan 24 20:32:33 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$ i2pd --version
i2pd version 2.45.1 (0.9.57)
Boost version 1.76.0
OpenSSL 3.0.5 5 Jul 2022

my 2 cents feedback, if that can help.

r4sas commented 1 year ago

Use ifname option. i2pd is not selecting outgoing interface, the system does it on its own by metrics.

on both interfaces

This was discussed many years ago, and the decision was to refuse such a proposal. I don't remember all the details.