Skip to content

Instantly share code, notes, and snippets.

@scysys
Last active June 30, 2017 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scysys/51e91e0ee858f303d3319dc16d81f897 to your computer and use it in GitHub Desktop.
Save scysys/51e91e0ee858f303d3319dc16d81f897 to your computer and use it in GitHub Desktop.
PCPIN Chat / IP filter not configured (fix)
DROP TABLE IF EXISTS `pcpin_ipfilter`;
CREATE TABLE `pcpin_ipfilter` (
`id` int(11) NOT NULL,
`address` varchar(45) CHARACTER SET ascii NOT NULL DEFAULT '',
`added_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`expires` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`description` text NOT NULL,
`action` enum('d','a') NOT NULL DEFAULT 'd',
`type` varchar(4) CHARACTER SET ascii COLLATE ascii_bin NOT NULL DEFAULT 'IPv4'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0;
INSERT INTO `pcpin_ipfilter` (`id`, `address`, `added_on`, `expires`, `description`, `action`, `type`) VALUES
(1, '*.*.*.*', '2017-06-04 22:40:10', '0000-00-00 00:00:00', 'This rule allows all IPv4 addresses', 'a', 'IPv4'),
(2, '*', '2017-06-04 22:40:10', '0000-00-00 00:00:00', 'This rule allows all IPv6 addresses', 'a', 'IPv6');
ALTER TABLE `pcpin_ipfilter`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `address_2` (`address`,`action`),
ADD KEY `address` (`address`),
ADD KEY `added_on` (`added_on`),
ADD KEY `expires` (`expires`),
ADD KEY `action` (`action`),
ADD KEY `type` (`type`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment