Skip to content

Commit 86bacc8

Browse files
author
latham
committed
sql for iptables firewall
1 parent 59119c0 commit 86bacc8

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--
2+
-- Table structure for table `iptables`
3+
--
4+
5+
DROP TABLE IF EXISTS `iptables`;
6+
CREATE TABLE `iptables` (
7+
`iptables_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
8+
`server_id` int(10) unsigned NOT NULL DEFAULT '0',
9+
`table` varchar(10) DEFAULT NULL COMMENT 'INPUT OUTPUT FORWARD',
10+
`source_ip` varchar(16) DEFAULT NULL,
11+
`destination_ip` varchar(16) DEFAULT NULL,
12+
`protocol` varchar(10) DEFAULT 'TCP' COMMENT 'TCP UDP GRE',
13+
`singleport` varchar(10) DEFAULT NULL,
14+
`multiport` varchar(40) DEFAULT NULL,
15+
`state` varchar(20) DEFAULT NULL COMMENT 'NEW ESTABLISHED RECNET etc',
16+
`target` varchar(10) DEFAULT NULL COMMENT 'ACCEPT DROP REJECT LOG',
17+
`active` enum('n','y') NOT NULL DEFAULT 'y',
18+
PRIMARY KEY (`iptables_id`)
19+
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
20+

install/sql/ispconfig3.sql

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,27 @@ CREATE TABLE `help_faq_sections` (
504504

505505
-- --------------------------------------------------------
506506

507+
-- Table structure for table `iptables`
508+
--
509+
510+
DROP TABLE IF EXISTS `iptables`;
511+
CREATE TABLE `iptables` (
512+
`iptables_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
513+
`server_id` int(10) unsigned NOT NULL DEFAULT '0',
514+
`table` varchar(10) DEFAULT NULL COMMENT 'INPUT OUTPUT FORWARD',
515+
`source_ip` varchar(16) DEFAULT NULL,
516+
`destination_ip` varchar(16) DEFAULT NULL,
517+
`protocol` varchar(10) DEFAULT 'TCP' COMMENT 'TCP UDP GRE',
518+
`singleport` varchar(10) DEFAULT NULL,
519+
`multiport` varchar(40) DEFAULT NULL,
520+
`state` varchar(20) DEFAULT NULL COMMENT 'NEW ESTABLISHED RECNET etc',
521+
`target` varchar(10) DEFAULT NULL COMMENT 'ACCEPT DROP REJECT LOG',
522+
`active` enum('n','y') NOT NULL DEFAULT 'y',
523+
PRIMARY KEY (`iptables_id`)
524+
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
525+
526+
-- --------------------------------------------------------
527+
507528
--
508529
-- Table structure for table `mail_access`
509530
--

0 commit comments

Comments
 (0)