Database Sample Hotspot Cloning


this is file

http://www.4shared.com/document/nLVs7XYG/hotspot.html

thax 🙂

 

———————————————————————————————

— version 4.0.4.1
http://www.phpmyadmin.net

— Host: 127.0.0.1
— Generation Time: Nov 28, 2013 at 01:59 AM
— Server version: 5.5.32
— PHP Version: 5.4.19

SET SQL_MODE = “NO_AUTO_VALUE_ON_ZERO”;
SET time_zone = “+00:00″;

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;


— Database: `hotspot`

CREATE DATABASE IF NOT EXISTS `hotspot` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `hotspot`;

— ——————————————————–


— Table structure for table `billingplan`

CREATE TABLE IF NOT EXISTS `billingplan` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`type` varchar(255) NOT NULL,
`amount` int(255) NOT NULL,
`valid_for` int(11) DEFAULT NULL,
`price` float NOT NULL,
`IdleTimeout` int(255) NOT NULL,
`simultaneous` int(10) NOT NULL,
`redirect_url` varchar(255) NOT NULL,
`bw_upload` int(255) NOT NULL,
`bw_download` int(255) NOT NULL,
`created_by` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

— ——————————————————–


— Table structure for table `ci_sessions`

CREATE TABLE IF NOT EXISTS `ci_sessions` (
`session_id` varchar(40) NOT NULL DEFAULT ‘0’,
`ip_address` varchar(16) NOT NULL DEFAULT ‘0’,
`user_agent` varchar(50) NOT NULL,
`last_activity` int(10) unsigned NOT NULL DEFAULT ‘0’,
`session_data` text,
`user_data` text NOT NULL,
PRIMARY KEY (`session_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

— ——————————————————–


— Table structure for table `expirationplan`

CREATE TABLE IF NOT EXISTS `expirationplan` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`type` varchar(255) NOT NULL,
`price` float NOT NULL DEFAULT ‘0’,
`amount` varchar(255) NOT NULL,
`bw_download` int(10) DEFAULT NULL,
`bw_upload` int(10) DEFAULT NULL,
`idletimeout` int(10) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

— ——————————————————–


— Table structure for table `expiration_account`

CREATE TABLE IF NOT EXISTS `expiration_account` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`expiration_plan` varchar(255) NOT NULL,
`created_by` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

— ——————————————————–


— Table structure for table `fa_country`

CREATE TABLE IF NOT EXISTS `fa_country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=240 ;


— Dumping data for table `fa_country`

INSERT INTO `fa_country` (`id`, `iso`, `name`, `iso3`, `numcode`) VALUES
(1, ‘AF’, ‘Afghanistan’, ‘AFG’, 4),
(2, ‘AL’, ‘Albania’, ‘ALB’, 8),
(3, ‘DZ’, ‘Algeria’, ‘DZA’, 12),
(4, ‘AS’, ‘American Samoa’, ‘ASM’, 16),
(5, ‘AD’, ‘Andorra’, ‘AND’, 20),
(6, ‘AO’, ‘Angola’, ‘AGO’, 24),
(7, ‘AI’, ‘Anguilla’, ‘AIA’, 660),
(8, ‘AQ’, ‘Antarctica’, NULL, NULL),
(9, ‘AG’, ‘Antigua and Barbuda’, ‘ATG’, 28),
(10, ‘AR’, ‘Argentina’, ‘ARG’, 32),
(11, ‘AM’, ‘Armenia’, ‘ARM’, 51),
(12, ‘AW’, ‘Aruba’, ‘ABW’, 533),
(13, ‘AU’, ‘Australia’, ‘AUS’, 36),
(14, ‘AT’, ‘Austria’, ‘AUT’, 40),
(15, ‘AZ’, ‘Azerbaijan’, ‘AZE’, 31),
(16, ‘BS’, ‘Bahamas’, ‘BHS’, 44),
(17, ‘BH’, ‘Bahrain’, ‘BHR’, 48),
(18, ‘BD’, ‘Bangladesh’, ‘BGD’, 50),
(19, ‘BB’, ‘Barbados’, ‘BRB’, 52),
(20, ‘BY’, ‘Belarus’, ‘BLR’, 112),
(21, ‘BE’, ‘Belgium’, ‘BEL’, 56),
(22, ‘BZ’, ‘Belize’, ‘BLZ’, 84),
(23, ‘BJ’, ‘Benin’, ‘BEN’, 204),
(24, ‘BM’, ‘Bermuda’, ‘BMU’, 60),
(25, ‘BT’, ‘Bhutan’, ‘BTN’, 64),
(26, ‘BO’, ‘Bolivia’, ‘BOL’, 68),
(27, ‘BA’, ‘Bosnia and Herzegovina’, ‘BIH’, 70),
(28, ‘BW’, ‘Botswana’, ‘BWA’, 72),
(29, ‘BV’, ‘Bouvet Island’, NULL, NULL),
(30, ‘BR’, ‘Brazil’, ‘BRA’, 76),
(31, ‘IO’, ‘British Indian Ocean Territory’, NULL, NULL),
(32, ‘BN’, ‘Brunei Darussalam’, ‘BRN’, 96),
(33, ‘BG’, ‘Bulgaria’, ‘BGR’, 100),
(34, ‘BF’, ‘Burkina Faso’, ‘BFA’, 854),
(35, ‘BI’, ‘Burundi’, ‘BDI’, 108),
(36, ‘KH’, ‘Cambodia’, ‘KHM’, 116),
(37, ‘CM’, ‘Cameroon’, ‘CMR’, 120),
(38, ‘CA’, ‘Canada’, ‘CAN’, 124),
(39, ‘CV’, ‘Cape Verde’, ‘CPV’, 132),
(40, ‘KY’, ‘Cayman Islands’, ‘CYM’, 136),
(41, ‘CF’, ‘Central African Republic’, ‘CAF’, 140),
(42, ‘TD’, ‘Chad’, ‘TCD’, 148),
(43, ‘CL’, ‘Chile’, ‘CHL’, 152),
(44, ‘CN’, ‘China’, ‘CHN’, 156),
(45, ‘CX’, ‘Christmas Island’, NULL, NULL),
(46, ‘CC’, ‘Cocos (Keeling) Islands’, NULL, NULL),
(47, ‘CO’, ‘Colombia’, ‘COL’, 170),
(48, ‘KM’, ‘Comoros’, ‘COM’, 174),
(49, ‘CG’, ‘Congo’, ‘COG’, 178),
(50, ‘CD’, ‘Congo, the Democratic Republic of the’, ‘COD’, 180),
(51, ‘CK’, ‘Cook Islands’, ‘COK’, 184),
(52, ‘CR’, ‘Costa Rica’, ‘CRI’, 188),
(53, ‘CI’, ‘Cote D”Ivoire’, ‘CIV’, 384),
(54, ‘HR’, ‘Croatia’, ‘HRV’, 191),
(55, ‘CU’, ‘Cuba’, ‘CUB’, 192),
(56, ‘CY’, ‘Cyprus’, ‘CYP’, 196),
(57, ‘CZ’, ‘Czech Republic’, ‘CZE’, 203),
(58, ‘DK’, ‘Denmark’, ‘DNK’, 208),
(59, ‘DJ’, ‘Djibouti’, ‘DJI’, 262),
(60, ‘DM’, ‘Dominica’, ‘DMA’, 212),
(61, ‘DO’, ‘Dominican Republic’, ‘DOM’, 214),
(62, ‘EC’, ‘Ecuador’, ‘ECU’, 218),
(63, ‘EG’, ‘Egypt’, ‘EGY’, 818),
(64, ‘SV’, ‘El Salvador’, ‘SLV’, 222),
(65, ‘GQ’, ‘Equatorial Guinea’, ‘GNQ’, 226),
(66, ‘ER’, ‘Eritrea’, ‘ERI’, 232),
(67, ‘EE’, ‘Estonia’, ‘EST’, 233),
(68, ‘ET’, ‘Ethiopia’, ‘ETH’, 231),
(69, ‘FK’, ‘Falkland Islands (Malvinas)’, ‘FLK’, 238),
(70, ‘FO’, ‘Faroe Islands’, ‘FRO’, 234),
(71, ‘FJ’, ‘Fiji’, ‘FJI’, 242),
(72, ‘FI’, ‘Finland’, ‘FIN’, 246),
(73, ‘FR’, ‘France’, ‘FRA’, 250),
(74, ‘GF’, ‘French Guiana’, ‘GUF’, 254),
(75, ‘PF’, ‘French Polynesia’, ‘PYF’, 258),
(76, ‘TF’, ‘French Southern Territories’, NULL, NULL),
(77, ‘GA’, ‘Gabon’, ‘GAB’, 266),
(78, ‘GM’, ‘Gambia’, ‘GMB’, 270),
(79, ‘GE’, ‘Georgia’, ‘GEO’, 268),
(80, ‘DE’, ‘Germany’, ‘DEU’, 276),
(81, ‘GH’, ‘Ghana’, ‘GHA’, 288),
(82, ‘GI’, ‘Gibraltar’, ‘GIB’, 292),
(83, ‘GR’, ‘Greece’, ‘GRC’, 300),
(84, ‘GL’, ‘Greenland’, ‘GRL’, 304),
(85, ‘GD’, ‘Grenada’, ‘GRD’, 308),
(86, ‘GP’, ‘Guadeloupe’, ‘GLP’, 312),
(87, ‘GU’, ‘Guam’, ‘GUM’, 316),
(88, ‘GT’, ‘Guatemala’, ‘GTM’, 320),
(89, ‘GN’, ‘Guinea’, ‘GIN’, 324),
(90, ‘GW’, ‘Guinea-Bissau’, ‘GNB’, 624),
(91, ‘GY’, ‘Guyana’, ‘GUY’, 328),
(92, ‘HT’, ‘Haiti’, ‘HTI’, 332),
(93, ‘HM’, ‘Heard Island and Mcdonald Islands’, NULL, NULL),
(94, ‘VA’, ‘Holy See (Vatican City State)’, ‘VAT’, 336),
(95, ‘HN’, ‘Honduras’, ‘HND’, 340),
(96, ‘HK’, ‘Hong Kong’, ‘HKG’, 344),
(97, ‘HU’, ‘Hungary’, ‘HUN’, 348),
(98, ‘IS’, ‘Iceland’, ‘ISL’, 352),
(99, ‘IN’, ‘India’, ‘IND’, 356),
(100, ‘ID’, ‘Indonesia’, ‘IDN’, 360),
(101, ‘IR’, ‘Iran, Islamic Republic of’, ‘IRN’, 364),
(102, ‘IQ’, ‘Iraq’, ‘IRQ’, 368),
(103, ‘IE’, ‘Ireland’, ‘IRL’, 372),
(104, ‘IL’, ‘Israel’, ‘ISR’, 376),
(105, ‘IT’, ‘Italy’, ‘ITA’, 380),
(106, ‘JM’, ‘Jamaica’, ‘JAM’, 388),
(107, ‘JP’, ‘Japan’, ‘JPN’, 392),
(108, ‘JO’, ‘Jordan’, ‘JOR’, 400),
(109, ‘KZ’, ‘Kazakhstan’, ‘KAZ’, 398),
(110, ‘KE’, ‘Kenya’, ‘KEN’, 404),
(111, ‘KI’, ‘Kiribati’, ‘KIR’, 296),
(112, ‘KP’, ‘Korea, Democratic People”s Republic of’, ‘PRK’, 408),
(113, ‘KR’, ‘Korea, Republic of’, ‘KOR’, 410),
(114, ‘KW’, ‘Kuwait’, ‘KWT’, 414),
(115, ‘KG’, ‘Kyrgyzstan’, ‘KGZ’, 417),
(116, ‘LA’, ‘Lao People”s Democratic Republic’, ‘LAO’, 418),
(117, ‘LV’, ‘Latvia’, ‘LVA’, 428),
(118, ‘LB’, ‘Lebanon’, ‘LBN’, 422),
(119, ‘LS’, ‘Lesotho’, ‘LSO’, 426),
(120, ‘LR’, ‘Liberia’, ‘LBR’, 430),
(121, ‘LY’, ‘Libyan Arab Jamahiriya’, ‘LBY’, 434),
(122, ‘LI’, ‘Liechtenstein’, ‘LIE’, 438),
(123, ‘LT’, ‘Lithuania’, ‘LTU’, 440),
(124, ‘LU’, ‘Luxembourg’, ‘LUX’, 442),
(125, ‘MO’, ‘Macao’, ‘MAC’, 446),
(126, ‘MK’, ‘Macedonia, the Former Yugoslav Republic of’, ‘MKD’, 807),
(127, ‘MG’, ‘Madagascar’, ‘MDG’, 450),
(128, ‘MW’, ‘Malawi’, ‘MWI’, 454),
(129, ‘MY’, ‘Malaysia’, ‘MYS’, 458),
(130, ‘MV’, ‘Maldives’, ‘MDV’, 462),
(131, ‘ML’, ‘Mali’, ‘MLI’, 466),
(132, ‘MT’, ‘Malta’, ‘MLT’, 470),
(133, ‘MH’, ‘Marshall Islands’, ‘MHL’, 584),
(134, ‘MQ’, ‘Martinique’, ‘MTQ’, 474),
(135, ‘MR’, ‘Mauritania’, ‘MRT’, 478),
(136, ‘MU’, ‘Mauritius’, ‘MUS’, 480),
(137, ‘YT’, ‘Mayotte’, NULL, NULL),
(138, ‘MX’, ‘Mexico’, ‘MEX’, 484),
(139, ‘FM’, ‘Micronesia, Federated States of’, ‘FSM’, 583),
(140, ‘MD’, ‘Moldova, Republic of’, ‘MDA’, 498),
(141, ‘MC’, ‘Monaco’, ‘MCO’, 492),
(142, ‘MN’, ‘Mongolia’, ‘MNG’, 496),
(143, ‘MS’, ‘Montserrat’, ‘MSR’, 500),
(144, ‘MA’, ‘Morocco’, ‘MAR’, 504),
(145, ‘MZ’, ‘Mozambique’, ‘MOZ’, 508),
(146, ‘MM’, ‘Myanmar’, ‘MMR’, 104),
(147, ‘NA’, ‘Namibia’, ‘NAM’, 516),
(148, ‘NR’, ‘Nauru’, ‘NRU’, 520),
(149, ‘NP’, ‘Nepal’, ‘NPL’, 524),
(150, ‘NL’, ‘Netherlands’, ‘NLD’, 528),
(151, ‘AN’, ‘Netherlands Antilles’, ‘ANT’, 530),
(152, ‘NC’, ‘New Caledonia’, ‘NCL’, 540),
(153, ‘NZ’, ‘New Zealand’, ‘NZL’, 554),
(154, ‘NI’, ‘Nicaragua’, ‘NIC’, 558),
(155, ‘NE’, ‘Niger’, ‘NER’, 562),
(156, ‘NG’, ‘Nigeria’, ‘NGA’, 566),
(157, ‘NU’, ‘Niue’, ‘NIU’, 570),
(158, ‘NF’, ‘Norfolk Island’, ‘NFK’, 574),
(159, ‘MP’, ‘Northern Mariana Islands’, ‘MNP’, 580),
(160, ‘NO’, ‘Norway’, ‘NOR’, 578),
(161, ‘OM’, ‘Oman’, ‘OMN’, 512),
(162, ‘PK’, ‘Pakistan’, ‘PAK’, 586),
(163, ‘PW’, ‘Palau’, ‘PLW’, 585),
(164, ‘PS’, ‘Palestinian Territory, Occupied’, NULL, NULL),
(165, ‘PA’, ‘Panama’, ‘PAN’, 591),
(166, ‘PG’, ‘Papua New Guinea’, ‘PNG’, 598),
(167, ‘PY’, ‘Paraguay’, ‘PRY’, 600),
(168, ‘PE’, ‘Peru’, ‘PER’, 604),
(169, ‘PH’, ‘Philippines’, ‘PHL’, 608),
(170, ‘PN’, ‘Pitcairn’, ‘PCN’, 612),
(171, ‘PL’, ‘Poland’, ‘POL’, 616),
(172, ‘PT’, ‘Portugal’, ‘PRT’, 620),
(173, ‘PR’, ‘Puerto Rico’, ‘PRI’, 630),
(174, ‘QA’, ‘Qatar’, ‘QAT’, 634),
(175, ‘RE’, ‘Reunion’, ‘REU’, 638),
(176, ‘RO’, ‘Romania’, ‘ROM’, 642),
(177, ‘RU’, ‘Russian Federation’, ‘RUS’, 643),
(178, ‘RW’, ‘Rwanda’, ‘RWA’, 646),
(179, ‘SH’, ‘Saint Helena’, ‘SHN’, 654),
(180, ‘KN’, ‘Saint Kitts and Nevis’, ‘KNA’, 659),
(181, ‘LC’, ‘Saint Lucia’, ‘LCA’, 662),
(182, ‘PM’, ‘Saint Pierre and Miquelon’, ‘SPM’, 666),
(183, ‘VC’, ‘Saint Vincent and the Grenadines’, ‘VCT’, 670),
(184, ‘WS’, ‘Samoa’, ‘WSM’, 882),
(185, ‘SM’, ‘San Marino’, ‘SMR’, 674),
(186, ‘ST’, ‘Sao Tome and Principe’, ‘STP’, 678),
(187, ‘SA’, ‘Saudi Arabia’, ‘SAU’, 682),
(188, ‘SN’, ‘Senegal’, ‘SEN’, 686),
(189, ‘CS’, ‘Serbia and Montenegro’, NULL, NULL),
(190, ‘SC’, ‘Seychelles’, ‘SYC’, 690),
(191, ‘SL’, ‘Sierra Leone’, ‘SLE’, 694),
(192, ‘SG’, ‘Singapore’, ‘SGP’, 702),
(193, ‘SK’, ‘Slovakia’, ‘SVK’, 703),
(194, ‘SI’, ‘Slovenia’, ‘SVN’, 705),
(195, ‘SB’, ‘Solomon Islands’, ‘SLB’, 90),
(196, ‘SO’, ‘Somalia’, ‘SOM’, 706),
(197, ‘ZA’, ‘South Africa’, ‘ZAF’, 710),
(198, ‘GS’, ‘South Georgia and the South Sandwich Islands’, NULL, NULL),
(199, ‘ES’, ‘Spain’, ‘ESP’, 724),
(200, ‘LK’, ‘Sri Lanka’, ‘LKA’, 144),
(201, ‘SD’, ‘Sudan’, ‘SDN’, 736),
(202, ‘SR’, ‘Suriname’, ‘SUR’, 740),
(203, ‘SJ’, ‘Svalbard and Jan Mayen’, ‘SJM’, 744),
(204, ‘SZ’, ‘Swaziland’, ‘SWZ’, 748),
(205, ‘SE’, ‘Sweden’, ‘SWE’, 752),
(206, ‘CH’, ‘Switzerland’, ‘CHE’, 756),
(207, ‘SY’, ‘Syrian Arab Republic’, ‘SYR’, 760),
(208, ‘TW’, ‘Taiwan, Province of China’, ‘TWN’, 158),
(209, ‘TJ’, ‘Tajikistan’, ‘TJK’, 762),
(210, ‘TZ’, ‘Tanzania, United Republic of’, ‘TZA’, 834),
(211, ‘TH’, ‘Thailand’, ‘THA’, 764),
(212, ‘TL’, ‘Timor-Leste’, NULL, NULL),
(213, ‘TG’, ‘Togo’, ‘TGO’, 768),
(214, ‘TK’, ‘Tokelau’, ‘TKL’, 772),
(215, ‘TO’, ‘Tonga’, ‘TON’, 776),
(216, ‘TT’, ‘Trinidad and Tobago’, ‘TTO’, 780),
(217, ‘TN’, ‘Tunisia’, ‘TUN’, 788),
(218, ‘TR’, ‘Turkey’, ‘TUR’, 792),
(219, ‘TM’, ‘Turkmenistan’, ‘TKM’, 795),
(220, ‘TC’, ‘Turks and Caicos Islands’, ‘TCA’, 796),
(221, ‘TV’, ‘Tuvalu’, ‘TUV’, 798),
(222, ‘UG’, ‘Uganda’, ‘UGA’, 800),
(223, ‘UA’, ‘Ukraine’, ‘UKR’, 804),
(224, ‘AE’, ‘United Arab Emirates’, ‘ARE’, 784),
(225, ‘GB’, ‘United Kingdom’, ‘GBR’, 826),
(226, ‘US’, ‘United States’, ‘USA’, 840),
(227, ‘UM’, ‘United States Minor Outlying Islands’, NULL, NULL),
(228, ‘UY’, ‘Uruguay’, ‘URY’, 858),
(229, ‘UZ’, ‘Uzbekistan’, ‘UZB’, 860),
(230, ‘VU’, ‘Vanuatu’, ‘VUT’, 548),
(231, ‘VE’, ‘Venezuela’, ‘VEN’, 862),
(232, ‘VN’, ‘Viet Nam’, ‘VNM’, 704),
(233, ‘VG’, ‘Virgin Islands, British’, ‘VGB’, 92),
(234, ‘VI’, ‘Virgin Islands, U.s.’, ‘VIR’, 850),
(235, ‘WF’, ‘Wallis and Futuna’, ‘WLF’, 876),
(236, ‘EH’, ‘Western Sahara’, ‘ESH’, 732),
(237, ‘YE’, ‘Yemen’, ‘YEM’, 887),
(238, ‘ZM’, ‘Zambia’, ‘ZMB’, 894),
(239, ‘ZW’, ‘Zimbabwe’, ‘ZWE’, 716);

— ——————————————————–


— Table structure for table `fa_user`

CREATE TABLE IF NOT EXISTS `fa_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_name` varchar(45) NOT NULL,
`country_id` int(11) DEFAULT NULL,
`password` varchar(50) NOT NULL,
`email` varchar(120) NOT NULL,
`role` varchar(50) NOT NULL DEFAULT ‘user’,
`banned` tinyint(1) NOT NULL DEFAULT ‘0’,
`forgotten_password_code` varchar(50) DEFAULT NULL,
`last_visit` datetime DEFAULT NULL,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`modified` timestamp NOT NULL DEFAULT ‘0000-00-00 00:00:00’,
PRIMARY KEY (`id`),
KEY `user_FI_1` (`country_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;


— Dumping data for table `fa_user`

INSERT INTO `fa_user` (`id`, `user_name`, `country_id`, `password`, `email`, `role`, `banned`, `forgotten_password_code`, `last_visit`, `created`, `modified`) VALUES
(1, ‘admin’, 0, ‘8709d7dc8f2ba1f9bd2b7140ff7078c2’, ‘root@localhost.com’, ‘superadmin’, 0, NULL, ‘2013-11-26 23:03:42’, ‘2013-11-26 23:03:42’, ‘0000-00-00 00:00:00’);

— ——————————————————–


— Table structure for table `fa_user_profile`

CREATE TABLE IF NOT EXISTS `fa_user_profile` (
`id` int(11) NOT NULL,
`field_1` varchar(50) DEFAULT NULL,
`field_2` varchar(50) DEFAULT NULL,
`call_me_nicely` varchar(3) DEFAULT NULL,
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;


— Dumping data for table `fa_user_profile`

INSERT INTO `fa_user_profile` (`id`, `field_1`, `field_2`, `call_me_nicely`) VALUES
(1, ‘Admin’, ‘Mr. Admin’, ‘102’);

— ——————————————————–


— Table structure for table `fa_user_temp`

CREATE TABLE IF NOT EXISTS `fa_user_temp` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_name` varchar(45) NOT NULL,
`country_id` int(11) DEFAULT NULL,
`password` varchar(50) NOT NULL,
`email` varchar(120) NOT NULL,
`activation_code` varchar(50) NOT NULL,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `user_FI_1` (`country_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

— ——————————————————–


— Table structure for table `invoice`

CREATE TABLE IF NOT EXISTS `invoice` (
`id` int(5) NOT NULL AUTO_INCREMENT,
`realname` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`used` int(255) NOT NULL,
`bill_by` varchar(255) NOT NULL,
`date` date NOT NULL,
`current_total` decimal(10,4) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

— ——————————————————–


— Table structure for table `invoice_detail`

CREATE TABLE IF NOT EXISTS `invoice_detail` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`realname` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`start` datetime NOT NULL,
`stop` datetime NOT NULL,
`used` int(11) NOT NULL,
`bill_by` varchar(255) NOT NULL,
`total` decimal(10,4) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

— ——————————————————–


— Table structure for table `nas`

CREATE TABLE IF NOT EXISTS `nas` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`nasname` varchar(128) NOT NULL,
`shortname` varchar(32) DEFAULT NULL,
`type` varchar(30) DEFAULT ‘other’,
`ports` int(5) DEFAULT NULL,
`secret` varchar(60) NOT NULL DEFAULT ‘secret’,
`community` varchar(50) DEFAULT NULL,
`description` varchar(200) DEFAULT ‘RADIUS Client’,
PRIMARY KEY (`id`),
KEY `nasname` (`nasname`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

— ——————————————————–


— Table structure for table `postpaid_account`

CREATE TABLE IF NOT EXISTS `postpaid_account` (
`id` int(255) NOT NULL AUTO_INCREMENT,
`realname` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`bill_by` varchar(255) NOT NULL,
`created_by` varchar(255) NOT NULL,
`IdleTimeout` int(10) NOT NULL,
`valid_until` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

— ——————————————————–


— Stand-in structure for view `postpaid_account_bill`

CREATE TABLE IF NOT EXISTS `postpaid_account_bill` (
`realname` varchar(255)
,`username` varchar(255)
,`password` varchar(255)
,`start` datetime
,`stop` datetime
,`time_used` decimal(15,4)
,`packet_used` decimal(24,4)
,`bill_by` varchar(255)
,`time_price` double
,`packet_price` double
);

SEKILAS PENGENALAN PHP


Apa itu PHP ?

PHP merupakan salah satu bahasa pemrograman yang digunakan dalam hal pembuatan Website.

Udah itu aja Pengenalannya. Ciyus Lho.

Tunggu posting berikutnya. 🙂 .

Apa Radius?


freeRadius.png

RADIUS merupakan singkatan dari Remote Authentication Dial In User Service (RADIUS) adalah protokol jaringan yang menyediakan Otentikasi terpusat, Otorisasi, dan Akuntansi, manajemen untuk komputer untuk menghubungkan dan menggunakan layanan jaringan. RADIUS dikembangkan oleh Livingston Enterprises, Inc, pada tahun 1991 sebagai otentikasi akses server dan protokol akuntansi dengan standard Internet Engineering Task Force (IETF).

Karena mendukung banyak protokol, Radius sering digunakan oleh ISP dan perusahaan untuk mengelola akses ke jaringan internet atau internal, jaringan nirkabel, dan dapat terintegrasi dengan layanan e-mail. Jaringan ini dapat menggabungkan modem, DSL, Akses Point , VPN, Port Jaringan, WEB server, dll.

RADIUS merupakan protokol client / server yang berjalan pada lapisan aplikasi, menggunakan UDP sebagai transportasi. Remote Access Server, seperti server Virtual Private Network (VPN), Authentikasi Network Switch, dan Network Akses Server (NAS) dan semua gateway memiliki Radius Server untuk berkomunikasi dengan Radius Client. Radius Server biasanya berjalan dibelakang layar pada sistem UNIX atau Microsoft Windows Server.

RADIUS memiliki tiga fungsi.:

  • Untuk meng-otentikasi pengguna atau perangkat sebelum mendapat akses kejaringan,
  • Untuk meng-otorisasi para pengguna atau perangkat untuk layanan jaringan tertentu dan
  • Untuk meng-akuntansi penggunaan layanan tersebut. (sumber Wikipedia)

Server RADIUS menggunakan konsep AAA untuk mengelola akses jaringan dalam proses dua-langkah berikut, juga dikenal sebagai “transaksi AAA”. AAA singkatan dari “otentikasi, otorisasi dan akuntansi”. Otentikasi dan Otorisasi karakteristik RADIUS dijelaskan dalam RFC 2.865, sementara Akuntansi dijelaskan oleh RFC 2.866.

Disini saya menggunakan freeradius sebagai Radius yang terintegrasi dengan LAMP dan Linux 11.04 LTS, Mengingat moment kembali saat-saat asik bermain linux 🙂 anda akan menemukan banyak junk tetapi silahkan dikembangkan sesuai keinginan.
FreeRADIUS_MySQL_Cluster.jpg

Skenario :
aaa-communication.gif
1. Cara Instalasi Radius

#apt-get install freeradius freeradius-mysql  (agar terintregrasi dengan LAMP)

(atau dengan cara manual)

#wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-2.2.0.tar.gz

#tar -zxvf freeradius-server-2.2.0.tar.gz

#cd /freeradius-server-2.2.0 (sesuaikan Dir anda extract freeradius tadi)

#./configure

#make install

(Install dependencies yang dibutuhkan untuk support SSL (menggunakan libssl-dev, libmysqlclient-dev atau libmysqlclient16-dev, libtool)

#apt-get install libssl-dev

#apt-get install libmysqlclient-dev

#apt-get install libmysqlclient16-dev

#apt-get install libtool

2. Cara Konfigurasi Radius
Konfigurasi perlu dilakukan agar sistem berkerja dengan LAMP pada Linux.

a. Konfigurasi terhadal sql

#gedit /etc/freeradius/sql.conf

(contoh script masih banyak junk maaf lagi malas edit main copas aja dari sistem 🙂 )

# -*- text -*-
######################################################################
#
#  Configuration for the SQL module
#
#  The database schemas and queries are located in subdirectories:
#
#    sql/DB/schema.sql    Schema
#    sql/DB/dialup.conf    Basic dialup (including policy) queries
#    sql/DB/counter.conf    counter
#    sql/DB/ippool.conf    IP Pools in SQL
#    sql/DB/ippool.sql    schema for IP pools.
#
#  Where "DB" is mysql, mssql, oracle, or postgresql.
#
sql {
    database = "mysql"
    #  Which FreeRADIUS driver to use.
    driver = "rlm_sql_${database}"
    # Connection info:
    server = "localhost"
    #port = 3306
    login = "c0d393n"
    password = "tekhnik_jarkom"
    # Database table configuration for everything except Oracle
    radius_db = "c0d393n_source"
    # If you are using Oracle then use this instead
    acct_table1 = "radacct"
    acct_table2 = "radacct"
    # Allow for storing data after authentication
    postauth_table = "radpostauth"
    authcheck_table = "radcheck"
    authreply_table = "radreply"
    groupcheck_table = "radgroupcheck"
    groupreply_table = "radgroupreply"
    # Table to keep group info
    usergroup_table = "radusergroup"
    # If set to 'yes' (default) we read the group tables
    deletestalesessions = yes
    # Print all SQL statements when in debug mode (-x)
    sqltrace = no
    sqltracefile = ${logdir}/sqltrace.sql
    # number of sql connections to make to server
    num_sql_socks = 5
    # number of seconds to dely retrying on a failed database
    # connection (per_socket)
    connect_failure_retry_delay = 60
    # lifetime of an SQL socket.  If you are having network issues
    lifetime = 0
    max_queries = 0
    # Set to 'yes' to read radius clients from the database ('nas' table)
    nas_table = "nas"
    # Read driver-specific configuration
    $INCLUDE sql/${database}/dialup.conf
}

b. Konfigurasi Radius Client

#gedit /etc/freeradius/clients.conf

(contoh script masih banyak junk maaf lagi malas edit main copas aja dari sistem 🙂 )

# -*- text -*-
##
## clients.conf -- client configuration directives
##
##    $Id$
#######################################################################
client localhost {
    #  Allowed values are:
    #    dotted quad (1.2.3.4)
    #       hostname    (radius.example.com)
    ipaddr = 127.0.0.1
#    netmask = 32
    secret        = c0d393n
    nastype     = other    # localhost isn't usually a NAS...
}

c. Authentikasi Radius terhadap MySql

#gedit /etc/freeradius/radiusd.conf

(contoh script masih banyak junk maaf lagi malas edit main copas aja dari sistem 🙂 )

# -*- text -*-
######################################################################
prefix = /usr
 exec_prefix = /usr
 sysconfdir = /etc
 localstatedir = /var
 sbindir = ${exec_prefix}/sbin
 logdir = /var/log/freeradius
 raddbdir = /etc/freeradius
 radacctdir = ${logdir}/radacct
#
 #  name of the running server.  See also the "-n" command-line option.
 name = freeradius
#  Location of config and logfiles.
 confdir = ${raddbdir}
 run_dir = ${localstatedir}/run/${name}
# Should likely be ${localstatedir}/lib/radiusd
 db_dir = ${raddbdir}
#
 # libdir: Where to find the rlm_* modules.
 libdir = /usr/lib/freeradius
#  pidfile: Where to place the PID of the RADIUS server.
 pidfile = ${run_dir}/${name}.pid
#  chroot: directory where the server does "chroot".
# user/group: The name (or #number) of the user/group to run radiusd as.
 user = freerad
 group = freerad
#  max_request_time: The maximum time (in seconds) to handle a request.
 max_request_time = 30
#  cleanup_delay: The time to wait (in seconds) before cleaning up
 cleanup_delay = 5
#  max_requests: The maximum number of requests which the server keeps
 max_requests = 1024
#  listen: Make the server listen on a particular IP address, and send
 listen {
 #  Type of packets to listen for.
 #  Allowed values are:
 #    auth    listen for authentication packets
 type = auth
#  Note: "type = proxy" lets you control the source IP used for
 ipaddr = *
#  Port on which to listen.
 port = 0
#  Some systems support binding to an interface, in addition
 }
#  This second "listen" section is for listening on the accounting
 #  port, too.
 listen {
 ipaddr = *
 #    ipv6addr = ::
 port = 0
 type = acct
 #    interface = eth0
 #    clients = per_socket_clients
 }
#  hostname_lookups: Log the names of clients or just their IP addresses
 hostname_lookups = no
#  Core dumps are a bad thing.  This should only be set to 'yes'
 allow_core_dumps = no
#  Regular expressions
 regular_expressions    = yes
 extended_expressions    = yes
 #  Logging section.  The various "log_*" configuration items
 log {
 #  Destination for log messages.  This can be one of:
 destination = files
 #  tail of this file if destination == "files"
 file = ${logdir}/radius.log
 #  Which syslog facility to use, if ${destination} == "syslog"
 syslog_facility = daemon
#  Log the full User-Name attribute, as it was found in the request.
 stripped_names = no
#  Log authentication requests to the log file.
 auth = no
#  Log passwords with the authentication requests.
 auth_badpass = no
 auth_goodpass = no
 }
#  The program to execute to do concurrency checks.
 checkrad = ${sbindir}/checkrad
# SECURITY CONFIGURATION
 security {
 max_attributes = 200
 #  reject_delay: When sending an Access-Reject, it can be
 reject_delay = 1
 #  status_server: Whether or not the server will respond
 status_server = yes
 }
# PROXY CONFIGURATION
 proxy_requests  = yes
 $INCLUDE proxy.conf
# CLIENTS CONFIGURATION
 $INCLUDE clients.conf
# THREAD POOL CONFIGURATION
 thread pool {
 start_servers = 5
#  Limit on the total number of servers running.
 max_servers = 32
#  Server-pool size regulation.  Rather than making you guess
 min_spare_servers = 3
 max_spare_servers = 10
#  There may be memory leaks or resource allocation problems with
 max_requests_per_server = 0
 }
# MODULE CONFIGURATION
 modules {
 $INCLUDE ${confdir}/modules/
#  Extensible Authentication Protocol
 $INCLUDE eap.conf
#  Include another file that has the SQL-related configuration.
 $INCLUDE sql.conf
 #  This module is an SQL enabled version of the counter module.
 $INCLUDE sql/mysql/counter.conf
 }
# Instantiation
 instantiate {
 max_all_mb
noresetcounter
 #  e.g. Framed-Pool = `%{exec:/bin/echo foo}`
 exec
 #  The expression module doesn't do authorization,
 expr
 # We add the counter module here so that it registers
 expiration
 logintime
# subsections here can be thought of as "virtual" modules.
 }
######################################################################
 #
 #    Policies that can be applied in multiple places are listed
 $INCLUDE policy.conf
######################################################################
 $INCLUDE sites-enabled/
######################################################################

d. Otorisasi Default Radius

#gedit /etc/freeradius/sites-enabled/default

(contoh script masih banyak junk maaf lagi malas edit main copas aja dari sistem 🙂 )

#  Authentication.
 authenticate {
 Auth-Type PAP {
 pap
 }
 Auth-Type CHAP {
 chap
 }
 #  MSCHAP authentication.
 Auth-Type MS-CHAP {
 mschap
 }
 #  If you have a Cisco SIP server authenticating against
 #  FreeRADIUS, uncomment the following line, and the 'digest'
 digest
 #  Pluggable Authentication Modules.
 unix
 #  Allow EAP authentication.
 eap
 }
 #  Pre-accounting.  Decide which accounting type to use.
 preacct {
 preprocess
 acct_unique
 #    IPASS
 suffix
 #    ntdomain
 files
 }
 #  Accounting.  Log the accounting data.
 accounting {
 detail
 #    daily
 unix
 #  For Simultaneous-Use tracking.
 radutmp
 # For Exec-Program and Exec-Program-Wait
 exec
 #  Filter attributes from the accounting response.
 attr_filter.accounting_response
 }
 session {
 radutmp
 #    sql
 }
 #  Post-Authentication
 post-auth {
 # For Exec-Program and Exec-Program-Wait
 exec
 Post-Auth-Type REJECT {
 # log failed authentications in SQL, too.
 attr_filter.access_reject
 }
 }
 pre-proxy {
 #    attr_rewrite
 }
 post-proxy {
 eap
 #    Post-Proxy-Type Fail {
 #            detail
 #    }
 }

e. Set Counter

#gedit /etc/freeradius/sql/mysql/counter.conf

(contoh script masih banyak junk maaf lagi malas edit main copas aja dari sistem 🙂 )

# -*- text -*-
sqlcounter dailycounter {
    counter-name = Daily-Session-Time
    check-name = Max-Daily-Session
    reply-name = Session-Timeout
    sqlmod-inst = sql
    key = User-Name
    reset = daily
    # This query properly handles calls that span from the
    query = "SELECT SUM(acctsessiontime - \
                 GREATEST((%b - UNIX_TIMESTAMP(acctstarttime)), 0)) \
                 FROM radacct WHERE username = '%{%k}' AND \
                 UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '%b'"
}

sqlcounter monthlycounter {
    counter-name = Monthly-Session-Time
        check-name = Max-Monthly-Session
        reply-name = Session-Timeout
        sqlmod-inst = sql
        key = User-Name
        reset = monthly
    # This query properly handles calls that span from the
    query = "SELECT SUM(acctsessiontime - \
                 GREATEST((%b - UNIX_TIMESTAMP(acctstarttime)), 0)) \
                 FROM radacct WHERE username='%{%k}' AND \
                 UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '%b'"
}
    sqlcounter noresetcounter {
    counter-name = Session-Timeout
    check-name = Session-Timeout
    reply-name = Session-Timeout
    sqlmod-inst = sql
    key = User-Name
    reset = never
    query = “SELECT SUM(Acctsessiontime) FROM radacct WHERE UserName=’%{%k}’”
    }
    sqlcounter max_all_mb {
    counter-name = Max-All-MB
    check-name = Max-All-MB
    reply-name = ChilliSpot-Max-Total-Octets
    sqlmod-inst = sql
    key = User-Name
    reset = never
    query = “SELECT SUM(AcctInputOctets)/(1024*1024) + SUM(AcctOutputOctets)/(1024*1024) FROM radacct WHERE UserName=’%{%k}’”
    }

f. Debugging Radius

#/etc/init.d/freeradius stop

#/usr/sbin/freeradius -x

(stor Ctrl + C dan startkan Radius)

#/usr/sbin/freeradius

(atau)

#/etc/init.d/freeradius start

Silahkan dikembangkan. . .  salam c0d393n 🙂

Tips Keamanan Berinternet


varian-perusak_seperti_aladin.jpg

Sebenarnya sudah banyak yang membahas tentang ini dan merupakan posting yang sudah lewat waktu tetapi dengan sekian hari semakin banyak serangan dari orang yang tidak bertanggung jawab mengambil akun orang yang tidak berdosa, maka saya sebagai penulis merasa perlu untuk meneruskan informasi ini kepada anda, terutama keamanan terhadap akun jejaring sosial anda :

Cara mengamankan data dan akun jejaring sosial anda :

1. Gunakan Favorit atau Bookmark pada Browser

Langkah pertama sebelum melakukan Bookmark pada Browser maka cek dulu halaman yang anda kunjungi, seperti :

Tujuan Bookmark adalah untuk mengamankan URL Link anda dari salah ketik dalam mengunjungi halaman, karena kurang atau lebih dalam anda mengetik halaman tersebut bisa menuju ke halaman yang berpotensial tipuan.

Bookmark adalah penandaan URL Halaman dengan cara mengklik tahan dan geser sudut kiri halaman ke Form Bookmark

contoh…
browser2.png

– Kolom merah tampilan halaman tersertifikat

– Kolom biru tampilan Bookmark

– Tanda panah ungu opsional geser untuk bookmark

2. Pastikan Gunakan Antivirus yang berpengalaman dan yang terupdate

Banyak antivirus yang memberi keamanan terbaik, seperti :

Antivirus diatas adalah contoh antivirus yang berpengalaman terhadap jenis-jenis virus dan malware yang dapat merusak komputer dan pastikan engine-nya terupdate agar database antivirus lebih agresif terhadap varian ancaman baru.

3. Sebaiknya gunakan juga Anti Spyware dan Anti Adware

Spyware adalah program jahat yang dengan sepengetahuan atau tidak dapat memata-matai kegiatan berinternet dan mencuri data-data penting seperti username, password atau pin rekening bank kita. Adware juga memiliki potensial yang tanpa izin kita dapat menampilkan pesan ‘jendela/ pop up’ yang biasa berisi gambar porno, atau tipuan tertentu.

  • Spywareblaster – Ini adalah Software yang berjalan secara resident di komputer dan ampuh mencegah Spyware dan Adware terinstal ke komputer anda.
  • Spywareguard – Juga merupakan Software pencegah Spyware dan Adware terinstal ke komputer dengan cara mendeteksi usaha perubahan setting dan registry, sehingga kita tahu jika ada sebuah program yang tanpa ijin berusaha merubah struktur windows kita.
  • Ad-aware – Software yang dapat mencegah Spyware dan Adware masuk ke komputer dan juga dapat menghilangkan yang sudah terlanjur masuk ke komputer anda.
  • Spybot – Juga merupakan Anti Spyware dan Adware, jika ada yang tidak dapat dihilangkan oleh Ad-ware maka akan bisa dihilangkan oleh Spybot, begitu juga sebaliknya.

4. Gunakan Firewall

Sebenarnya semua OS sudah dilengkapi firewall pada sistemnya dan juga beberapa antivirus juga sudah dilengkapi firewall tetapi kita bisa memanfaatkan Firewall pihak ke-3 ini sebagai optional untuk lebih aman. contoh firewall :

5. Gunakan Internet Browser yang dipercaya

Contoh Browser yang dipercaya :

6. Hapus Cookie pada browser

Ini berguna bila anda bermain internet pada fasilitas Publik seperti Warnet, Perkantoran Publik dsb.

caranya : saat browser terbuka tekan ctrl+shift+delete (ceklist semua dan delete/ hapus)

7. Gunakan Pasword yang panjang pada akun atau ganti sesering mungkin

Bila perlu sisipkan tanda khusus seperti ‘#$%#@%$%’ pada password dan ganti sesering mungkin agar program perekam seperti keyloger tidak dapat mencuri akun kita.

8. Jangan sembarang Klik Join halaman yang tidak dipercaya

Verifikasi halaman dulu dari sumber terpercaya sebelum anda join agar akun anda tidak disabotase orang yang tidak bertanggung jawab.

**ctt : beberapa antivirus tidak bisa bergandengan denga anti spyware/ anti adware, karena sudah ada paket tersebut yaitu firewall, anti spyware/ anti adware dalam file antivirus tersebut, jadi sebaiknya gunakan satu saja yaitu antivirus tapi dengan engine yang selalu ter-update!

Keamanan Sosial Networking

Sebaiknya menambah keamanan ganda yaitu pemberitahuan sms pada aplikasi sosial kita seperti Facebook, ini berguna bila ada yang membuka akun kita pada komputer yang tidak dikenali contoh gambar :
facebook_sms.png
facebook_sms2.png

**ctt : jangan percaya autolike atau halaman yang tidak dipercaya. cek browser, halaman facebook seharusnya begini https://www.facebook.com , jangan percaya halaman diluar dari itu !!!

semoga bermanfaat. . . 🙂

Apa Captive Portal?


captive_portal.png

Teringat pertengahan tahun 2012 sewaktu teman saya Haryanda Sukri liburan ke Tembilahan, saat itu saya lagi asik-asiknya belajar sistem keamanan. Saya yang sedang melakukan settingan beberapa jaringan pada kerjaan saya dengan segera ide keluar begitu saja saat kami mendengar tentang Captive Portal. Segera kami membaca dan memahami algoritma Captive Portal untuk diimplementasikan sebagai sebagai sistem yang nantinya kami integrasi dengan LAMP, dan Radius.

Teknik captive portal memaksa klien yang mendapat IP  captive portal saat melakukan browsing terhadap LAN/ WIFI pada jaringan untuk melihat halaman web khusus (biasanya untuk keperluan otentikasi) sebelum bisa mengakses internet dari WAN. Browser client langsung diarahkan kepada Authetikasi captive portal. Ini dilakukan dengan mencegat semua paket berupa alamat atau port, sampai user mendapat authentikasi untuk mengakses Internet.

Pada waktu itu browser ini dialihkan ke halaman web yang mungkin memerlukan otentikasi dan/ pembayaran, atau hanya menampilkan acceptable use policy dan meminta user untuk setuju. Captive portal digunakan di banyak Wi-Fi hotspot, dan dapat digunakan untuk mengontrol akses rumah, apartemen, kamar hotel, pusat bisnis, dan bisa diimplementasikan ke jaringan kabel.

Karena halaman login itu sendiri harus disampaikan kepada klien, baik itu halaman login yang disimpan secara lokal di gateway, atau server web hosting halaman yang harus diizinkan oleh walled garden untuk mem-bypass proses authentikasi, dan ini tergantung pada set fitur gateway (authentikasi web server tergantung dari jenis setting gateway) biasanya ditampilkan berupa web authentikasi atau kebijakan tertentu.

Selain membolehkan akses URL dari web host, gateway juga bisa mengauthentikasi menggunakan Port TCP, Mac address dan semua dapat diatur untuk melewati proses authentikasi login. Semua diatur secara transparan dengan sistem firewall authentikasi. Server biasa meredirecting berupa halaman status kode HTTP 302 (sumber Google).

Captive portal juga mempunyai berpotensi untuk mengijinkan kita untuk melakukan berbagai hal secara aman melalui Port SSL & IPSec  dan mengset rule Quality Of Service (QoS) per user, tapi tetap mempertahankan jaringan yang sifatnya terbuka di infrastruktur WiFi.

Jadi ide dasar captive portal sebetulnya cukup sederhana. Daripada kita tergantung pada mekanisme keamanan built-in di peralatan WiFi 802.11b untuk mengontrol siapa saja yang dapat berasosiasi ke Access Point, menggunakan Captive portal kita mengkonfigurasi agar Access Point bekerja tanpa WEP dan DHCP Router sebagai network yang terbuka (Open Security)

Access Point bekerja pada mode bridge (bukan router), dan tersambung melalui kabel LAN ke sebuah router Linux. Router Linux yang akan memberikan IP melalui DHCP bagi semua wireless node yang tergabung, termasuk mengatur bandwidth dari masing-masing wireless node selain mengatur siapa yang boleh bergabung siapa yang tidak. Router Linux disini berfungsi sebagai wireless gateway yang menjadi perantara antara infrastruktur wirelesss dengan Internet.

Biasa saya bereksperimen menggunakan Coova Chilli sebagai Captive Portal dalam merancang suatu OS Billing Hotspot yang saya racik dengan OS Linux Ubuntu 11.04 LTS.

Untuk install Captive Portal :

#wget http://ap.coova.org/chilli/coova-chilli-1.3.0.tar.gz

#tar zvxf coova-chilli-1.3.0.tar.gz

#cd /coova-chilli-1.3.0

#./configure

#make install

Skenario Captive Portal :
captive_portal-skenario.png

Beberapa contoh Captive Portal

  • Coova Chilli
  • Chillispot

Sebenarnya Coova Chilli merupakan pengembangan dari Chillispot yang memperbaiki bug yang ada pada aplikasi terdahulunya.

Untuk edit Coova Chilli :

#gedit /etc/chilli/default

(contoh script captive portal yang sudah saya edit)

    # -*- mode: shell-script; -*-
    #
    #   Coova-Chilli Default Configurations.
    #   To customize, copy this file to /etc/chilli/config
    #   and edit to your liking. This is included in shell scripts
    #   that configure chilli and related programs before file ‘config’.
    ###
    #   Local Network Configurations
    #
    # HS_WANIF=eth0            # WAN
    HS_LANIF=eth1              # LAN
    HS_NETWORK=192.168.7.0     # HotSpot Network (must include HS_UAMLISTEN)
    HS_NETMASK=255.255.255.0   # NetMask
    HS_UAMLISTEN=192.168.7.1   # IP Address
    HS_UAMPORT=3990            # UAM Port
    HS_UAMUIPORT=4990          # HotSpot UAM “UI” Port Portal Tanam
    # HS_DYNIP=
    # HS_DYNIP_MASK=255.255.255.0
    # HS_STATIP=
    # HS_STATIP_MASK=255.255.255.0
    # HS_DNS_DOMAIN=
    # DNS Servers
    HS_DNS1=8.8.8.8            # DNS Server1
    HS_DNS2=8.8.4.4            # DNS Server2
    ###
    #   HotSpot settings for simple Captive Portal
    #
    HS_NASID=nas01
    HS_RADIUS=localhost        # Inisial Server
    HS_RADIUS2=localhost       # Inisial Server2
    HS_UAMALLOW=192.168.7.1    # Set Allow IP
    HS_RADSECRET=c0d393n       # Set harus sama dengan RADIUS shared secret(/etc/freeradius/clients.conf)
    HS_UAMSECRET=c0d393n       # Set UAM secret
    HS_UAMALIASNAME=chilli
    #  Configure RADIUS proxy support (for 802.1x + captive portal support)
    # HS_RADPROXY=on
    # HS_RADPROXY_LISTEN=127.0.0.1
    # HS_RADPROXY_CLIENT=127.0.0.1
    # HS_RADPROXY_PORT=1645
    # HS_RADPROXY_SECRET=$HS_RADSECRET
    #  Example OpenWrt /etc/config/wireless entry for hostapd
    #    option encryption wpa2
    #    option server $HS_RADPROXY_LISTEN
    #    option port $HS_RADPROXY_PORT
    #    option key $HS_RADPROXY_SECRET
    #   To alternatively use a HTTP URL for AAA instead of RADIUS:
    # HS_UAMAAAURL=http://my-site/script.php
    #   Put entire domains in the walled-garden with DNS inspection
    # HS_UAMDOMAINS=”.paypal.com,.paypalobjects.com”
    #   Optional initial redirect and RADIUS settings
    # HS_SSID=<ssid>        # To send to the captive portal
    # HS_NASMAC=<mac address>  # To explicitly set Called-Station-Id
    # HS_NASIP=<ip address>    # To explicitly set NAS-IP-Address
    #   The server to be used in combination with HS_UAMFORMAT to
    #   create the final chilli ‘uamserver’ url configuration.
    HS_UAMSERVER=$HS_UAMLISTEN
    #   Use HS_UAMFORMAT to define the actual captive portal url.
    #   Shell variable replacement takes place when evaluated, so here
    #   HS_UAMSERVER is escaped and later replaced by the pre-defined
    #   HS_UAMSERVER to form the actual “–uamserver” option in chilli.
    HS_UAMFORMAT=http://\$HS_UAMLISTEN:\$HS_UAMUIPORT/www/login.chi  # Format Interface WEB
    #   Same principal goes for HS_UAMHOMEPAGE.
    HS_UAMHOMEPAGE=http://\$HS_UAMLISTEN:\$HS_UAMPORT/www/coova.html # WEB Interface Login
    #   This option will be configured to be the WISPr LoginURL as well
    #   as provide “uamService” to the ChilliController. The UAM Service is
    #   described in: http://www.coova.org/CoovaChilli/UAMService
    #
    # HS_UAMSERVICE=
    ###
    #   Features not activated per-default (default to off)
    #
    # HS_RADCONF=off        # Get some configurations from RADIUS or a URL (‘on’ and ‘url’ respectively)
    #
    # HS_ANYIP=on           # Allow any IP address on subscriber LAN
    #
    # HS_MACAUTH=on         # To turn on MAC Authentication
    #
    # HS_MACAUTHDENY=on     # Put client in ‘drop’ state on MAC Auth Access-Reject
    #
    # HS_MACAUTHMODE=local  # To allow MAC Authentication based on macallowed, not RADIUS
    #
    # HS_MACALLOW=”…”       # List of MAC addresses to authenticate (comma seperated)
    #
    # HS_USELOCALUSERS=on   # To use the /etc/chilli/localusers file
    #
    # HS_OPENIDAUTH=on      # To inform the RADIUS server to allow OpenID Auth
    #
    # HS_WPAGUESTS=on       # To inform the RADIUS server to allow WPA Guests
    #
    # HS_DNSPARANOIA=on     # To drop DNS packets containing something other
    #                       # than A, CNAME, SOA, or MX records
    #
    # HS_OPENIDAUTH=on      # To inform the RADIUS server to allow OpenID Auth
    #                       # Will also configure the embedded login forms for OpenID
    #
    # HS_USE_MAP=on         # Short hand for allowing the required google
    #                       # sites to use Google maps (adds many google sites!)
    #
    ###
    #   Other feature settings and their defaults
    #
    # HS_DEFSESSIONTIMEOUT=0   # Default session-timeout if not defined by RADIUS (0 for unlimited)
    #
    # HS_DEFIDLETIMEOUT=0      # Default idle-timeout if not defined by RADIUS (0 for unlimited)
    #
    # HS_DEFBANDWIDTHMAXDOWN=0 # Default WISPr-Bandwidth-Max-Down if not defined by RADIUS (0 for unlimited)
    #
    # HS_DEFBANDWIDTHMAXUP=0   # Default WISPr-Bandwidth-Max-Up if not defined by RADIUS (0 for unlimited)
    ###
    # Centralized configuration options examples
    #
    # HS_RADCONF=url        # requires curl
    # HS_RADCONF_URL=https://coova.org/app/ap/config
    # HS_RADCONF=on         # gather the ChilliSpot-Config attributes in
    #                       # Administrative-User login
    # HS_RADCONF_SERVER=rad01.coova.org        # RADIUS Server
    # HS_RADCONF_SECRET=coova-anonymous        # RADIUS Shared Secret
    # HS_RADCONF_AUTHPORT=1812                 # Auth port
    # HS_RADCONF_USER=chillispot               # Username
    # HS_RADCONF_PWD=chillispot                # Password
    ###
    #   Firewall issues
    #
    # Uncomment the following to add ports to the allowed local ports list
    # The up.sh script will allow these local ports to be used, while the default
    # is to block all unwanted traffic to the tun/tap.
    #
    HS_TCP_PORTS=22 80 10000  # Set Port.
    ###
    #   Standard configurations
    #
    HS_MODE=c0d393n
    HS_TYPE=chillispot
    # HS_RADAUTH=1812
    # HS_RADACCT=1813
    # HS_ADMUSR=chillispot
    # HS_ADMPWD=chillispot
    ###
    #   Post-Auth proxy settings
    #
    # HS_POSTAUTH_PROXY=<host or ip>
    # HS_POSTAUTH_PROXYPORT=<port>
    #   Directory specifying where internal web pages can be served
    #   by chilli wth url /www/<file name>. Only extentions like .html
    #   .jpg, .gif, .png, .js are allowed. See below for using .chi as a
    #   CGI extension.
    HS_WWWDIR=/etc/chilli/www   //set WEB Direktori
    #   Using this option assumes ‘haserl’ is installed per-default
    #   but, and CGI type program can ran from wwwsh to process requests
    #   to chilli with url /www/filename.chi
    HS_WWWBIN=/etc/chilli/wwwsh //set Binary WEB
    #   Some configurations used in certain user interfaces
    #
    HS_PROVIDER=Tekhnik_Jaringan_Komputer   # Set SSID
    HS_PROVIDER_LINK=https://www.facebook.com/pages/Tekhnik-Jaringan-Komputer/591810314163905
    ###
    #   WISPr RADIUS Attribute support
    #
    # HS_LOC_NAME=”SandesHotspot”       # WISPr Location Name and used in portal
    # WISPr settings (to form a proper WISPr-Location-Id)
    # HS_LOC_NETWORK=”My Network”       # Network name
    HS_LOC_AC=+62              # Kode area HP Indonesia
    HS_LOC_CC=0768             # Kode area Telp Tbh
    HS_LOC_ISOCC=INA           # Kode Negara Indonesia

Silahkan dikembangkan 🙂 salam c0d393n ;p

https://www.facebook.com/pages/Tekhnik-Jaringan-Komputer/591810314163905

Install Squid NginX


jadiakbar_nginx.png

Info : Nginx ditulis oleh seorang warga negara Rusia yang bernama Igor Sysoev pada tahun 2002 dan dirilis ke publik pada tahun 2004. Nginx terkenal karena stabil, memiliki tingkat performansi tinggi dan minim mengonsumsi sumber daya.

Nginx merupakan suatu Web server/ Proxy server yang paling banyak digunakan baik dalam Provider besar seperti Telkomsel, XL dsb… yang karena keunggulan dan kestabilan sebagai server HTTP dan reverse proxy bebas berbasis open-source yang berkemampuan tinggi, juga dapat digunakan sebagai server proxy IMAP/POP3. Nginx memiliki kelebihan dengan Resource kecil terhadap Hardware sehingga bisa menampung banyak user sekaligus. Nginx juga digunakan oleh beberapa website ternama seperti: WordPress, Hulu, Github, Ohloh dan TorrentReactor.

Beberapa aplikasi yang diPerformace NginX :

  • WordPress
  • Drupal
  • Joomla
  • XOOPS
  • Concreat5
  • Geeklog
  • OpnePNE
  • Magento
  • EC-CUBE
  • Ruby on Rails
  • Redmine
  • Django
  • Movable Type

Beberapa Bahasa Program yang didukung :

  • PHP
  • Ruby
  • Python
  • Perl

Supported By
all-handle.png

(sumber NinjaX, Google)

Disini saya asumsikan Nginx sebagai proxy dan hampir sama dengan Lusca sebagai proxy dengan keamanan bagi user dalam berselancar Internet. Sebagai syarat awal dengan 2 LanCard dan Sharing Internet sudah berjalan baik. Setup Squid+Nginx pada mode Gateway 🙂

Skenario :  —–WAN—–Squid Nginx—–User  🙂

Langkah dalam menginstal Nginx + Squid :

1. Update Ubuntu + Upgrade untuk menjaga performa dan kestabilan sistem sebelum ditambah paket.

#apt-get update

#apt-get upgrade

2. Install SSH Server sebagai Remote menggunakan Tools SSH seperti Putty

#apt-get install openssh-server

3. Install Squid, untuk kestabilan sebaiknya gunakan Squid 2.7 stable 7

#apt-get install squid

#gedit /etc/squid/squid.conf

(remove semua isi squid.conf dan gantikan dengan script berikut)

# SQUID 2.7 stable 7
# See at : www.jadiakbar.wordpress.com
# PORT and Transparent Option
http_port 8080 transparent
server_http11 on
icp_port 0

# Cache saya set 40GB
store_dir_select_algorithm round-robin
cache_dir aufs /cache1 40000 16 256
cache_replacement_policy heap LFUDA
memory_replacement_policy heap LFUDA

# Enable Log Waktu
emulate_httpd_log on
logformat squid %tl %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
log_fqdn off

# Rotate Log saya set 2 bulan
logfile_rotate 60
debug_options ALL,1
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log

# Instal DNS Masquerade untuk searching DNS tercepat
# Instal dulu paketnya "apt-get install dnsmasq" first
dns_nameservers 127.0.0.1 8.8.8.8

#ACL Section
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow all
http_reply_access allow all
icp_access allow all

# Set Info Proxy
cache_effective_user proxy
cache_effective_group proxy
cache_mgr jadiakbar@rocketmail.com
visible_hostname jadiakbar.wordpress.com
unique_hostname c0d393n

cache_mem 16 MB
minimum_object_size 0 bytes
maximum_object_size 400 MB
maximum_object_size_in_memory 128 KB

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
refresh_pattern . 0 50% 4320
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache

# Youtube Cache Section
url_rewrite_program /etc/nginx/nginx.rb
url_rewrite_host_header off
acl youtube_videos url_regex -i ^http://[^/]+\.youtube\.com/videoplayback\?
acl range_request req_header Range .
acl begin_param url_regex -i [?&]begin=
acl id_param url_regex -i [?&]id=
acl itag_param url_regex -i [?&]itag=
acl sver3_param url_regex -i [?&]sver=3
cache_peer 127.0.0.1 parent 8081 0 proxy-only no-query connect-timeout=10
cache_peer_access 127.0.0.1 allow youtube_videos id_param itag_param sver3_param !begin_param !range_request
cache_peer_access 127.0.0.1 deny all

4. Install NginX

#apt-get install nginx

#gedit /etc/nginx/nginx.conf

(edit nginx.conf dan pastekan script berikut)

# For more info, visit http://code.google.com/p/youtube-cache/
# See at www.jadiakbar.wordpress.com
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 768;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
gzip_static on;
gzip_comp_level 6;
gzip_disable .msie6.;
gzip_vary on;
gzip_types text/plain text/css text/xml text/javascript application/json application/x-javascript application/xml application/xml+rss;
gzip_proxied expired no-cache no-store private auth;
gzip_buffers 16 8k;
gzip_http_version 1.1;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
# starting youtube section
server {
listen 127.0.0.1:8081;
location / {
root /usr/local/www/nginx_cache/files;
#try_files "/id=$arg_id.itag=$arg_itag" @proxy_youtube; # Old one
#try_files  "$uri" "/id=$arg_id.itag=$arg_itag.flv" "/id=$arg_id-range=$arg_range.itag=$arg_itag.flv" @proxy_youtube; #old2
try_files "/id=$arg_id.itag=$arg_itag.range=$arg_range.algo=$arg_algorithm" @proxy_youtube;
}
location @proxy_youtube {
resolver 221.132.112.8;
proxy_pass http://$host$request_uri;
proxy_temp_path "/usr/local/www/nginx_cache/tmp";
#proxy_store "/usr/local/www/nginx_cache/files/id=$arg_id.itag=$arg_itag"; # Old 1
proxy_store "/usr/local/www/nginx_cache/files/id=$arg_id.itag=$arg_itag.range=$arg_range.algo=$arg_algorithm";
proxy_ignore_client_abort off;
proxy_method GET;
proxy_set_header X-YouTube-Cache "jadiakbar@rocketmail.com";
proxy_set_header Accept "video/*";
proxy_set_header User-Agent "YouTube Cacher (nginx)";
proxy_set_header Accept-Encoding "";
proxy_set_header Accept-Language "";
proxy_set_header Accept-Charset "";
proxy_set_header Cache-Control "";}
}
}

5. Buat Direktori untuk Cache

#mkdir /usr/local/www

#mkdir /usr/local/www/nginx_cache

#mkdir /usr/local/www/nginx_cache/tmp

#mkdir /usr/local/www/nginx_cache/files

#chown www-data /usr/local/www/nginx_cache/files/ -Rf

6. Buat File NginX.rb

#touch /etc/nginx/nginx.rb

(permission)

#chmod 755 /etc/nginx/nginx.rb

7. Edit File NginX.rb

#gedit /etc/nginx/nginx.rb

(gantikan dengan)

#!/usr/bin/env ruby1.8
# See at www.jadiakbar.wordpress.com
# For more info, visit http://code.google.com/p/youtube-cache/
# url_rewrite_program <path>/nginx.rb
# url_rewrite_host_header off

require "syslog"
require "base64"

class SquidRequest
attr_accessor :url, :user
attr_reader :client_ip, :method

def method=(s)
@method = s.downcase
end

def client_ip=(s)
@client_ip = s.split('/').first
end
end

def read_requests
# URL <SP> client_ip "/" fqdn <SP> user <SP> method [<SP> kvpairs]<NL>
STDIN.each_line do |ln|
r = SquidRequest.new
r.url, r.client_ip, r.user, r.method, *dummy = ln.rstrip.split(' ')
(STDOUT << "#{yield r}\n").flush
end
end

def log(msg)
Syslog.log(Syslog::LOG_ERR, "%s", msg)
end

def main
Syslog.open('nginx.rb', Syslog::LOG_PID)
log("Started")

read_requests do |r|
if r.method == 'get' && r.url !~ /[?&]begin=/ && r.url =~ %r{\Ahttp://[^/]+\.youtube\.com/(videoplayback\?.*)\z}
log("YouTube Video [#{r.url}].")
"http://127.0.0.1:8081/#{$1}"
else
r.url
end
end
end
main

8. Install Ruby sebagai bahasa pemrograman berbasis Open Source yang ringan untuk Read/ Write Cache

#apt-get install ruby

9. Konfigurasi Direktori Squid dan Permissionnya

#mkdir /cache1
#chown proxy:proxy /cache1
#chmod -R  777 /cache1

10. Inialisasi Direktori

#squid -z

11. Restar Squid dan NginX

#service squid start
#service nginx restart
video_rw.png

Saya gunakan speed 1MBps dari speedy –> +/-80MBps 🙂
jadiakbar-squid_nginx.jpg

Terimakasih atas bantuan sebesar-besarnya kepada Master Zaib —> Soulder Of Pakistan!!!

Semoga ALLAH SWT membalas jasamu yang telah membantu menyusun algoritma Squid + NginX…

NEXT POSTING EVENT


1. Multimedia –> Membuat kartun 3D ala PIXAR.

2. Memanage Direktori menggunakan Panel Kostumisasi Webmin Linux.

3. Membuat Server Publik menggunakan OS Windows.

4. Virtualisasi Linux – Mikrotik – Proxy dalam satu mesin.

5. Membuat Server WEB Hosting Menggunakan OS Linux Centos.

6. Virtual Private Network ( VPN ) menggunakan Mikrotik.

7. Membangun VOIP menggunakan media Wirelles.

8. Membuat DISTO Linux Desktop untuk koleksi.

9. dst… jangan lupa like yach di halaman ini ntar banyak dech bakan di share… 🙂

About


Assalamualaikum…

Salam sejahtera rekan-rekan yang senantiasa selalu diberi kesehatan dan kemudahan dalam beraktifitas…

Izinkan saya memperkenalkan diri…

Saya hanya orang biasa seperti layaknya orang kebanyakan tetapi saya adalah anak yang kreatif dan selalu bereksperimen mencoba hal baru dan menciptakan/merekayasa sistem untuk dikembangkan menjadi suatu usaha dan kebutuhan bersama yang bermanfaat untuk orang banyak.

Blog ini didedikasikan untuk anda yang mau belajar dan terus belajar meski tidak dalam jenjang pendidikan formal, tetapi ada niat dan keinginan untuk belajar. dan anda jangan khawatir karena isi dari blog ini merupakan hasil eksperimen saya selama bekerja sebagai tukang jaringan, hehe… 🙂

Sebenarnya masih banyak yang ingin saya postingkan didalam blog ini tetapi tanpa dukungan dan semangat anda membuat saya malas untuk melanjutkan postingan-postingan yang selanjutnya.

Mungkin anda tahu apa resiko yang didapat dari seorang kreatif dengan niat baik? mereka menghabiskan waktu dan melaksanakan beberapa pekerjaan yang merupakan kegiatan rutinitas tetapi mereka selalu menyempatkan diri untuk berkomunikasi lewat media maya demi pahala yang didapat dari anda yang mau berbagi dan belajar bersama mereka.

Saya sebagai penulis akan membantu anda dengan ilmu yang tidak seberapa dari saya bila anda membutuhkan bantuan saya, baik secara online maupun datang kelokasi jika anda membutuhkan. Untuk online trouble silahkan info ke :

SMS/ CALL 0852 7478 0556 –> A.N  jadi akbar

Untuk menambah motivasi saya dalam menulis dan berbagi informasi seputar Tekhnik Jaringan, ada baiknya anda membantu partisipasi berupa join dan like halaman di :

SINI

Agar motivasi saya sebagai penulis dapat memberikan informasi lebih banyak lagi, karena tanpa dukungan semangat anda saya sebagai orang biasa bukan apa-apa kecuali seorang yang mencoba berbagi informasi seputar JarKom.

Tidak lupa pula rasa terimakasih saya ucapkan kepada :

  • Haryanda Sukri My Best Friend yang mengenalkan jaringan dan sistem pada saya,
  • Master Dwiyuli Prasetyo Dosen sekaligus rekan yang mengenalkan Linux,
  • Bg Dedi, Master Of Inhil Club Tekhnologi Tembilahan,
  • Bg Iwan My Inspiration Of Inhil Club Tekhnologi Tembilahan,
  • Master Zaib Guru sekaligus yang merekomendasikan berbagi ilmu untuk kebaikan,
  • dan semua kawan-kawan seperjuangan!!!

Salam hangat dan selamat menjalankan aktifitas anda dan selamat belajar bersama !!!

Jadi Akbar

Join at —–>  INHIL CLUB TEKHNOLOGI

Join at —–> Tekhnik Jaringan Komputer

TEMBILAHAN, 2013

VM-Ware ( Virtual Machine Manager )


vm-ware.jpg

VM-Ware/ Aplikasi Virtual Mesin Manajer adalah suatu aplikasi interface pengguna desktop untuk menampilkan dan mengelola Sistem Operasi secara virtual. VM-Ware memungkinkan suatu Sistem Operasi berjalan didalam sebuah sistem operasi.

VM-Ware berguna sebagai OS tambahan didalam sistem OS yang sedang berjalan sehingga bisa digunakan untuk menghemat Harware yang ada. VM-Ware menampilkan suatu proses yang sedang berjalan dari suatu OS bisa dimulai dari tahap instalasi OS tersebut dan juga menampilkan secara performance & secara resource utilitinya.

Sebagai suatu aplikasi yang akan bekerja secara simultan dengan OS yang ada, membuat VM-Ware membutuhkan resource besar seperti syarat RAM yang besar (Rekomendasi min 512MB) dan Processor yang cepat (Rekomendasi Core Duo atau setara).

Saya biasa menggunakan dalam tahap penguji cobaan sistem operasi sebelum sistem tersebut saya patenkan untuk perangkat yang akan saya bangun. disini saya hanya menjelaskan konfigurasi Play and Run OS dari VM-Ware dan skenario sistem dari VM-Ware tersebut, dan saya yakin anda pasti mudah memahaminya. untuk instalasi Program VM-Ware tidak akan saya jelaskan karena seperti install program pada umumnya.

Skenario :

vmware_server.gif

Bagan sistem proses VM-Ware :
vm-ware_scenario.jpg

Konfigurasi Play and Run :

Download dulu VM-Ware http://www.filehippo.com/download_vmware_player/

Ambil saja VM-Ware terbaru, selanjutnya install program tersebut.

Next –> Buka Aplikasi

  • Ikuti petunjuk, sesuaikan.

vm-ware1.png

  • Masukkan Image OS pada CD atau Image OS pada HDD (OS berupa file denga extensi .iso)

vm-ware2.png

  • Saya mengambil contoh instalasi Win 8

vm-ware3.png

  • Buat User (Password boleh tidak ada), masukkan SN bila ada

vm-ware4.png

  • Buat Nama Image VM-Ware dan tentukan Dir Image file OS berupa file extensi .vmdk

vm-ware5.png

  • Tentukan besar Kapasitas HDD untuk Virtual yang akan kita gunakan

vm-ware6.png

  • Tentukan besar Ram, jenis Processor untuk virtualisasi (dan konfigurasi lain jika dibutuhkan)

vm-ware7.png

vm-ware8.png

  • Sampai disini anda pasti sudah tahu cara install OS Win 8 tsb.

vm-ware9.png

Selesai. . . semoga bermanfaat.

Install Webmin pada Linux


logo-webmin_at-me.png

Webmin singkatan dari Web Based System Administration –> administrasi berbasis web. Webmin merupakan suatu aplikasi berbasis web untuk konfigurasi perangkat berbasis sistem Unix, ada banyak varian OS yang bisa didukung oleh Webmin dan tercatat lebih kurang 40 sistem operasi. Webmin dapat melakukan administrasi terhadap sistem mulai dari setelah komputer dihidupkan sampai komputer shutdown. Banyak administrasi service yang dapat ditangani oleh Webmin. Webmin dapat digunakan untuk pengaturan administrasi root sistem dan user mulai dari pengaturan Web server, DNS, Proxy, VPN, administrasi daemon, cd burn, firewalling dan juga layanan atau konfigurasi file, serta memodifikasi dan kontrol open source aplikasi, seperti Apache HTTP Server , PHP atau MySQL, tetapi dengan catatan Webmin hanya sebagai interface sistem yang tujuannya mempermudah administrasi terhadap sistem yang ada sudah ada.

Webmin merupakan sistem web yang ditulis dalam bahasa Perl oleh Jamie Cameron, berjalan dengan proses sendiri dan interface Web server  Standarnya ke TCP port 10000 untuk berkomunikasi, dan dapat dikonfigurasi untuk menggunakan SSL jika OpenSSL diinstal dengan tambahan yang dibutuhkan Perl Modul. (sumber google).

Webmin juga memungkinkan untuk mengontrol banyak komputer melalui sebuah interface tunggal, atau login di host webmin lain pada subnet yang sama atau LAN .

Disini saya menggunakan Webmin versi 1.620 dan OS Linux Ubuntu 12.04 LTS (Precise)

Tahapan Instalasi :

1. Pastekan command berikut pada terminal

#apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python

2. Download Webmin v.1.620

#wget http://prdownloads.sourceforge.net/webadmin/webmin_1.620_all.deb

3. Install Webmin tersebut

#dpkg -i webmin_1.620_all.deb

4. Buat Password Root Webmin

#/usr/share/webmin/changepass.pl /etc/webmin root (password anda)

5. Buka Browser dan ketikkan https://localhost:10000

Masukkan Username : root

Masukkan Password  : password yang anda buat tadi
Screenshot from 2013-03-20 13:14:29.png
Screenshot from 2013-03-20 13:16:24.png

selesai. . . semoga bermanfaat.

** Jgn lupa like yach… 🙂