IRCNow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
irc:openbsd:oidentd [2019/11/08 19:36]
jrmu
irc:openbsd:oidentd [2019/11/08 19:47]
jrmu
Line 62: Line 62:
         URIPrefix = /         URIPrefix = /
 </​Listener>​ </​Listener>​
 +</​code>​
 +
 +Put this inside /​etc/​oidentd.conf:​
 +
 +<​code>​
 +user "​znc"​ {
 +    default {
 +        allow spoof
 +        allow spoof_all
 +    }
 +}
 +</​code>​
 +
 +If this file doesn'​t already exist:
 +
 +<​code>​
 +# touch /​home/​znc/​home/​znc/​.oidentd.conf
 +# ln -s /​home/​znc/​home/​znc/​.oidentd.conf /​home/​znc/​.oidentd.conf
 +# chown znc:znc /​home/​znc/​home/​znc/​.oidentd.conf /​home/​znc/​.oidentd.conf
 +</​code>​
 +
 +Add this to /​etc/​pf.conf:​
 +
 +<​code>​
 +pass in proto tcp to port {auth} #ident
 +</​code>​
 +
 +<​code>​
 +$ doas pfctl -f /​etc/​pf.conf
 +</​code>​
 +
 +You want to connect to znc and set the ident to match the account'​s username (to prevent users from being able to change their ident response). This allows channel ops to ban individual users without banning the entire znc's IP address:
 +
 +<​code>​
 +/msg *identfile setformat global { reply "​%user%"​ }
 </​code>​ </​code>​