oidentd

Last modified date

oidentd is an RFC 1413 Ident daemon that allows IRC servers to identify which local system user owns a connection.

This guide is intended for Debian and Ubuntu-based systems.


Step 1 – Install oidentd

sudo apt update
sudo apt install oidentd

Step 2 – Edit the configuration file

1 Open the oidentd configuration file with your preferred text editor:

sudo nano /etc/oidentd.conf

2 Clear the configuration file completely. Replace USER with the appropriate system account used by your IRC bot or service:

default {
    default {
        deny spoof
        deny spoof_all
    }
}

user root {
    default {
        force reply "UNKNOWN"
    }
}

user "USER1" {
    default {
        allow spoof
    }
}

user "USER2" {
    default {
        allow spoof
    }
}

Explanation:

  • spoof: Allows setting a custom ident reply.
  • spoof_all: Allows spoofing for all connections, not just privileged ports.

Step 3 – Enable and Restart the Service

After saving the configuration file, enable and restart the oidentd service:

sudo systemctl enable oidentd
sudo systemctl restart oidentd

Ensure that the firewall is configured to allow inbound TCP connections on port 113.


https://oidentd.janikrabe.com

https://wiki.znc.in/Identfile