Contoh UKK TKJ dan cara penyelesaiannya - UKK adalah singkatan dari kata Ujian
Kompetensi Kejuruan. Istilah Ujian Kompetensi Kejuruan apabila disingkat yaitu
menjadi UKK. Akronim UKK (Ujian Kompetensi
Kejuruan) merupakan singkatan/akronim tidak resmi dalam Bahasa Indonesia.
lin 1
1. Nano /etc/network/interfaces
Auto eth0
Iface eth0 inet static
Address 10.1.0.17
Netmask 255.255.255.240
Network 10.1.0.16
Broadcast 10.1.0.31
Gateway 10.1.0.17
Nano eth0:1
Iface eth0:1 inet static
Address 192.168.1.7
Netmask 255.255.255.0
2. Nano /etc/resolv.conf
Search lks.edu
Nameserver 10.1.0.17
3. Nano /etc/rc.local
Di atas exit0
Iptables –t nat –A POSTROUTING –o eth0 –j MASQUERADE
4. Nano /etc/sysctl.conf
Hapus tanda pagar di
#net.ipv4.ip_forward = 1
5. Nano /etc/hosts
127.127.0.0 localhost
10.1.0.17 lks.edu
192.168.1.17 haram.com
6. Nano /etc/hostname
Lks.edu
7. Service networking restart
8. Reboot
9. Apt-get install bind9 php5 phpmyadmin
mysql-server apache2
10. Cd /etc/bind
11. Nano named.conf.local
Buat 4 zone
Zone “lks.edu” {
Type master;
File “/etc/bind/db.lks”;
};
Zone “0.1.10.in-addr.arpa” {
Type master;
File “/etc/bind/db.10”;
};
Zone “haram.com” {
Type master;
File “/etc/bind/db.haram”;
};
Zone “1.168.192.in-addr.arpa” {
Type master;
File “/etc/bind/db.192”;
};
12. Cp db.local db.lks
13. Cp db.local db.haram
14. Cp db.127 db.10
15. Cp db.127 db.192
16. Nano db.lks
Lks.edu. root.lks.edu
@
IN NS
lks.edu
@
IN
A 10.1.0.18
www
IN
A 10.1.0.17
mail
IN
A 10.1.0.17
ftp
IN
A 10.1.0.18
it IN
A 10.1.0.18
web IN
A 10.1.0.18
17. Nano db.haram
Haram.com. root.haram.com
@
IN NS
haram.com
@
IN
A 192.168.1.17
www
IN
A 192.168.1.17
18. Nano db.10
Lks.edu. root.lks.edu
@
IN NS
lks.edu.
18
IN
PTR lks.edu.
17
IN
PTR www.lks.edu.
17
IN
PTR mail.lks.edu.
18
IN
PTR ftp.lks.edu.
18 IN
PTR it.lks.edu.
18
IN
PTR web.lks.edu
19. Nano db.192
Haram.com. root.haram.com
@
IN NS
lks.edu.
17
IN
PTR lks.edu.
17
IN
PTR www.lks.edu.
20. Service bind9 restart
Mail server
1. masukkan dvd 2 debian 6
2. apt-cdrom add
3. apt-get update
4. apt-get install postfix
masukkan dvd
1---ok--internet site---lks.edu
5. apt-get install
courier-imap courier-pop
y enter—masukkan dvd2—no
6. apt-get install
squirrelmail
y enter—masukkan dvd
1—masukkan dvd 2
7. maildirmake
/etc/skel/Maildir
8. nano /etc/postfix/main.cf
di paling bawah
home_mailbox = Maildir/
9. dpkg-reconfigure postfix
ok—internet
site—lks.edu—enter—enter—no—di paling akhir tambahkan 0.0.0.0/0—no—enter—enter—ipv4
10. nano
/etc/apache2/apache2.conf
di paling bawah tambahkan
Include
/etc/squirrelmail/apache.conf
11. nano
/etc/squirrelmail/apache.conf
hapus tanda pagar di bawah
tulisan #users wil dari <VirtualHost 1.2.3.4> sampai </VirtualHost>
di ganti dengan
<VirtualHost *:80>
DocumentRoot /usr/share/squirrelmail
ServerName mail.lks.edu
</VirtualHost>
12. adduser user
13. adduser admin
14. service postfix restart
15. service apache2 restart
16. service courier-imap
restart
17. service courier-pop restart
LIN 2
1. Nano /etc/network/interfaces
Auto eth0
Iface eth0 inet static
Address 10.1.0.18
Netmask 255.255.255.240
Network 10.1.0.16
Broadcast 10.1.0.131
Gateway 10.1.0.17
2. Nano /etc/resolv.conf
Search lks.edu
Nameserver 10.1.0.17
3. Nano /etc/rc.local
Di atas exit0
Iptables –t nat –A POSTROUTING –o eth0 –j MASQUERADE
4. Nano /etc/sysctl.conf
Hapus tanda pagar di
Net.ipv4.ip_forward=1
5. Nano /etc/hosts
127.127.0.0 localhost
10.1.0.17 lks.edu
192.168.1.17 haram.com
6. Nano /etc/hostname
Lks.edu
7. Service networking restart
8. Reboot
9. Apt-get install apache2
10. cd /var/www
11. mkdir it web
12. cp index.html /var/www/it/
13. cp index.html /var/www/web/
14. nano /var/www/it/index.html
edit text nya
15. nano
/var/www/web/index.html
edit text nya
16. cd
/etc/apache2/sites-available/
17. cp default it
18. nano it
di bawah ServerAdmin,
ketikkan
ServerName lks.edu
ServerAlias it.lks.edu
DocumentRoot /var/www/it
Simpan
19. a2ensite it
20. a2ensite it
21. cp default web
di bawah ServerAdmin, ketikkan
ServerName lks.edu
ServerAlias web.lks.edu
DocumentRoot /var/www/web
Simpan
22. a2ensite web
23. a2ensite web
24. service apache2 restart
CARA NGELINK
1. nano /var/ww/index.html
kata” buat ngelink
<li>
25. A2enmod ssl
26. Service apache2 restart
27. Mkdir /etc/apache2/ssl
28. Cd /etc/apache2/ssl
Openssl req –x509 –nodes –days 365 –newkey rsa:2048 –keyout
/etc/apache2/ssl/10.1.0.18.key –out /etc/apache2/ssl/10.1.0.18.crt
ID
Kepri
Tanjungpinang
Smkn4
Tkj
Lks.edu
29. Nano /etc/apache2/sites-available/default
Di paling bawah
<VirtualHost *:443>
ServerName lks.edu
DocumentRoot /var/www
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/lks.edu.crt
SSLCertificateKeyFile /etc/apache2/ssl/lks.edu.key
</VirtualHost>
30. Service apache2 restart
31. Apt-get install proftpd
32. Nano
/etc/proftpd/proftpd.conf
ServerName “lks.edu”
Hapus tanda pagar
User
ftp
Group
nogroup
UserAlias anonymous ftp
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
MaxClient 10
DisplayLogin
welcome.msg
DisplayChdir .message
33. Service proftpd restart
34. Nano
/etc/proftpd/proftpd.cong
Di paling bawah tambahkan
Include /etc/proftpd/tls.conf
35. Nano /etc/proftpd/tls.conf
Hilangkan tanda pagar
TLSEngine
on
TLSLog
/var/log/proftpd/tls.log
TLSProtocol
SSLv23
TLSRSACertificateFile
/etc/apache2/ssl/10.1.0.18crt
TLSRSACertificateKeyFile
/etc/apache2/ssl/10.1.0.18.key
TLSOptions NoCertRequest AllowClientRenegotiations NoSessionReuseRequired
TLSVerifyClient
off
</IfModule>
36. Service proftpd restart
37. Cd /home/tutor
38. Mkdir centos fedora
39. Touch /home/tutor/centos/file1.txt
40. Touch
/home/tutor/fedora/file1.txt
41. Chown tutor.tutor
/home/tutor/fedora/
42. Cd /home/pupil
43. Mkdir redhat
44. Touch
/home/pupil/redhat/file2.txt
45. Apt-get install samba
46. Cd /home/pupil
47. Mkdir suse
48. Touch
/home/pupil/suse/file3.txt
49. Cd /home/tutor
50. Mkdir mint
51. Touch
/home/tutor/mint/file4.txt
52. Nano /etc/samba/smb.conf
D paling bawah tuliskan
[suse]
Path = /home/pupil/suse
Available = yes
Browsable = yes
Writable = yes
Public = yes
[mint]
Path = /home/tutor/mint
Available = yes
Browsable = yes
Writable = yes
Public = yes
53. Chmod 777 /home/tutor/mint
54. Service samba restart
55. Apt-get install
openssh-server
Lin 3
1. Nano /etc/network/interfaces
Auto eth0
Iface eth0 inet static
Address 10.1.0.17
Netmask 255.255.255.240
Network 10.1.0.16
Broadcast 10.1.0.31
Gateway 10.1.0.17
Auto eth1
Iface eth1 inet static
Address 192.168.0.9
Netmask 255.255.255.248
Network 192.168.0.8
Broadcast 192.168.0.31
2. Nano /etc/resolv.conf
Search lks.edu
Nameserver 10.1.0.17
3. Nano /etc/rc.local
Di atas exit0
Iptables –t nat –A POSTROUTING –o eth0 –j MASQUERADE
Iptables –A INPUT –p ICMP -j DROP
Iptables –A OUTPUT –p ICMP -j DROP
4. Nano /etc/sysctl.conf
Hapus tanda pagar di
Net.ipv4.ip_forward=1
5. Nano /etc/hosts
127.127.0.0 localhost
10.1.0.17 lks.edu
192.168.1.17 haram.com
6. Nano /etc/hostname
Lks.edu
7. Service networking restart
8. Reboot
9. Apt-get install isc-dhcp-server
10. Apt-get install
isc-dhcp-server
11. Nano
/etc/default/isc-dhcp-server
INTERFACES=“eth1”
Ctrl x, y enter
12. Nano /etc/dhcp/dhcpd.conf
subnet 192.168.0.8 netmask 255.255.255.248
range 10.10.10.8 10.10.10.14;
option domain-name-server 10.1.0.17, 192.168.0.9;
option domain-name “lks.edu”;
option routers 192.168.0.9;
option broadcast-address192.168.0.15;
default-lease-time 600;
max-lease-time 7200;
13. Apt-get install ntp ntpdate
14. Nano /etc/ntp.conf
Hilangkan tanda pagar di
Statsdir /var/log/htpstats/
Tambahkan tanda pagar (#)
Server 0 – server3
Tambahkan d bawahnya
Server 127.127.1.0
Fudge 127.127.1.0 stratum 1
Tambahkan di bawah restrict 192.168.123.0 mask 255.255.255.0 notrust
restrict 192.168.0.8 mask 255.255.255.248 nomodify notrap
15. Service ntp restart
16. Ntpq –p
17. Apt-get install pptpd
18. Nano /etc/pptp.conf
Hilangkan tanda pagar d paling bawah
Localip, Remote ip yg pertama
Localip 192.168.0.9
Remoteip 192.168.0.12-13, 192.168.0.14
19. Nano /etc/ppp/pptpd-options
Hapus tanda pagar di ms-dns 10.0.0.1, d ganti dengan
Ms-dns 192.168.0.9
20. Nano /etc/ppp/chap-secrets
Tambahkan
Adi *
123 *
21. Service pptpd restart
22. Apt-get install squid
23. Nano /etc/squid/squid.conf
Ctrl w
http_port 3128
http_port 3128 transparent
visible_hostname qadir.lks.edu
ctrl w
acl connect
d bawah nya d tambahkan
acl situs dstdomain “/etc/squid/situs”
http_access deny situs
acl lan src 192.168.0.8/29
http_access allow lan
24. Nano /etc/squid/situs
Haram.com
25. Squid –z
26. Nano /etc/rc.local
D atas exit0 , tambahkan
Iptables –t nat –A PREROUTING –s 192.168.0.8/29 –p tcp –dport 80 –j
REDIRECT –to-ports 3128
27. /etc/rc.local
28. Service networking restart
29. Service squid restart
Keterangan
1. Bind9 (dns)
2. Apache2 (web server)
3. Squirrelmai, postfix,
courier-imap, courier-pop (mail server)
4. Ssl (https)
5. Proftpd (ftp server)
6. Tls.conf (ftps server)
7. Samba (samba)
8. Openssh-server (ssh)
9. Isc-dhcp-server (dhcp
server)
10. Ntp ntpdate (ntp server)
11. Pptpd (vpn server)
Semoga
Bermanfaat ^_^ .
0 komentar
Posting Komentar