Вы находитесь на странице: 1из 27

Topologi yang digunakan

ISP : 192.168. 0.254/ 24

^
ethO : 192.168.0.1/ 24
** |
r
ethl : 192.168. 200.1/ 24

-a
Client mendapatkan IP DHCP

Arah DNS Server


root@server:/home/server#nano /etc/resolv.conf
search bahrudin.net
nameserver 192.168.200.1
nameserver 8.8.8.8
nameserver 8.8.4.4
ctrl + o => enter
ctrl + x

Penetuan Pengguna Host Komputer


root@server:/home/server#nano /etc/hosts
127.0.0.1 localhost
192.168.200.1 bahrudin.net server
ctrl + o => enter
ctrl + x

“ CYBER NETWORK ”
0812 8500 6059 Page 1 of 27
Interface Jaringan
root@server:/home/server#nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.254
auto eth1
iface eth1 inet static
address 192.168.200.1
netmask 255.255.255.0
ctrl + o => enter
ctrl + x
root@server:/home/server#service networking restart

Remote Server
root@server:/home/server# nano /etc/ssh/sshd_config
// pastikan port 22 dan ganti dengan port yang di inginkan
Port 22
// cari tulisan banner dan hapus tanda pagarnya
#Banner /etc/issue.net
// cari tulisan PermitRootLogin no dan ganti menjadi yes kemudian tambahkan scrip di bawahnya
PermitRootLogin yes
AllowUsers bahrudin
ctrl + o => enter
ctrl + x

.
^ PuTTY Configuration
Category:
X 192.168 200.1 - PuTTY
login as: root
- X

El Session Basic options for your PuTTY session root@192.168.200.1's password:


— Logging Specify the destination you want to connect to Linux server 3.2.0-4-486 #1 Debian 3.2.41-2 i686
E) Terminal
Host Name (or IP address) Port
— Keyboard
• Bell
192.168.200.1| 22
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
•••• Features Connection type: individual files in /usr/share/doc/*/copyright.
(E) Window O ^aw O Telnet QRIogin i
( ) SSH O Serial
•••• Appearance Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
Load, save or delete a stored session
- Behaviour permitted by applicable law.
•••• Translation Saved Sessions
Last login: Thu Sep 6 23:58:12 2018 from laptop-sle6ujto.local
• Selection
•••
|
E)
— Colours
Connection
Default Settings Load
r o o t@s e r v e r

•••• Data Save


Proxy
Telnet Delete
Rlogin
••••

E) SSH
Serial
Close window on exit :
O Always O Never •
( ) Only on clean exit

About Open Cancel

“ CYBER NETWORK ”
0812 8500 6059 Page 2 of 27
FTP Server
root@server# apt-get install proftpd
pilih stand alone
root@server# cd /home/server/
root@server:/home/server# mkdir data
root@server:/home/server# chmod 777 data/
root@server:/home/server# userdel ftp
root@server:/home/server# useradd -d /data/ ftp
root@server:/home/server# passwd ftp
Enter new UNIX password: 123
Retype new UNIX password: 123
passwd: password updated successfully
root@server:/home/server# nano /etc/proftpd/proftpd.conf
// tambahkan scrip paling bawah
<Anonymous /home/server/data/>
User ftp
</Anonymous>
root@server:/home/server# service proftpd restart
0 ftp © 192.168.200.1 - FileZilla X
File Edit View Transfer Server Bookmarks Help New version available!

I f l’a O l i O :* v
Host: 192.168.200.1 Username: ftp Password: Port: Quickconnect
Status: Connecting to 192.168.200.1:21...
Status: Connection established, waiting for welcome message. , .
Status: Insecure server, it does not support FTP over TLS .
Status: Logged in
Status: Retrieving directory listing...
Status: Directory listing of 7" successful

ftp @ 192.168.200.1 xj ftp @ 192.168.200.1 X

Local site: School\wordpr Remote site: /


El wordpress /
GEi- fl UNBK 2018
upload
I
| [
Q Wali Kelas TKJ 3
Wali Kelas TKJ 4
It). winbox
A
Filename Filesize Filetype Last modified Filename Filesize Filetype Last modifiec

H-
wp- admin File folder 15/09/ 201807.35.09
wp- content File folder 15/09/ 2018 07.32.07 Empty directory listing
wp- includes File folder 15/09/ 2018 07.34.03
index.php 418 PHP Script 25/09/ 2013 07.18.11
luf license.txt 19.935 TXT File 07/01/ 201802.32.42

16 files and 3 directories. Total size: 147.593 bytes Empty directory.

Server/ Local file Direction Remote file Size Priority Status

Queued files Failed transfers Successful transfers

@ Queue: empty ••

“ CYBER NETWORK ”
0812 8500 6059 Page 3 of 27
DHCP Server
root@server:/home/server#apt-get install dhcp3-server
root@server:/home/server#nano /etc/default/isc-dhcp-server
INTERFACES="eth1" // tambahkan tulisan eth1 (jaringan ke client) setelah tanda kutip “”
ctrl + o => enter
ctrl + x
root@server:/home/server#nano /etc/dhcp/dhcpd.conf
// cari tulisan “a sli” dan sesuaikan dengan networknya
# A slightly different configuration for an internal subnet.
subnet 192.168.200.0 netmask 255.255.255.0 {
range 192.168.200.26 192.168.200.30;
option domain-name-servers 192.168.200.1, 8.8.8.8, 8.8.4.4;
option domain-name "bahrudin.net";
option routers 192.168.200.1;
option broadcast-address 192.168.200.255;
default-lease-time 600;
max-lease-time 7200;
}

“ CYBER NETWORK”
0812 8500 6059 Page 4 of 27
ctrl + o => enter
ctrl + x
root@server:/home/server#service isc-dhcp-server restart
Ij} VirtualBox Host - Only Network #5 Status X

Network Connection Details X

Network Connection Details :


Property Value A

Connection-specific DN... bahrudin.net


Description VirtualBox Host -Only Ethernet Adapter
Physical Address OA-OO-27-OO-OO-OC
DHCP Enabled Yes
IPv 4 Address 192.168.200.26
IPv 4 Subnet Mask 255.255.255.0
Lease Obtained Kamis, 06 September 2018 22.52.15
Lease Expires Jumat , 07 September 2018 DD.45.26
IPv 4 Default Gateway 152.168.200.1
IPv 4 DHCP Server 152.168.200.1
IPv 4 DNS Servers 152.168.200.1
S.S.S.S
S.S.4.4
IPv 4 WINS Server
NetBIOS overTcpip En ... Yes
Link -local IPv 6 Address fe SO::521 7624:8845:cfc5%12 V

< >

Close

“ CYBER NETWORK ”
0812 8500 6059 Page 5 of 27
DNS Server
root@server:/home/server#apt-get install bind9
root@server:/home/server#cd /etc/bind
root@server:/etc/bind # // pastikan sudah pindah ke directori /etc/bind
root@server:/etc/bind #nano named.conf.local
#...... // tambahkan scrip di paling bawah
zone "bahrudin.net" {
type master;
file "/etc/bind/f";
};

zone "200.168.192.in-addr.arpa" {
type master;
file "/etc/bind/r";
};
ctrl + o => enter
ctrl + x
root@server:/etc/bind #cp db.local f
root@server:/etc/bind #cp db.127 r
root@server:/etc/bind #nano f
//ganti kata localhost deangan nama domain dan tambahkan scrip seperti di bawah ini

@ IN NS bahrudin.net.
@ IN A 192.168.200.1
server IN A 192.168.200.1
ftp IN A 192.168.200.1
www IN A 192.168.200.1
mail IN A 192.168.200.1
ctrl + o => enter
ctrl + x
root@server:/etc/bind #nano r
//ganti kata localhost deangan nama domain dan tambahkan scrip seperti di bawah ini
@ IN NS bahrudin.net.
1 IN PTR bahrudin.net.
1 IN PTR ftp
1 IN PTR www
1 IN PTR mail

“ CYBER NETWORK”
0812 8500 6059 Page 6 of 27
ctrl + o => enter
ctrl + x
root@server:/etc/bind #service bind9 restart
root@server:/etc/bind #nslookup bahrudin.net
root@server:/etc/bind #nslookup ftp.bahrudin.net
root@server:/etc/bind #nslookup www.bahrudin.net
root@server:/etc/bind #nslookup mail.bahrudin.net
root@server:/etc/bind #nslookup 192.168.200.1
C :\WIND GWSV system 3 2\ c m d. exe
Microsoft Windows [ Version 10.0.17134.228]
(c) 201S Microsoft Corporation . Ail rights reserved.
C :\Users\ICT > nsiookup bahrudin . net
Server : bahrudin. net
Address: 192.168.200.1

Name: bahrudin. net


Address: 192.168.200.1

C :\ Users\ICT > nslookup 192.16S. 200.1


Server : ftp . 200.16S.192. in - addr . arpa
Address: 192.168.200.1

Name: www. 200.16S.192. in - addr . arpa


Address: 192.168.200.1

C :\ Users\ICT > nslookup 192.16S. 200.1


Server : mail. 200.16S.192. in - addr . arpa
Address: 192.168.200.1

Name: bahrudin. net


Address: 192.168.200.1

C :\ Users\ICT >

if DasiiKan sun an mrman K

“ CYBER NETWORK ”
0812 8500 6059 Page 7 of 27
Web Server
root@server:/etc/bind #apt-get install apache2
root@server:/etc/bind #cd /etc/apache2/sites-available/
root@server:/etc/apache2/sites-available#
// pastikan sudah pindah ke directori /etc/apache2/sites-available
root@server:/etc/apache2/sites-available#nano default
ServerAdmin admin@localhost
ServerName bahrudin.net
DocumentRoot /var/www/
root@server:/etc/apache2/sites-available#nano /var/www/index.html
<html><body><h1>It works!</h1>
<p>This is the default web page for this server.</p>
<p>The web server software is running but no content has been added, yet.</p>
</body></html>
ctrl + o => enter
ctrl + x
root@server:/etc/apache2/sites-available#service apache2 restart
><- bahmdin . net

0 © Tidak aman
X

bahrudin.net
e
O m
Q

B
X

It works!
This is the default web page for this server.

The web server software is running but no content has been added , yet .

P © 0 ipi
2 A
^ ® dx IND 00.44

“ CYBER NETWORK ”
0812 8500 6059 Page 8 of 27
CMS Wordpress (Mysql-server & Php Myadmin)
root@server#apt-get install mysql-server phpmyadmin php5
bahrudin © server: ~
Package configuration
— X

\ Configuring phpmyadmin \
The phpmyadmin package must have a database installed and configured
before it can be used. This can be optionally handled with
dbconfig-common.

If you are an advanced database administrator and know that you want to
perform this configuration manually, or if your database has already
been installed and configured, you should refuse this option. Details
on what needs to be done should most likely be provided in
/usr/share/doc/phpmyadmin.

Otherwise, you should probably choose this option.

Configure database for phpmyadmin with dbconfig common? -


<Yes>

Pilik yes
bahrudin © server: ~ X
Package configuration A

I Configuring phpmyadmin I
Please provide the password for the administrative account with which
this package should create its MySQL database and user.

Password of the database's administrative user:

*** <


:> •
<Cancel>

s/

Berikan passwornya untuk phpmyadmin

“ CYBER NETWORK ”
0812 8500 6059 Page 9 of 27
bahrudin @ serven ~ X
Package configuration A

Configuring phpmvadmin
Please provide r password for phpmyadmin to register with the database
server If left blank a random password will be generated

MySQL application password for phpmyadmin

<Ok> <iancei>

Berikan passwornya untuk mysql-server


bahrudin © server: ~
Package configuration m
Configuring phpmyadmin

Password confirmation:

<0k> <cancel>

D
Verifikasi password phpmyadmin
bahrudin © server: ~ X
Package configuration A

Configuring phpmyadmin I
Please choose the web server that should be automatically configured to
run phpMyAdmin.

Web server to reconfigure automatically:

[*] apache2
[ ] lighttpd

<Ok> <Cancel>

_ i
V

“ CYBER NETWORK ”
0812 8500 6059 Page 10 of 27
Pilih apaache2 sebagai webservernya
root@server#chmod 777 /var/www
// upload file wordpress dari komputer ke /var/www/
0 server@192.168.200.1 - FileZilla X
File Edit View Transfer Server Bookmarks Help New version available!

.
Host: 192.168 200.1 Username: server Password: •••••• Port: Quickconnect
Status: Deleting "/var/www/wordpress/ wp- includes/Texb'Diff /Renderer/inline php" .
Status: Retrieving directory listing of "/var/www/wordpress/ wp-includes/Text/Diff /Engine " ...
Status: Directory listing of "/var/www/wordpress/wp -includes/Text/ Diff/Engine" successful
Status: Deleting 4 files from "/var/www/wordpress/wp -includes/Text/Diff / Engine"
Status: Retrieving directory listing of "/var/www" ...
Status: Directory listing of "/var/www" successful

Local site: D:\To School\wordpress\ Remote site: /var/www


| [ Lentera A El - 1? /
( j) ~ Modul E) ? home
fi- PGRI | sen
SMKN 1 0- [?| var
0- ww
$ UNBK .t Upload
+ Add to queue
Filename Filename Filesize Filetype Last modified
[»y license.txt Open 2.32.42
D readme.html Create directory
3.13.39 B index.html 177 FirefoxHT ... 06/09/ 2018 22
.
wp - activate php
Create directory and enter it
5.10.26
wp - blog- header ... B.20.28
wp- comments -... Delete 5.11.25
wp - config- sam... Rename 5.58.26
wp - cron.php 1.37.45
wp- links - opml. 2.422 PHP Script 21/11/ 2016 09.46.30 v

Selected 1 file. Total size: 2.853 bytes 1 file. Total size: 177 bytes

Server/ Local file Direction Remote file Size Priority Status

Queued files Failed transfers Successful transfers (1509)

1*1<01 Queue: empty ••


// buat databasnya terlebih dahulu dengan nama wordpress di client dengan alamat
http://bahrudin.net/phpmyadmin/
// login sesuai dengan password yang dibuat tadi
^ phpMyAdmin X e Q x

<- 0 © Tidak aman bahrudin.net /phpmyadmin/ o

phpM
Selamat Datang di phpMyAdmin

Bahasa - Language

Bahasa Indonesia - Indonesian *

Masuk u

Nama Pengguna:

Kata Sandi:

Kirim

Mulai dari sini cookies harus diaktifkan

sa P si » \ if ® EJ E3 n o pP /\ 9M d») IND 09.55


^

“ CYBER NETWORK ”
0812 8500 6059 Page 11 of 27
// buat database dengan nama wordpress pada bagian menu Basis data
e
^ bahrudin.net / localhos: X
Q X

<- 0 © Tidak aman bahrudin.net /phpmyadmin/index.php?token= d 5 c4a75b47a 5278c350a 98653a 11d4c 8 O


’ O D i

localhost
phpMyAdmin
Basis data SQL Status Proses Aktif »1 HakAkses Ekspor Q Impor Q Variabel Set Karakter 4» Mesin ^ Lainnya
& fij 0 0 © $

0 information_schema
Basis data
0 mysql
0 performance_ schema
o Ciptakan database baru «
0 phpmyadmin
wordpress Penyortiran Buat
0 test

Basis data .
information_schema 11 Periksa Hak Akses
mysql ill Periksa Hak Akses
performanceschema 1=1 Periksa Hak Akses
phpmyadmin n= Periksa Hak Akses
test ill Periksa Hak Akses
Jumlah: 5

Pilih Semua / Lepas Semua Dengan pilihan: Q Hapus

Aktifkan Statistik

A\ Perhatian : Pengaktifan statistik basis data dapat mengakibatkan lalu lintas besar antara Webserver dan server MySQL

m 22 pP /\ 9M d») IND 09.59


^
root@server#cd /var/www/wordpress/
root@server:/var/www/wordpress#cp wp-config-sample.php wp-config.php
root@server:/var/www/wordpress#nano wp-config.php
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress);

/** MySQL database username */


define('DB_USER', 'root');

/** MySQL database password */


define('DB_PASSWORD', 'root’);

/** MySQL hostname */


define('DB_HOST', 'localhost');
ctrl + o => enter
ctrl + x
root@server:/var/www/wordpress# nano /etc/apache2/sites-available/default
ServerAdmin admin@localhost
ServerName bahrudin.net
DocumentRoot /var/www/wordpress/
ctrl + o => enter
ctrl + x

“ CYBER NETWORK ”
0812 8500 6059 Page 12 of 27
root@server:/var/www/wordpress#service apache2 reload
root@server:/var/www/wordpress#service apache2 restart
// install wordpress di cient dengan browser dengan alamat http://bahrudin.net
^ .
bahrudin net / localhos: X '' Q WordPress > Installation X e Q X

0 © Tidak aman bahrudin.net / wp- admin/install.php


’ 5]
O o a i

Welcome
Welcome to the famous five-minute WordPress installation process! Just fill in the information below and you’ll
be on your way to using the most extendable and powerful personal publishing platform in the world.

Information needed

Please provide the following information. Don’t worry, you can always change these settings later.

Site Title bahrudin

Username bahrudin
Usernames can have only alphanumeric characters, spaces, underscores, hyphens, periods, and the @
symbol .
Password ujian123 $g> Hide
Very weak
.
Important: You will need this password to log in Please store it in a secure location .
Confirm Password
* Confirm use of weak password

Your Email bahrudin@ bahrudin.net|


Double -check your email address before continuing .
Search Engine Discourage search engines from indexing this site
Visibility .
It is up to search engines to honor this request

Install WordPress

p s i e i ^i i i i t i B f Fp 9m d») IND 10.09


' 22 /\
^
// tungggu hingga proses installasi wordpress selesai
/ Dlu
.
bahrudin net / localhos: Xj Q -
bahrudin Just another X e Q X

0 © Tidak aman | bahrudin.net 3D O D ;


\v f Customize
+ New
bahrudin
^ 0 Howdy, bahrudin •

BAHRUDIN
Just another WordPress site

SS P Si / 5* FT ^ d») IND 10.11 m

“ CYBER NETWORK ”
0812 8500 6059 Page 13 of 27
Mail Server
root@server:/etc/apache2/sites-available# cd /etc/apache2/sites-available
root@server:/etc/apache2/sites-available# apt-get install postfix courier-imap courier-pop
squirrelmail
Package configuration

1 Postfix Configuration |
Please select the mail server configuration type that best meets your
needs.

No configuration:
Should be chosen to leave the current configuration unchanged.
Internet site:
Mail is sent and received directly using SMTP.
Internet with sir.arthost:
Mail is received directly using SMTP or by running a utility such
as fetchmail. Outgoing mail is sent using a smarthost.
Satellite system:
All mail is sent to another machine, called a s m a r t h o s t f o r
delivery.
Local only:

<Ok>

//pilih ok kemudiaan enter


Package configuration

1Postfix Configuration|
General type of mail configuration:

No configuration
Internet Site
Internet with smarthost
Satellite system
Local only

<Ok> <Caneel>

“ CYBER NETWORK ”
0812 8500 6059 Page 14 of 27
//pilih Internet site kemudiaan enter
Fackage configuration

Postfix Configuration|
1
The "mail name" is the domain nair.e used to "qualify" ALL mail _ _
addresses without a domain name. This includes mail to and from <root>:
please do not make your machine send out mail from root@example.org
unless root@example.org has told you to.

This name will also he used by other programs. It should be the single,
fully qualified domain nam.e ( FQDN).

Thus, if a mail address on the local host is foo@example.org, the


correct value for this option would be example.org.

System mail nam.e:


,

ahrudin.net

//pilih isi dengan hanya penulisan hanya domain kemudiaan enter


Fackage configuration

1 -
Configuring courier base |
Courier uses several configuration files in /etc/courier. Some of these
files can be replaced by a subdirectory whose contents are concatenated
and treated as a single, consolidated, configuration file.

- -
The web based administration provided by the courier webadmin package
relies on configuration directories instead of configuration files. If
-
you agree, any directories needed for the web based administration tool
will be created unless there is already a plain file in place.

-
Create directories for web based administration?

<Yes >

//pilih yes kemudiaan enter


root@server:/etc/apache2/sites-available#nano /etc/postfix/main.cf
myhostname = bahrudin.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = bahrudin.net, mail.bahrudin.net, localhost.bahrudin.net, localhost

“ CYBER NETWORK ”
0812 8500 6059 Page 15 of 27
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
#mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/
ctrl + o => enter
ctrl + x
root@server:/etc/apache2/sites-available#mkdir /etc/skel/Maildir
root@server:/etc/apache2/sites-available#adduser bahrudin
Adding user `bahrudin' ...
Adding new group `bahrudin' (1001) ...
Adding new user `bahrudin' (1001) with group `bahrudin' ...
Creating home directory `/home/bahrudin' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for bahrudin
Enter the new value, or press ENTER for the default
Full Name []: bahrudin
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
root@server:/etc/apache2/sites-available#adduser client
//lakukan seperti menambah user pertama tadi
root@server:/etc/apache2/sites-available#service postfix restrart
root@server:/etc/apache2/sites-available#service courier-imap restrart
root@server:/etc/apache2/sites-available#service courier-pop restrart
root@server:/etc/apache2/sites-available#service courier-authdaemon restrart

root@server:/etc/apache2/sites-available# telnet mail.bahrudin.net 25


Trying 192.168.200.1...
Connected to mail.bahrudin.net.
Escape character is '^]'.
220 server.pgri.net ESMTP Postfix (Debian/GNU)
mail from: bahrudin //user pertama
250 2.1.0 Ok
rcpt to: client //user kedua
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
ini adalah isi email // isi dari email
. // perintah untuk mengakhiri isi email

“ CYBER NETWORK”
0812 8500 6059 Page 16 of 27
250 2.0.0 Ok: queued as BA1A8663A4
Quit // keluar dari menu telnet
221 2.0.0 Bye
Connection closed by foreign host.

root@server:/etc/apache2/sites-available# telnet mail.bahrudin.net 110


Trying 192.168.200.1...
Connected to mail.bahrudin.net.
Escape character is '^]'.
+OK Hello there.
user client //user kedua bagian rcpt to pada telnet 25
+OK Password required.
pass 123 // password user kegdua
+OK logged in.
Stat // melihat ststus inbox email
+OK 1 410
retr 1 // membaca email dengan urutan no 1
+OK 410 octets follow.
Return-Path: <bahrudin@bahrudin.net>
X-Original-To: client
Delivered-To: client@bahrudin.net
Received: from unknown (unknown [192.168.200.1])
by server.pgri.net (Postfix) with SMTP id BA1A8663A4
for <client>; Thu, 6 Sep 2018 23:59:38 +0700 (WIT)
Message-Id: <20180906165946.BA1A8663A4@server.pgri.net>
Date: Thu, 6 Sep 2018 23:59:38 +0700 (WIT)
From: bahrudin@bahrudin.net

ini adalah isi email


.
quit
+OK Bye-bye.
Connection closed by foreign host.

“ CYBER NETWORK”
0812 8500 6059 Page 17 of 27
Web Mail Server
// pastikan sudah pindah ke directori /etc/apache2/sites-available
root@server# cd /etc/apache2/sites-available/
root@server:/etc/apache2/sites-available# cp default mail
root@server:/etc/apache2/sites-available# nano mail
<VirtualHost *:80>
ServerAdmin admin@localhost
ServerName mail.bahrudin.net
DocumentRoot /usr/share/squirrelmail
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
// cukup sesuaikan scripnya sesuai dengan di atas
ctrl +o => enter
ctrl x
root@server:/etc/apache2/sites-available# a2ensite mail
root@server:/etc/apache2/sites-available# /etc/init.d/apache2 reload
root@server:/etc/apache2/sites-available# /etc/init.d/apache2 restart

JQ SquirrelMail - Login X e Q X

O © Tidak aman mail.bahrudin.net/src/login.php O O Q « :



SquirrelMail
webmail
for
nuts

SquirrelMail version 1.4.23 [SVN]


By the SquirrelMail Project Team
SquirrelMail Login
Name: client
Password: [ •••
Login

P © 0 2 A
^ ® dx IND 00.45
^

“ CYBER NETWORK ”
0812 8500 6059 Page 18 of 27
Q SquirrelMail 1.4.23 [SVN] X e a X

<- 0 © Tidak aman | mail.bahrudin.net/src/webmail.php O


’ O m B :

Folders Current Folder : INBOX


Last Refresh: Compose Addresses Folders Options Search Help SouirrelMail
Fri. 12:45 am

Message List | Unread Delete Previous I Next Fcnvard Forward as Attachment Reply Reply All

- INBOX
Drafts
From: bahrudm 5bahrudm. net
Date: Thu, September 6, 2018 11:59 pm
Sent Priority : Normal
'

Trash
Options: View Full Header View Printable Version Download this as a file

ini adalah isi email

E P e N s A
^ ® dx IND 00.45
^
Balasan email
Q SquirrelMail 1.4.23 [SVN] X e a X

<- O © Tidak aman | mail.bahrudin.net/src/webmail.php O


’ o Q « :

Folders Current Folder : INBOX


Last Refresh: Compose Addresses Folders Options Search Help SouirrelMail
Fri, 12:45 am

To:[bahrudin@bahrudinriet
INBOX Cc:
Drafts Bcc:
Sent
Subject: Re :
Trash
Priority- Normal * Receipt: On Read On Delivery-
Signature Addresses Save Draft Send

> ini adalah isi email


> ini balasannya yah|

/,
Send

Attach: Pilih File Tidak ada file yang dipilih Add (max. 2 M)

S P si Ps
^ Hf «1 • « 0 9» m r $ EJ o |cT|
^ 9s> dx IND 00.47 ipi

“ CYBER NETWORK ”
0812 8500 6059 Page 19 of 27
Q SquirrelMail 1.4.23 [SVN] X e a X

<- 0 © Tidak aman | mail.bahrudin.net/src/webmail.php O


’ O m B :

Folders Current Folder : INBOX


Last Refresh: Compose Addresses Folders Options Search Help SouirrelMail
Fri. 12:47 am

Message List | Unread Delete Previous I Next Fcnvard Forward as Attachment Reply Reply All

- INBOX
Drafts
(1) Subject : Re:
From: chentSbahrudm.net
Sent
Date: Fri, September 7, 2018 12 :47 am
Trash
To: bahrudmSbahrudm.net
Priority: Normal
Options: View Full Header View Printable Version Download this as a file

> ini adalah isi email


> ini balasannya yah

E P e N 2 <?S C] x INO 00.47 ipi

“ CYBER NETWORK ”
0812 8500 6059 Page 20 of 27
Proxy Server
root@server:/etc/apache2/sites-available# apt-get install squid
root@server:/etc/apache2/sites-available# nano /etc/squid/squid.conf
// cari tulisan acl conn dan tambahkan scrip di bawahnya
acl CONNECT method CONNECT
acl bahrudin src 192.168.200.0/24
acl block dstdomain -i "/etc/squid/block"
http_access deny block
http_access allow bahrudin
// cari tulisan cache_mgr webmaster dan ganti seperti scrip di bawah
cache_mgr bahrudin@bahrudin.net
// cari tulisan http_port 3128 dan tambahkan seperti scrip di bawah
http_port 3128 transparent
ctrl +o => enter
ctrl x
root@server:/etc/apache2/sites-available# nano /etc/squid/block
// isikan dengan daftar domain yang akan di blok dengan port 80
.detik.com
ctrl +o => enter
ctrl x
root@server:/etc/apache2/sites-available# nano /etc/sysctl.conf
// hapus tanda pagar paad baris di bawah ini
#net.ipv4.ip_forward=1
ctrl +o => enter
ctrl x
root@server:/etc/apache2/sites-available# iptables -t nat -A POSTROUTING -o eth0 -j
MASQUERADE
root@server:/etc/apache2/sites-available# iptables -t nat -A PREROUTING -s
192.168.200.0/24-p tcp --dport 80 -j REDIRECT --to-port 3128
root@server:/etc/apache2/sites-available# service squid restart
root@server:/etc/apache2/sites-available# nano /etc/rc.local
// tambhakan scrip iptables tadi di atas tulisan exit 0 agar tersimpan secara permanen
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -s 192.168.20.0/24-p tcp --dport 80 -j REDIRECT --to-port 3128
ctrl +o => enter
ctrl x

“ CYBER NETWORK”
0812 8500 6059 Page 21 of 27
Q bahrudin.net X ’ Q ERROR: The requested Jl X e - o x
c © Tidak aman detik.com O W m :

ERROR
The requested URL could not be retrieved

The following error was encountered while trying to retrieve the URL: http : detik .com

Access Denied .

Access control configuration prevents your request from being allowed at dus time. Please contact your service provider if you feel this is mcorrect.

Your cache administrator is bahrudin 5 bahrudin.net .

Generated Thu, 06 Sep 201S 17:59:44 GMT by bahrudm.net (squid 2.7 .STABLE9)

P © 0 2 /\
^ 9a> d * IND 00.59
^

“ CYBER NETWORK ”
0812 8500 6059 Page 22 of 27
NTP Server
root@server# date --set 2018-09-15
root@server# date --set 10:00:00
root@server# apt-get install ntp ntpdate
root@server# nano /etc/ntp.conf
// berikan tanda pagar pada bagian server ... dan scrip di bawah nya
#server 0.debian.pool.ntp.org iburst
#server 1.debian.pool.ntp.org iburst
#server 2.debian.pool.ntp.org iburst
#server 3.debian.pool.ntp.org iburst
server 127.127.1.0
fudge 127.127.1.0 stratum 1
// cari tulisan #restrict 192.168. kemudian tulis scrip di bawah nya
restrict 192.168.200.0 mask 255.255.255.0 nomodify no trap
ctrl +o => enter
ctrl x
root@server#service ntp restart
root@server#ntpq –p //perhatikan pada bagian jitter selain 0.00 maka ntp berjalan
bahrudin @ server: ~ — X
rootSserver:/home/bahrudin# ntpq -p
remote refid st t when poll reach delay offset jitter

* LOCAL(0) .LOCL. 1 1 60 64 17 0.000 0.000 0.001


|
root@server:/home/bahrudin#

Sr Date and Time X X


^ Date and Time
Date and Time Additional Clocks Internet Time Internet Time Settings X

Configure Internet time settings:


. .
This computer is set to automatically synchronize with ' bahrudin net'
0 Synchronize with an Internet time server
Next synchronization: 15/09/2018 at 19.07
.
Server: bahrudin net Update now

The clock was successfully synchronized with bahrudin.net on 15/09/2018


.
The clock was successfully synchronized with bahrudin net on 15/09/2018
at 10.01 .
.
at 10.01

OK Cancel
Change settings...
^

OK f Cancel Apply OK Cancel Apply

Pilih change seting

“ CYBER NETWORK ”
0812 8500 6059 Page 23 of 27
SAMBA SERVER
root@server#cd /home/server
root@server#mkdir share
root@server#chmod 777 share/ -R
root@server# apt-get install samba
root@server# nano /etc/samba/smb.conf
// hapus tanda # di depan kata security = user dan ganti dengan share pada menu Authentication

####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
# security = share

// tambahkan scrip di paling bawah


[share]
path = /home/server/share/
browsable = yes
writable = yes
guest ok = yes
ctrl +o => enter
ctrl x
root@server#service samba restart
IQ - I bahrudin.net - O X
File Home Share View

. o Search bahrudin.net
- ©

* > Network > bahrudin net > v fi

jJ- Quick access share

OneDrive

a This PC
3 3D Objects
Desktop

H Documents
^ Downloads
Music
|g Pictures
|Videos

__ Acer (C:)
DATA (D:)
CD Drive (T:)

Network

1 item SEE m
p a{ 9 isi w \ B * « s
* i # w w PP /\
-
9 } d»>; IND 23.45
^

“ CYBER NETWORK ”
0812 8500 6059 Page 24 of 27
SSL Server (HTTPS)
root@server#apt-get install openssl
root@server# mkdir /etc/ssl/apache
root@server# cd /etc/ssl/apache/
root@server /etc/ssl/apache# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -out
apache.crt -keyout apache.key

Generating a 2048 bit RSA private key


.+++
.............+++
writing new private key to 'apache.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:ID
State or Province Name (full name) [Some-State]:Banten
Locality Name (eg, city) []:Tangerang
Organization Name (eg, company) [Internet Widgits Pty Ltd]:IT
Organizational Unit Name (eg, section) []:Cyber Network
Common Name (e.g. server FQDN or YOUR name) []:www.bahrudin.net
Email Address []:bahrudin@bahrudin.net

root@server /etc/ssl/apache#chmod 600 *


root@server /etc/ssl/apache#a2enmod ssl
root@server /etc/ssl/apache#nano /etc/apache2/sites-available/default-ssl ssl
//tambahkan seperti scrip di bawah ini
ServerAdmin admin@bahrudin.net
ServerName www.bahrudin.net
DocumentRoot /var/www/

//cari bagian SSLCertificateFile dan ganti dengan scip di bawah ini


SSLCertificateFile /etc/ssl/apache/apache.crt
SSLCertificateKeyFile /etc/ssl/apache/apache.key

“ CYBER NETWORK”
0812 8500 6059 Page 25 of 27
ctrl +o => enter
ctrl x
root@server:/etc/apache2/sites-available#a2ensite defalut-ssl
root@server:/etc/apache2/sites-available#service apache2 reload
root@server:/etc/apache2/sites-available#service apache2 restart
Q bahrudin.net X Q https:// bahrudin.net X e Q X

<- 0 A Tidak aman | Mtps://bahrudin. net o D i

It works! eA Certificate X
General Details Cerbficabon Path
This is the default web page for this server.

The web server software is running but no content has been added, yet . Certificate Information

This CA Root certificate is not trusted. To enable trust,


install this certificate in the Trusted Root Certification
Authorities store.

Issued to: www. bahrudin . net

.
Issued by: www bahrudin net.
Valid from 14/09/ 2018 to 14/ 09/ 2019

• St

OK

SS P S * * \ if * •3 0 9 o ® G EJ PP /V fa E3 44 IND 01.06 Ip

“ CYBER NETWORK ”
0812 8500 6059 Page 26 of 27
FTP Server
root@server# cd /home/server/
root@server:/home/server# mkdir data
root@server:/home/server# chmod 777 data/
root@server:/home/server# userdel ftp
root@server:/home/server# useradd -d /data/ ftp
root@server:/home/server# passwd ftp
Enter new UNIX password: 123
Retype new UNIX password: 123
passwd: password updated successfully
root@server:/home/server# nano /etc/proftpd/proftpd.conf
<Anonymous /home/server/data/>
User ftp
</Anonymous>
root@server:/home/server# service proftpd restart
0 ftp © 192.168.200.1 - FileZilla X
File Edit View Transfer Server Bookmarks Help New version available!

I f l’a O l i O :* v
Host: 192.168.200.1 Username: ftp Password: Port: Quickconnect
Status: Connecting to 192.168 200.1:21 . ...
Status: Connection established, waiting for welcome message , ..
Status: Insecure server, it does not support FTP over TLS .
Status: Logged in
Status: Retrieving directory listing.. .
Status: Directory listing of 7" successful

.
ftp@ 192.168 200.1 xj ftp@192.168.200.1 X

Local site: School\wordpr Remote site: /


() wordpress /
*
$~1
[ UNBK 2018
upload
I
| [
Q Wali Kelas TKJ 3
Wali Kelas TKJ 4
It). winbox
A
Filename Filesize Filetype Last modified Filename Filesize Filetype Last modifiec

H-
wp - admin File folder 15/09/201807.35.09
wp - content File folder 15/09/ 2018 07.32.07 Empty directory listing
wp -includes File folder 15/09/ 2018 07.34.03
.
index php 418 PHP Script 25/09/ 2013 07.18.11
luf license.txt 19.935 TXT File 07/01/ 201802.32.42

16 files and 3 directories. Total size: 147.593 bytes Empty directory .


Server/ Local file Direction Remote file Size Priority Status

Queued files Failed transfers Successful transfers

@ Queue: empty ••

“ CYBER NETWORK ”
0812 8500 6059 Page 27 of 27

Вам также может понравиться