PurpleI2P / i2pd

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

Separate ipv4 and ipv6 ifname #722

Closed bol-van closed 6 years ago

bol-van commented 7 years ago

On configuration with tunneled ipv6 ipv4 and ipv6 addresses can be on different interfaces. Its not enough to have ifname. Need ifname4 and ifname6

majestrate commented 7 years ago

adding now

bol-van commented 7 years ago

Its not working correctly.

ifname = l2tp-bee ifname4 = l2tp-bee ifname6 = 6in4-he

SSU 37.144.70.186:12 NTCP 37.144.70.186:12 SSU6 :::12 NTCP6 :::12 SSU 37.144.70.186:12 NTCP 37.144.70.186:12 SSU6 2001:470:xxxx:yyyy::2:12 NTCP6 2001:470:xxxx:yyyy::1:12

and always 21:07:08@470/info - NTCP: Start listening TCP port 12 21:07:08@470/info - NTCP: Start listening V6 TCP port 12 21:07:08@470/error - NTCP: Failed to bind to ip4 port 12bind: Address in use 21:07:08@470/error - NTCP: failed to bind to ip6 port 12

there's nothing on port 12. Changing port does not help. Looks like it has duplicate addresses in the list and tries to bind several times. Second and later times fail. Also not clear why zero ipv6 is still present. Still it tries to figure out IP automatically despite it was given precise ifnames

l-n-s commented 7 years ago

Looks like it is implemented. Any updates? Does it work correct now? Should we close the issue?