ircnet / ircd

17 stars 6 forks source link

New P-Line field for source IP address used in ident checks #18

Closed patrick-irc closed 3 weeks ago

patrick-irc commented 1 month ago

When you create a TLS/SSL tunnel with stunnel or haproxy/mmproxy the ircd does not know the IP address you connected to. Because of this iauth tries to bind to the wrong IP address.

stunnel:

[ircd_6697]
accept  = 45.141.0.18:6697
connect = 127.0.0.1:6697
cert = ..
transparent = source

If a user connects to 45.141.0.18:6697 he will be tunneled to 127.0.0.1:6697. The problem is iauth will bind to 127.0.0.1 to do the ident check which will fail.

I also could not get it working with transparent = both.

Solution: In P-Line we can make the auth source address definable: P|127.0.0.1|||6679||T|::ffff:45.141.0.18|