Академический Документы
Профессиональный Документы
Культура Документы
^
ethO : 192.168.0.1/ 24
** |
r
ethl : 192.168. 200.1/ 24
-a
Client mendapatkan IP DHCP
“ 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
E) SSH
Serial
Close window on exit :
O Always O Never •
( ) Only on clean exit
“ 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
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
@ 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
< >
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
C :\ Users\ICT >
“ 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.
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.
*** <
•
:> •
<Cancel>
s/
“ 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
<Ok> <iancei>
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.
[*] 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
Selected 1 file. Total size: 2.853 bytes 1 file. Total size: 177 bytes
phpM
Selamat Datang di phpMyAdmin
Bahasa - Language
Masuk u
Nama Pengguna:
Kata Sandi:
Kirim
“ 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
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
Aktifkan Statistik
A\ Perhatian : Pengaktifan statistik basis data dapat mengakibatkan lalu lintas besar antara Webserver dan server MySQL
“ 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
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.
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
Install WordPress
BAHRUDIN
Just another WordPress site
“ 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>
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).
ahrudin.net
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 >
“ 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
“ 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.
“ 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
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
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
E P e N s A
^ ® dx IND 00.45
^
Balasan email
Q SquirrelMail 1.4.23 [SVN] X e a X
To:[bahrudin@bahrudinriet
INBOX Cc:
Drafts Bcc:
Sent
Subject: Re :
Trash
Priority- Normal * Receipt: On Read On Delivery-
Signature Addresses Save Draft Send
/,
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
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
“ 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.
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
OK Cancel
Change settings...
^
“ 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
# "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
. o Search bahrudin.net
- ©
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
“ 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
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
.
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
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
@ Queue: empty ••
“ CYBER NETWORK ”
0812 8500 6059 Page 27 of 27