Operblock Examples, please?

These are old archives. They are kept for historic purposes only.
Post Reply
Ares
Posts: 22
Joined: Fri Apr 30, 2004 2:02 pm
Location: Florida

Operblock Examples, please?

Post by Ares »

I'm trying to understand the use of the oper block (o line) and i'm wondering if someone could post some examples of operblocks that are in use right now? I learn best by example, and although i've read the documentation, and have my own oper block written up, i'd benefit from seeing how others have their oper blocks set up, or other oper blocks in use. Thanks!
- Ares
onesikgypo
Posts: 18
Joined: Mon Oct 03, 2005 12:45 pm

Post by onesikgypo »

this one is fro like one of the super admins

oper NICKWASHERE {
class clients;
from {
userhost *@*;
};
password "pass.was.here";
flags
{
netadmin;
can_die;
can_restart;
can_wallops;
can_globops;
can_localroute;
can_globalroute;
can_localkill;
can_globalkill;
can_kline;
can_unkline;
can_localnotice;
can_globalnotice;
can_zline;
can_gkline;
can_gzline;
get_host;
can_override;
can_setq;
can_addline;
can_dccdeny;
};
};
Ares
Posts: 22
Joined: Fri Apr 30, 2004 2:02 pm
Location: Florida

Post by Ares »

Thanks for the reply, onesikgypo. Now my question for you is...

is it necessary to have all of those flags listed since by default certain flags give other flags? For example:

netadmin, according to the help doc, comes with can_wallops, so is it necessary (or just overkill) to add the flag again?
- Ares
onesikgypo
Posts: 18
Joined: Mon Oct 03, 2005 12:45 pm

Post by onesikgypo »

probably not, but i made this server when i wuz still a n00b so i jus added everythin jus in case, and since it worked, i havent been bothered to make it smaller, but yeh, jus get the ones u need
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

Learn by example? Guess what: doc/example.conf :P
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Because I am feeling nice:

Code: Select all

oper Stealth {
        class           clients;
        from {
                userhost *@192.168.1.*;
                userhost *@localhost;
        };
        password "3Bo9d0faP3YVo" { crypt; };
        flags {
                netadmin;
                can_addline;
                can_dccdeny;
                can_die;
                can_gkline;
                can_gzline;
                can_restart;
                can_zline;
                get_umodew;
                get_host;
                can_override;
        };
};
That oper block gives every permission with the least amount of flags.
Ares
Posts: 22
Joined: Fri Apr 30, 2004 2:02 pm
Location: Florida

Post by Ares »

Hehe. I getcha, onesik.

Syzop... the point of the post is for other examples outside of the example configs that came with the package. The more sources one has, the better his potential aquisition of knowledge. 8)
- Ares
Ping
Posts: 16
Joined: Fri Nov 04, 2005 11:49 am
Contact:

example with old flags

Post by Ping »

oper nick {
class clients;
from {
userhost username@*;
};
password jkgYGygLnj { crypt; };
flags oOaANrDRhwgcLkKbBnGztZWHvqXd;
snomask cFkejvGnqsSo;
maxlogins 1;
};

crypt method
just one operlogin for user
this linea is for netadmin
snomask(important for me) on operlogin

Regards.
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

I should run password crackers on these crypts.

Stealth lives because hes local ips only :(
Why the hell can't my signature be empty?
"Your message contains too few characters."
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Jason, I will freely say my password is I<3B00bz
Post Reply