mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-02-16 21:40:45 +01:00
somewhat rewrite etc/oidentd.conf
This commit is contained in:
parent
cf13b0faaf
commit
f98e2a4375
@ -1,34 +1,45 @@
|
|||||||
# Oidentd.conf allowing everything and giving random responses when
|
# oidentd.conf denying everything except hiding root and allowing ZNC to
|
||||||
# asked from root.
|
# spoof. With only one user everything could be allowed, but if other users
|
||||||
# With public shells "allow" should be replaced with "deny" but when
|
# appear out of nowhere...
|
||||||
# there is only me, why to deny anything?
|
|
||||||
|
|
||||||
|
# * * * * *
|
||||||
|
|
||||||
|
# Deny everything by default
|
||||||
default {
|
default {
|
||||||
|
default {
|
||||||
|
deny spoof
|
||||||
|
deny spoof_all
|
||||||
|
deny spoof_privport
|
||||||
|
deny random
|
||||||
|
deny random_numeric
|
||||||
|
deny numeric
|
||||||
|
deny hide
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Don't respond to ident request to root
|
||||||
|
user root {
|
||||||
|
default {
|
||||||
|
force hide
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# 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" {
|
||||||
default {
|
default {
|
||||||
allow spoof
|
allow spoof
|
||||||
allow spoof_all
|
allow spoof_all
|
||||||
allow spoof_privport
|
allow spoof_privport
|
||||||
allow random
|
deny random
|
||||||
allow random_numeric
|
deny random_numeric
|
||||||
allow numeric
|
deny numeric
|
||||||
allow hide
|
deny hide
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
user root {
|
|
||||||
default {
|
|
||||||
force random
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
## Allow user znc to do spoof when *Identfile is used
|
|
||||||
#user "znc" {
|
|
||||||
# default {
|
|
||||||
# allow spoof
|
|
||||||
# allow spoof_all
|
|
||||||
# allow spoof_privport
|
|
||||||
# deny random
|
|
||||||
# deny random_numeric
|
|
||||||
# deny numeric
|
|
||||||
# deny hide
|
|
||||||
# }
|
|
||||||
#}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user