00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00027 #ifndef _FW_IPTABLES_H_
00028 #define _FW_IPTABLES_H_
00029
00030 #include "firewall.h"
00031
00034 #define TABLE_WIFIDOG_OUTGOING "WiFiDog_$ID$_Outgoing"
00035 #define TABLE_WIFIDOG_WIFI_TO_INTERNET "WiFiDog_$ID$_WIFI2Internet"
00036 #define TABLE_WIFIDOG_WIFI_TO_ROUTER "WiFiDog_$ID$_WIFI2Router"
00037 #define TABLE_WIFIDOG_INCOMING "WiFiDog_$ID$_Incoming"
00038 #define TABLE_WIFIDOG_AUTHSERVERS "WiFiDog_$ID$_AuthServers"
00039 #define TABLE_WIFIDOG_GLOBAL "WiFiDog_$ID$_Global"
00040 #define TABLE_WIFIDOG_VALIDATE "WiFiDog_$ID$_Validate"
00041 #define TABLE_WIFIDOG_KNOWN "WiFiDog_$ID$_Known"
00042 #define TABLE_WIFIDOG_UNKNOWN "WiFiDog_$ID$_Unknown"
00043 #define TABLE_WIFIDOG_LOCKED "WiFiDog_$ID$_Locked"
00044 #define TABLE_WIFIDOG_TRUSTED "WiFiDog_$ID$_Trusted"
00045
00048 typedef enum fw_access_t_ {
00049 FW_ACCESS_ALLOW,
00050 FW_ACCESS_DENY
00051 } fw_access_t;
00052
00054 int iptables_fw_init(void);
00055
00057 void iptables_fw_set_authservers(void);
00058
00060 void iptables_fw_clear_authservers(void);
00061
00063 int iptables_fw_destroy(void);
00064
00066 int iptables_fw_destroy_mention( const char * table, const char * chain, const char * mention);
00067
00069 int iptables_fw_access(fw_access_t type, const char *ip, const char *mac, int tag);
00070
00072 int iptables_fw_counters_update(void);
00073
00074 #endif