securing my server

These are old archives. They are kept for historic purposes only.
Post Reply
noike
Posts: 2
Joined: Fri Jun 16, 2006 2:22 pm

securing my server

Post by noike »

hello, could someone please give me an example of how to setup the allow and oper sections so that normal users could log on without a password and opers would require a password?

Thanks for your help in advance.
MarHazK
Posts: 73
Joined: Wed May 25, 2005 5:36 pm
Location: WebMAS.net
Contact:

Re: securing my server

Post by MarHazK »

noike wrote:hello, could someone please give me an example of how to setup the allow and oper sections so that normal users could log on without a password and opers would require a password?

Thanks for your help in advance.
You mean by this:

Code: Select all

allow {
	ip             *@*;
	hostname       *@*;
	class           clients;
	maxperip 5;
};
Above is allow users to connect to your server without any password required.
GreenRoom SEC - Main Coder & CoMaster (http://www.wiramaster.com)
DataServ IRC Services - Main Coder
AirChat Network - Main Coder (http://www.airchat.org)
WebMAS Network - Main Team (http://www.webmas.net)
noike
Posts: 2
Joined: Fri Jun 16, 2006 2:22 pm

Post by noike »

ip *;
hostname *;
class clients;
maxperip 2;
};

/* Passworded allow line */
allow {
ip aaron@*;
hostname *@*;
class Opers;
password "password";
maxperip 1;
options {
nopasscont;
};
};


is that correct?
I meant something like that and then also in the oper block something like this but I don't think all this works because no matter what name I log in as I always become operator.

oper noike {
class clients;
from {
userhost *@*;
};
password "password";
flags {
netadmin;
can_zline;
can_gzline;
can_gkline;
global;
};
};
the userhost has to be the way it is because I travel allot and am on many networks.
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe »

Im a little confused as to what you are asking for. For reference the oper section defines a user and password for use with the /oper command to allow you to gain IRC operator priviledges.

For example the following would mean you could type "/oper user password" to become an IRC operator:

Code: Select all

oper user {
  from {
    userhost *@*;
  };
  password "password";
  class clients;
  flags {
    netadmin;
  };
};
The other thing which i am confused about is where you say:
noike wrote:no matter what name I log in as I always become operator.
because when you connect you shouldnt be automatically givern IRC operator priviledges. Also you can use the /oper command from ANY nick so long as your user@host mask matches one of the allowed user@host masks for the oper block you are trying to use.
Post Reply