Senin, 04 Februari 2013

Praktek Uji Kom TKJ 2012 Via MikroTik 2.9.27
30 Jan
Membangun Gateway Internet (Membangun PC Router dan Proxy Server)
Opsi konfigurasi :
Konfigurasi Server
  1. IP Internet                    = Sesuai dengan Network yang diberikan ISP
  2. IP LAN                        = 192.168.50.1/24
  3. Gateway                      = Sesuai Dengan IP yang diberikan oleh ISP
Konfigurasi Client
  1. IP LAN                         = 192.168.50.xxx/24
  2. Gateway                      = 192.168.50.1
Keterangan : xxx merupakan address antara 2 sampai 254
Konfigurasi Proxy Server
  1. Sistem Operasi            = OS (Linux)
  2. Port proxy                   = 3128
  3. Cache Manager           = nama_peserta@sekolah.sch.id
  4. Visible host                 = http://www.sekolah.sch.id
  5. Transparant proxy
  6. Blocking Site              = www.youtube.com , www.facebook.com
Konfigurasi Router
  1. NAT                           = yes
http://gerakanopensource.files.wordpress.com/2012/01/0.png?w=645
Konfigurasi MikroTik 2.9.27
1. Mengecek Interface
[admin@MikroTik] > interface print
http://gerakanopensource.files.wordpress.com/2012/01/10.png?w=645&h=357
2. Mengubaah nama interface
[admin@MikroTik] > interface set ether1 name=modem
[admin@MikroTik] > interface set ether2 name=lan
[admin@MikroTik] > interface print
http://gerakanopensource.files.wordpress.com/2012/01/11.png?w=645&h=360
3. Settring IP Address
[admin@MikroTik] > ip address add address=192.168.1.2/24 interface=modem
[admin@MikroTik] > ip address add address=192.168.50.1/24 interface=lan
[admin@MikroTik] > ip address print
http://gerakanopensource.files.wordpress.com/2012/01/12.png?w=645&h=359
4. Setting IP Route
[admin@MikroTik] > ip route add gateway=192.168.1.1
[admin@MikroTik] > ip route print
http://gerakanopensource.files.wordpress.com/2012/01/13.png?w=645&h=357
5. Setting IP DNS
[admin@MikroTik] > ip dns set primary-dns=202.134.1.10 secondary-dns=202.134.0.155 allow-remote-requests=yes
[admin@MikroTik] > ip dns print
http://gerakanopensource.files.wordpress.com/2012/01/14.png?w=645&h=356
6. Setting IP Pool
[admin@MikroTik] > ip pool add name=lan ranges=192.168.50.11-192.168.50.20
[admin@MikroTik] > ip pool print
http://gerakanopensource.files.wordpress.com/2012/01/15.png?w=645&h=358
7. Setting IP DHCP-SERVER Network
[admin@MikroTik] > ip dhcp-server network add address=192.168.50.0/24 gateway=192.168.50.1 dns-server=192.168.50.1
[admin@MikroTik] > ip dhcp-server network print
http://gerakanopensource.files.wordpress.com/2012/01/16.png?w=645&h=359
8. Setting IP DHCP-SERVER
[admin@MikroTik] > ip dhcp-server add name=lan interface=lan disable=no address-pool=lan
[admin@MikroTik] > ip dhcp-server print
http://gerakanopensource.files.wordpress.com/2012/01/17.png?w=645&h=358
http://gerakanopensource.files.wordpress.com/2012/01/25.png?w=645
Hasil dari Dhcp-Server pada Client
9. Setting IP Firewall NAT
[admin@MikroTik] > ip firewall nat add chain=srcnat action=masquerade out-interface=modem src-address=192.168.50.xxx
[admin@MikroTik] > ip firewall nat print
http://gerakanopensource.files.wordpress.com/2012/01/19.png?w=645&h=359
http://gerakanopensource.files.wordpress.com/2012/01/26.png?w=645&h=325
Client sudah terkoneksi dengan modem
10. Setting Web-Proxy
[admin@MikroTik] > ip web-proxy set enable=yes transparent-proxy=yes hostname=icalredhat.co.cc cache-administrator=icalredhat@icalredhat.co.cc max-cache-size=unlimited
[admin@MikroTik] > ip web-proxy print
http://gerakanopensource.files.wordpress.com/2012/01/21.png?w=645&h=360
11. Setting Transparent Proxy
[admin@MikroTik] > ip firewall nat add chain=dstnat action=redirect protocol=tcp dst-port=80 to-port=3128
[admin@MikroTik] > ip firewall nat print
http://gerakanopensource.files.wordpress.com/2012/01/22.png?w=645&h=360
12. Blokir Website
[admin@MikroTik] > ip web-proxy access add url=www.facebook.com action=deny
[admin@MikroTik] > ip web-proxy access add url=www.youtube.com action=deny
[admin@MikroTik] > ip web-proxy access print
http://gerakanopensource.files.wordpress.com/2012/01/24.png?w=645&h=371
13. Monitoring Web-Proxy
[admin@MikroTik] > ip web-proxy monitor
http://gerakanopensource.files.wordpress.com/2012/01/23.png?w=645&h=396
http://gerakanopensource.files.wordpress.com/2012/01/5.png?w=645&h=331
Website facebook.com terblokir

0 komentar:

Posting Komentar