#ifndef RULES_H #define RULES_H #ifndef FIREWALL_H #include "firewall.h" #endif class IPFW_RULES_FORWARD: public IPFW_RULES{ /*~PROTOBEG~ IPFW_RULES_FORWARD */ public: IPFW_RULES_FORWARD (CONFDB *_db); IPFW_RULES_FORWARD (void); int disable (bool doit, SSTRING *collect); int enable (bool doit, SSTRING *collect); protected: IPFW_RULE *newrule (const char *pt); IPFW_RULE *newrule (void); public: int save (void); /*~PROTOEND~ IPFW_RULES_FORWARD */ }; class IPFW_RULES_INPUT: public IPFW_RULES{ /*~PROTOBEG~ IPFW_RULES_INPUT */ public: IPFW_RULES_INPUT (CONFDB *_db); IPFW_RULES_INPUT (void); int disable (bool doit, SSTRING *collect); int enable (bool doit, SSTRING *collect); protected: IPFW_RULE *newrule (const char *pt); IPFW_RULE *newrule (void); public: int save (void); /*~PROTOEND~ IPFW_RULES_INPUT */ }; class IPFW_RULES_OUTPUT: public IPFW_RULES{ /*~PROTOBEG~ IPFW_RULES_OUTPUT */ public: IPFW_RULES_OUTPUT (CONFDB *_db); IPFW_RULES_OUTPUT (void); int disable (bool doit, SSTRING *collect); int enable (bool doit, SSTRING *collect); protected: IPFW_RULE *newrule (const char *pt); IPFW_RULE *newrule (void); public: int save (void); /*~PROTOEND~ IPFW_RULES_OUTPUT */ }; class IPFW_RULES_ACCT: public IPFW_RULES{ /*~PROTOBEG~ IPFW_RULES_ACCT */ public: IPFW_RULES_ACCT (CONFDB *_db); IPFW_RULES_ACCT (void); int disable (bool doit, SSTRING *collect); int enable (bool, SSTRING *); protected: void initrules (void); IPFW_RULE *newrule (const char *pt); IPFW_RULE *newrule (void); public: int save (void); /*~PROTOEND~ IPFW_RULES_ACCT */ }; #endif