Sei sulla pagina 1di 27

Topologi yang digunakan

ISP : 192.168.0.254 / 24 A ethO : 192.168.0.1/ 24 ^* * | ethl :
ISP : 192.168.0.254 / 24
A
ethO : 192.168.0.1/ 24 ^* *
|
ethl : 192.168.200.1 / 24
- a
r
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 ”
“ CYBER NETWORK ”

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 X 192.168.200.1 - PuTTY - X Category: El Session Basic options for
^ PuTTY Configuration
X
192.168.200.1 - PuTTY
-
X
Category:
El Session
Basic options for your PuTTY session
login as: root
root@192.168.200.1's password:
Logging
Linux server
3.2.0 - 4 - 486 #1 Debian 3.2.41 - 2 i686
Specify the destination you want to connect to
E ) Terminal
Host Name (or IP address)
Port
Keyboard
192.168.200.1|
22
• Bell
•••• Features
( E ) Window
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
Connection type:
individual files in /usr/share/doc/*/copyright.
O
^ aw
O Telnet QRIogin i( ) SSH
O Serial
•• • • Appearance
Load, save or delete a stored session
- Behaviour
•••• Translation
• ••• Selection
— Colours
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Saved Sessions
Last login: Thu Sep 6 23:58:12 2018 from
root@serv|er
laptop - sle6ujto.local
Default Settings
Load
E ) Connection
•••• 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 ”
“ CYBER NETWORK ”

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!
0 ftp©192.168.200.1 - FileZilla
X
File
Edit
View
Transfer
Server
Bookmarks
Help
New version available!
Ifl ’ aOliO : * v
Host:
192.168.200.1
Username:
ftp
Password:
Port:
Quickconnect
Status:
Connecting to 192.168.200.1:21
Status:
,
Status:
Status:
Connection established, waiting for welcome message
Insecure server, it does not support FTP over TLS.
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
Filename
Filesize
Filetype
Last modified
A
Filename
Filesize
Filetype
Last modifiec
H -
wp - admin
File folder
15/ 09/ 201807.35.09
Empty directory listing
wp - content
File folder
15/ 09/ 2018 07.32.07
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 ”
“ CYBER NETWORK ”

DHCP Server

root@server:/home/server#apt-get install dhcp3-server root@server:/home/server#nano /etc/default/isc-dhcp-server

INTERFACES="eth1"

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;

}

// tambahkan tulisan eth1 (jaringan ke client) setelah tanda kutip “”

“ CYBER NETWORK”
“ CYBER NETWORK”

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
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
IPv4 Address
IPv4 Subnet Mask
Lease Obtained
Yes
192.168.200.26
255.255.255.0
Lease Expires
Kamis, 06
Jumat , 07
September 2018 22.52.15
September 2018 DD. 45.26
IPv4 Default Gateway
IPv4 DHCP Server
IPv4 DNS Servers
152.168.200.1
152.168.200.1
152.168.200.1
S.S.S.S
S.S.4.4
IPv4 WINS Server
NetBIOS overTcpip En
Link -local IPv 6 Address
Yes
fe SO:: 521 7624: 8845:cfc5%12
V
<
>
Close
“ CYBER NETWORK ”
“ CYBER NETWORK ”

DNS Server

root@server:/home/server#apt-get install bind9 root@server:/home/server#cd /etc/bind

root@server:/etc/bind #

root@server:/etc/bind #nano named.conf.local

# // tambahkan scrip di paling bawah zone "bahrudin.net" { type master; file "/etc/bind/f";

};

// pastikan sudah pindah ke directori /etc/bind

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”
“ CYBER NETWORK”

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:\WINDGWSVsystem32\ c m d.exe Microsoft Windows [Version 10.0.17134.228] (c) 201S Microsoft Corporation. Ail rights
C:\WINDGWSVsystem32\ 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 sunan mrman K
“ CYBER NETWORK ”
“ CYBER NETWORK ”

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

> e bahmdin.net Q X X <- 0 O m B © Tidak aman bahrudin.net
>
e
bahmdin.net
Q
X
X
<-
0
O m B
© Tidak aman
bahrudin.net
:
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
2
A
^ ®
dx
IND
00.44
ipi
“ CYBER NETWORK”
“ CYBER NETWORK”

CMS Wordpress (Mysql-server & Php Myadmin)

root@server#apt-get install mysql-server phpmyadmin php5

— bahrudin © server: ~ X Package configuration \ Configuring phpmyadmin \ The phpmyadmin package
bahrudin © server: ~
X
Package configuration
\ 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
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 ”
“ CYBER NETWORK ”
bahrudin @ serven ~ X Package configuration A Configuring phpmvadmin Please provide r password for
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>
V

Berikan passwornya untuk mysql-server

m bahrudin©server: ~ Package configuration Configuring phpmyadmin Password confirmation: <0k>
m
bahrudin©server:
~
Package
configuration
Configuring phpmyadmin
Password confirmation:
<0k>
<cancel>
D

Verifikasi password phpmyadmin

bahrudin©server: ~ Package configuration X A Configuring phpmyadmin I Please choose the web server that
bahrudin©server: ~
Package configuration
X
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>
V
_ i
“ CYBER NETWORK ”
“ CYBER NETWORK ”

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
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:
Status:
Deleting " /var/www/wordpress/ wp-includes/Texb ' Diff/Renderer/inline.php "
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
Upload
$ UNBK. t
+ Add to queue
Filename
Filename
Filesize
Filetype
Last modified
Open
[ » y license.txt
D readme.html
2.32.42
3.13.39
B index.html
177
FirefoxHT
06/09/ 2018 22
Create directory
wp - activate.php
5.10.26
Create directory and enter it
wp-blog - header
B.20.28
wp-comments- Delete
5.11.25
wp-config-sam
5.58.26
Rename
wp-cron.php
1.37.45
v
wp -links- opml.
2.422
PHP Script
21/11/ 2016 09.46.30
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

e x phpMyAdmin Q X ^ < - 0 o © Tidak aman bahrudin.net /
e
x
phpMyAdmin
Q
X
^
<
-
0
o
© Tidak aman
bahrudin.net / phpmyadmin /
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 ”
“ CYBER NETWORK ”

// buat database dengan nama wordpress pada bagian menu Basis data

e bahrudin.net / localhos: Q X X ^ < - 0 © Tidak aman bahrudin.net
e
bahrudin.net / localhos:
Q
X
X
^
<
-
0
© Tidak aman
bahrudin.net /phpmyadmin/index.php?token=d5c4a75b47a5278c350a98653a11d4c8
O
i
O ’
D
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=1Periksa 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
pP
/ \
9M d» )
IND
09.59
22
^

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 ”
“ CYBER NETWORK ”

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

e bahrudin.net / localhos: Q X ' ' Q WordPress > Installation X X ^
e
bahrudin.net / localhos:
Q
X
' ' Q WordPress > Installation
X
X
^
0
©
o
Tidak aman
bahrudin.net /wp-admin/install.php
i
O ’ 5 ]
a
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
/ \
IND
10.09
22
9m d» )
^

// tungggu hingga proses installasi wordpress selesai

e / Dlu bahrudin.net / localhos: X j Q bahrudin - Just another Q X
e
/ Dlu bahrudin.net / localhos:
X j Q bahrudin - Just another
Q
X
X
3D
O
;
0 © Tidak aman | bahrudin.net
D
\v
bahrudin
f
Customize
^ 0
+ New
Howdy, bahrudin •
B A H R U D IN
Just another WordPress site
SS
P
Si
/5 *
FT
)
m
^
IND
10.11
“ CYBER NETWORK ”
“ CYBER NETWORK ”

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
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 1 Postfix Configuration | General type of mail configuration: No configuration Internet Site
Package configuration
1 Postfix Configuration |
General type of mail configuration:
No configuration
Internet Site
Internet with smarthost
Satellite system
Local only
<Ok>
<Caneel>
“ CYBER NETWORK ”
“ CYBER NETWORK ”

//pilih Internet site kemudiaan enter

Fackage configuration The " mail name " is 1 Postfix Configuration| the domain nair.e used
Fackage configuration
The " mail name " is
1 Postfix Configuration|
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
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 ”
“ CYBER NETWORK ”

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”
“ CYBER NETWORK”

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 +OK Password required. pass 123 +OK logged in. Stat +OK 1 410 retr 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

//user kedua bagian rcpt to pada telnet 25

// password user kegdua

// melihat ststus inbox email

// membaca email dengan urutan no 1

ini adalah isi email

.

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

“ CYBER NETWORK”
“ CYBER NETWORK”

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

e J Q SquirrelMail - Login Q X X O © Tidak aman mail.bahrudin.net /
e
J Q SquirrelMail - Login
Q
X
X
O
©
Tidak aman
mail.bahrudin.net / src / login.php
O
Q
O ’
«
:
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 ”
“ CYBER NETWORK ”
e a Q SquirrelMail 1.4.23 [SVN] X X < - 0 O m B ©
e
a
Q SquirrelMail 1.4.23 [SVN]
X
X
< -
0
O m B
© Tidak aman | mail.bahrudin.net / src / webmail.php
O ’
:
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
From:
bahrudm5 bahrudm. net
Drafts
Date:
Sent
Priority' :
Thu, September 6, 2018 11:59 pm
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

e a Q SquirrelMail 1.4.23 [SVN] X X < - o O © Tidak aman
e a
Q SquirrelMail 1.4.23 [SVN]
X
X
< -
o
O
© Tidak aman | mail.bahrudin.net / src / webmail.php
Q
O ’
«
:
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)
«1 •
S P
si
«
Ps
^
Hf
0
m
r
$
EJ
o
|cT|
^
9s > dx
IND
00.47
ipi
“ CYBER NETWORK”
“ CYBER NETWORK”
e a Q SquirrelMail 1.4.23 [SVN] X X < - 0 O m B ©
e
a
Q SquirrelMail 1.4.23 [SVN]
X
X
< -
0
O m B
© Tidak aman | mail.bahrudin.net / src / webmail.php
O ’
:
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 (1)
Drafts
Subject:
Re:
From: chentSbahrudm.net
Sent
Date:
Trash
To:
Priority:
Fri, September 7, 2018 12:47 am
bahrudmSbahrudm.net
Normal
Options:
View Full Header
View Printable Version
Download this as a file
> ini adalah isi email
> ini balasannya yah
E
P e
N
< ?S
C]x
INO
ipi
2
00.47
“ CYBER NETWORK”
“ CYBER NETWORK”

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”
“ CYBER NETWORK”
e - o x Q bahrudin.net X Q ERROR: The requested Jl X ’ c
e
-
o
x
Q bahrudin.net
X
Q ERROR: The requested Jl
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 bahrudin5 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”
“ CYBER NETWORK”

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

#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

dan scrip di bawah nya

//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
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 Date and Time Additional Clocks Internet Time This computer is
Sr Date and Time
X
Date and Time
Additional Clocks
Internet Time
This computer is set to automatically synchronize with 'bahrudin.net' .
Next synchronization: 15/09/2018 at 19.07
The clock was successfully synchronized with bahrudin.net on 15/09/2018
at 10.01.
^ Change settings
f
OK
Cancel
Apply

Pilih change seting

“ CYBER NETWORK ”
“ CYBER NETWORK ”
^ Date and Time X Internet Time Settings X Configure Internet time settings: 0 Synchronize
^ Date and Time
X
Internet Time Settings
X
Configure Internet time settings:
0 Synchronize with an Internet time server
Server:
bahrudin
.net
Update now
The clock was successfully synchronized with bahrudin.net on 15/09/2018
at 10.01.
OK
Cancel
OK
Cancel
Apply

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 O X - I bahrudin.net - - © File Home Share View * >
IQ
O
X
- I bahrudin.net
-
- ©
File
Home
Share
View
*
>
Network
>
bahrudin.net
>
v o
Search bahrudin.net
fi
share
jJ- Quick access
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
\
«
s
9 - } d » > ;
B
*
#
w
w
PP
/\
IND
23.45
* i
^
“ CYBER NETWORK ”
“ CYBER NETWORK ”

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”
“ CYBER NETWORK”

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

e Q bahrudin.net X Q https://bahrudin.net X Q X <- 0 o A Tidak aman
e
Q
bahrudin.net
X
Q
https://bahrudin.net
X
Q
X
<- 0
o
A Tidak
aman | Mtps: // bahrudin.net
i
D
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
o
*
0
®
9
G
EJ
PP
/ V
fa
E3 44
IND
01.06
Ip
“ CYBER NETWORK”
“ CYBER NETWORK”

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!
0 ftp©192.168.200.1 - FileZilla
X
File
Edit
View
Transfer
Server
Bookmarks
Help
New version available!
Ifl ’ aOliO : * v
Host:
192.168.200.1
Username:
ftp
Password:
Port:
Quickconnect
Status:
Connecting to 192.168.200.1:21
Status:
Status:
Status:
Connection established, waiting for welcome message
Insecure server, it does not support FTP over TLS.
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
Filename
Filesize
Filetype
Last modified
A
Filename
Filesize
Filetype
Last modifiec
H -
wp-admin
File folder
15/ 09/ 201807.35.09
Empty directory listing
wp-content
File folder
15/ 09/ 2018 07.32.07
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 ”
“ CYBER NETWORK ”