From 86bacc83a4b0d9179fdf16a3fed4fe8ef517174f Mon Sep 17 00:00:00 2001
From: latham <latham@ispconfig3>
Date: Thu, 30 Jun 2011 15:41:34 +0000
Subject: [PATCH] sql for iptables firewall

---
 install/sql/incremental/upd_0013.sql | 20 ++++++++++++++++++++
 install/sql/ispconfig3.sql           | 21 +++++++++++++++++++++
 2 files changed, 41 insertions(+)
 create mode 100644 install/sql/incremental/upd_0013.sql

diff --git a/install/sql/incremental/upd_0013.sql b/install/sql/incremental/upd_0013.sql
new file mode 100644
index 0000000000..9b43d33616
--- /dev/null
+++ b/install/sql/incremental/upd_0013.sql
@@ -0,0 +1,20 @@
+--
+-- Table structure for table `iptables`
+--
+
+DROP TABLE IF EXISTS `iptables`;
+CREATE TABLE `iptables` (
+  `iptables_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+  `server_id` int(10) unsigned NOT NULL DEFAULT '0',
+  `table` varchar(10) DEFAULT NULL COMMENT 'INPUT OUTPUT FORWARD',
+  `source_ip` varchar(16) DEFAULT NULL,
+  `destination_ip` varchar(16) DEFAULT NULL,
+  `protocol` varchar(10) DEFAULT 'TCP' COMMENT 'TCP UDP GRE',
+  `singleport` varchar(10) DEFAULT NULL,
+  `multiport` varchar(40) DEFAULT NULL,
+  `state` varchar(20) DEFAULT NULL COMMENT 'NEW ESTABLISHED RECNET etc',
+  `target` varchar(10) DEFAULT NULL COMMENT 'ACCEPT DROP REJECT LOG',
+  `active` enum('n','y') NOT NULL DEFAULT 'y',
+  PRIMARY KEY (`iptables_id`)
+) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
+
diff --git a/install/sql/ispconfig3.sql b/install/sql/ispconfig3.sql
index 21d3391813..501c9d0d2b 100644
--- a/install/sql/ispconfig3.sql
+++ b/install/sql/ispconfig3.sql
@@ -504,6 +504,27 @@ CREATE TABLE `help_faq_sections` (
 
 -- --------------------------------------------------------
 
+-- Table structure for table `iptables`
+--
+
+DROP TABLE IF EXISTS `iptables`;
+CREATE TABLE `iptables` (
+  `iptables_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+  `server_id` int(10) unsigned NOT NULL DEFAULT '0',
+  `table` varchar(10) DEFAULT NULL COMMENT 'INPUT OUTPUT FORWARD',
+  `source_ip` varchar(16) DEFAULT NULL,
+  `destination_ip` varchar(16) DEFAULT NULL,
+  `protocol` varchar(10) DEFAULT 'TCP' COMMENT 'TCP UDP GRE',
+  `singleport` varchar(10) DEFAULT NULL,
+  `multiport` varchar(40) DEFAULT NULL,
+  `state` varchar(20) DEFAULT NULL COMMENT 'NEW ESTABLISHED RECNET etc',
+  `target` varchar(10) DEFAULT NULL COMMENT 'ACCEPT DROP REJECT LOG',
+  `active` enum('n','y') NOT NULL DEFAULT 'y',
+  PRIMARY KEY (`iptables_id`)
+) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
 -- 
 -- Table structure for table  `mail_access`
 -- 
-- 
GitLab