oidentd does not work with znc #979

Closed
opened 2026-10-05 04:56:49 +02:00 by adam · 6 comments
Owner

Hi,
My configuration in /etc/oidentd.conf is:

`default {

    default {
            allow spoof
            deny spoof_all
            deny spoof_privport
            allow random
            allow random_numeric
            allow numeric
            allow hide
    }

} `

My file .oidentd.conf location is ~/.oidentd.conf and permission is -rw-r--r-- (644) ans
My $HOME direction permission is drwxr-xr-x

The configuration os setfile is the same ~/.oidentd.conf and setformat is global { reply "%user%" }

The message in the server irc is No ident response; username prefixed with ~
I have this same configuration in other vps and work. I do not know what is a problem. Cloud you help me?

Hi, My configuration in /etc/oidentd.conf is: `default { default { allow spoof deny spoof_all deny spoof_privport allow random allow random_numeric allow numeric allow hide } } ` My file .oidentd.conf location is ~/.oidentd.conf and permission is `-rw-r--r--` (644) ans My $HOME direction permission is `drwxr-xr-x` The configuration os **setfile** is the same `~/.oidentd.conf` and **setformat** is `global { reply "%user%" }` The message in the server irc is `No ident response; username prefixed with ~` I have this same configuration in other vps and work. I do not know what is a problem. Cloud you help me? <!-- github-sync-id:797510783 -->
adam closed this issue 2026-10-05 04:56:49 +02:00
Author
Owner

Per https://wiki.znc.in/Identfile#Using_identfile_with_oidentd the /etc/oidentd.conf needs to contain

user "znc" {
    default {
        allow spoof
        allow spoof_all
    }
}

as the default {} block is insufficient by itself. Replace "znc" with the name if the system user running the ZNC instance.

Per https://wiki.znc.in/Identfile#Using_identfile_with_oidentd the /etc/oidentd.conf needs to contain ``` user "znc" { default { allow spoof allow spoof_all } } ``` as the default {} block is insufficient by itself. Replace "znc" with the name if the system user running the ZNC instance. <!-- github-comment-id:770268494 -->
Author
Owner

I appreciate your help.
I had already switched to this configuration that you suggested, but it didn't work. But I changed now again, it didn't work again. I want to mention that my znc is running with my username and not with "znc" username. The configuration that i put now, was

user "myuser" { default { allow spoof allow spoof_all } }

default { default { allow spoof deny spoof_all deny spoof_privport allow random allow random_numeric allow numeric allow hide } }
but does not work.

I appreciate your help. I had already switched to this configuration that you suggested, but it didn't work. But I changed now again, it didn't work again. I want to mention that my znc is running with my username and not with "znc" username. The configuration that i put now, was `user "myuser" { default { allow spoof allow spoof_all } }` ` default { default { allow spoof deny spoof_all deny spoof_privport allow random allow random_numeric allow numeric allow hide } } ` but does not work. <!-- github-comment-id:770269900 -->
Author
Owner

The oidentd daemon needs to be restarted when you edit the oidentd.conf file, and you need to make sure port 113 is accessible remotely.

The oidentd daemon needs to be restarted when you edit the oidentd.conf file, and you need to make sure port 113 is accessible remotely. <!-- github-comment-id:770270427 -->
Author
Owner

Yes,
I restaed daemon oidentd with command sudo systemctl restart oidentd and my port 113 is open. I make command netstat -anp | grep 113 and have the response:

tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN 24094/oidentd
tcp6 0 0 :::113 :::* LISTEN 24094/oidentd

I already restart znc and even so, does not work.

Yes, I restaed daemon oidentd with command `sudo systemctl restart oidentd` and my port 113 is open. I make command `netstat -anp | grep 113` and have the response: `tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN 24094/oidentd` `tcp6 0 0 :::113 :::* LISTEN 24094/oidentd` I already restart znc and even so, does not work. <!-- github-comment-id:770271490 -->
Author
Owner

Just because a port is being listened on doesn't mean it's accessible .. you even quoted "No ident response; username prefixed with ~" which means port 113 isn't open. Check your firewall rules.

Just because a port is being listened on doesn't mean it's accessible .. you even quoted "No ident response; username prefixed with ~" which means port 113 isn't open. Check your firewall rules. <!-- github-comment-id:770271891 -->
Author
Owner

Ok. Work now. Was the port 113 that still close.
I guess that I had opened.
Thank you so much even.

Ok. Work now. Was the port 113 that still close. I guess that I had opened. Thank you so much even. <!-- github-comment-id:770274669 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#979