auth_plaintext.h

Go to the documentation of this file.
00001 /* $Id$ */
00002 
00003 /*
00004 ** Copyright(C) 2004 Mikael Berthe <mikael+nufw@lists.lilotux.net>
00005 **
00006 ** This program is free software; you can redistribute it and/or modify
00007 ** it under the terms of the GNU General Public License as published by
00008 ** the Free Software Foundation; version 3 of the License.
00009 **
00010 ** This program is distributed in the hope that it will be useful,
00011 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 ** GNU General Public License for more details.
00014 **
00015 ** You should have received a copy of the GNU General Public License
00016 ** along with this program; if not, write to the Free Software
00017 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018 */
00019 
00020 
00021 #define TEXplaintext_USERFILE   CONFIG_DIR "/users.nufw"
00022 #define TEXplaintext_ACLFILE    CONFIG_DIR "/acls.nufw"
00023 
00024 struct plaintext_user {
00025         char *username;
00026         char *passwd;
00027         u_int32_t uid;
00028         GSList *groups;
00029 };
00030 
00031 struct plaintext_app {
00032         gchar *appname;
00033 };
00034 
00035 struct plaintext_os {
00036         char *sysname;
00037         char *release;
00038         char *version;
00039 };
00040 
00041 struct plaintext_ip {
00042         struct in6_addr addr;
00043         struct in6_addr netmask;
00044 };
00045 
00046 struct plaintext_ports {
00047         uint16_t firstport;
00048         int nbports;
00049 };
00050 
00051 struct plaintext_acl {
00052         char *aclname;
00053         decision_t decision;
00054         int proto;
00055 
00056         GSList *users;
00057         GSList *groups;
00058         GSList *apps;
00059         GSList *os;
00060 
00061         GSList *types;
00062 
00063         GSList *src_ip;
00064         GSList *src_ports;
00065 
00066         GSList *dst_ip;
00067         GSList *dst_ports;
00068 
00069         iface_nfo_t iface_nfo;
00070 
00071         gchar *period;
00072         gchar *log_prefix;
00073 
00074         gint flags;
00075         gint auth_quality;
00076 };
00077 
00078 struct plaintext_params {
00079         char *plaintext_userfile;
00080         char *plaintext_aclfile;
00081         GSList *plaintext_userlist;
00082         GSList *plaintext_acllist;
00083 };

Generated on Wed Jan 7 04:00:40 2009 for NuFW by  doxygen 1.4.7