2015-07-09 10:48:28 +03:00
|
|
|
# oidentd.conf denying everything except hiding root and allowing ZNC to
|
|
|
|
# spoof. With only one user everything could be allowed, but if other users
|
|
|
|
# appear out of nowhere...
|
2015-04-22 22:27:24 +03:00
|
|
|
|
2015-07-09 10:48:28 +03:00
|
|
|
# * * * * *
|
|
|
|
|
|
|
|
# Deny everything by default
|
2015-04-22 22:27:24 +03:00
|
|
|
default {
|
2023-02-21 19:08:54 +02:00
|
|
|
default {
|
|
|
|
deny spoof
|
|
|
|
deny spoof_all
|
|
|
|
deny spoof_privport
|
|
|
|
deny random
|
|
|
|
deny random_numeric
|
|
|
|
deny numeric
|
|
|
|
deny hide
|
|
|
|
}
|
2015-04-22 22:27:24 +03:00
|
|
|
}
|
2015-07-09 10:48:28 +03:00
|
|
|
|
|
|
|
# Don't respond to ident request to root
|
2015-04-22 22:27:24 +03:00
|
|
|
user root {
|
2023-02-21 19:08:54 +02:00
|
|
|
default {
|
|
|
|
force hide
|
|
|
|
}
|
2015-04-22 22:27:24 +03:00
|
|
|
}
|
|
|
|
|
2015-07-09 10:48:28 +03:00
|
|
|
# Allow user znc to spoof when *Identfile is used
|
|
|
|
# http://wiki.znc.in/Identfile
|
|
|
|
# touch ~/.oidentd.conf
|
|
|
|
# chmod 644 ~/.oidentd.conf
|
|
|
|
# chmod 711 ~
|
|
|
|
# /msg *status loadmod identfile
|
|
|
|
# /msg *identfile setfile ~/.oidentd.conf
|
|
|
|
# /msg *identfile setformat global { reply "%user%" }
|
|
|
|
user "znc" {
|
2023-02-21 19:08:54 +02:00
|
|
|
default {
|
|
|
|
allow spoof
|
|
|
|
allow spoof_all
|
|
|
|
allow spoof_privport
|
|
|
|
deny random
|
|
|
|
deny random_numeric
|
|
|
|
deny numeric
|
|
|
|
deny hide
|
|
|
|
}
|
2015-07-09 10:48:28 +03:00
|
|
|
}
|