prawnsalad / KiwiIRC

This is **DEPRECATED**! Please go to https://github.com/kiwiirc/kiwiirc
https://kiwiirc.com
GNU Affero General Public License v3.0
890 stars 278 forks source link

Displaying real IP upon connection. #815

Closed Az0nic closed 8 years ago

Az0nic commented 8 years ago

Hello, I'm running my own IRC server (irc-ratbox). But I'm having difficulty display users real IP addresses. I've compiled Kiwi and I can connect to it, but when other users try and connect it's displaying the IP address of the box in which it's running from.

In my config.js settings I've added:

conf.webirc_pass = {
"irc.mydomain.com": "passwordhere",

};

I have added the WEBIRC / CGI:IRC config from your website into my ircd conf, (which works perfectly fine) but I'd prefer for users to connect with their real IP to enforce bans etc.

In my ircd config is:

auth { user = "cgiirc@109.169.31.4"; user = "cgiirc@107.161.19.53"; user = "cgiirc@107.161.19.109"; password = "passwordhere"; spoof = "webirc."; class = "users"; };

Would this work, or is it for unreal only?

cgiirc { type webirc; hostname = "YOUR_KIWI_SERVER_IP_ADDRESS"; password = "passwordhere"; };

Any help would be greatly appreciated.

prawnsalad commented 8 years ago

Hi, did we solve this on IRC?

Az0nic commented 8 years ago

No, I can't figure out how to display the real IP address of users connecting to my IRC server.

On 2 Feb 2016, at 19:09, Darren notifications@github.com wrote:

Hi, did we solve this on IRC?

— Reply to this email directly or view it on GitHub.

prawnsalad commented 8 years ago

Ok. Well the config you have copied from kiwiirc.com is only for the kiwi server on kiwiirc.com. Since you are using your own kiwi server it is entirely independent.

Where you have these lines in your ircd config: user = "cgiirc@107.161.19.109"; add another one with the IP of your own server. I would guess you will need to put your external IP here.

Az0nic commented 8 years ago

I think I know what the problem is, nginx doesn't install http_realip_module by default, so the configuration in config.js can't see IP header = "x-forward-for".

I'll let you know if I've got it working, I appreciate the help. :-)

On 3 Feb 2016, at 14:33, Darren notifications@github.com wrote:

Ok. Well the config you have copied from kiwiirc.com is only for the kiwi server on kiwiirc.com. Since you are using your own kiwi server it is entirely independent.

Where you have these lines in your ircd config: user = "cgiirc@107.161.19.109"; add another one with the IP of your own server. I would guess you will need to put your external IP here.

— Reply to this email directly or view it on GitHub.

prawnsalad commented 8 years ago

I'm assuming this issue was resolved now. If not we can re-open this issue

Az0nic commented 8 years ago

Hello! I apologise for the very late reply, but I've resolved the issue. So I appreciate your assistance! I've noticed that you can use a plugin which allows file uploads & sharing using the filepicker service? I was wondering if you've got a direct link for that plugin so I could implement it?

On 18 Feb 2016, at 20:30, Darren notifications@github.com wrote:

I'm assuming this issue was resolved now. If not we can re-open this issue

— Reply to this email directly or view it on GitHub.