Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tugas Remidi XII TKJ 1
#1
KONFIGURASI DNS & PROXY

1. Buat konfigurasi di /etc/network/interfaces Seperti ini:
[spoil]
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
    address 192.168.10.10
    netmask 255.255.255.240
    network 192.168.10.0
    broadcast 192.168.10.15

auto eth1:1
iface eth1:1 inet static
    address 192.168.11.10
    netmask 255.255.255.240
    network 192.168.11.0
    broadcast 192.168.11.15

auto eth1:2
iface eth1:2 inet static
    address 192.168.12.10
    netmask 255.255.255.240
    network 192.168.12.0
    broadcast 192.168.12.15
[/spoil]
2. Restart layanan interface jaringan
3. Konfigurasi zona ip dan zona domain pada /etc/bind/named.conf.default-zones

[spoil][Image: 3.png][/spoil]

4. Konfigurasi file forward

[spoil][Image: 4.png][/spoil]

5. Konfigurasi file reserve

[spoil][Image: 5.png][/spoil]

6. Restart layanan bind9

7. Konfigurasi file sysctl.conf

Hilangkan centang pada net.ipv4.ip_forward=1

8. Konfigurasi NAT pada file rc.local

Tambahkan:

Code:
iptables –t nat –A POSTROUTING –s 192.168.10.0/28 –j MASQUERADE
iptables –t nat –A PREROUTING –s 192.168.10.0/28 –p tcp –dport 80 –j REDIRECT –to-port 3128

9. Membuat List web yang di blok
Pada direktor squid, ketik nano blok.txt untuk membuat file blocking, kemudian isikan situs yg akan di blok:

[spoil]https://dl.dropboxusercontent.com/s/70lnqplouyscej3/9.png[/spoil]

10. Konfigurasi proxy pada file squid.conf
Ubah/tambahkan konfigurasi berikut:

[spoil]
Code:
http_port 3128 transparent
cache_mgr smkn1kutsel.sch.id
visible_hostname dwi@sekolah.sch.id

Code:
#Taruh di bawah konfigurasi acl connect
acl blok url_regex “/etc/squid/blok.txt”
http_access deny blok
http_access allow all

cari konfigurasi http_access deny all hilangkan tanda # pada kedua konfigurasi y ditemukan[/spoil]

11. Hasil Testing pada client
a. Web yg tidak di blok

[spoil][Image: 10.1.png][/spoil]

b. Web yg di blok

[spoil][Image: 10.2.png]

[Image: 10.3.png][/spoil]

[mod=Dwi_Dharmawan]Nama: Dwi Dharmawan
No: 10
Kelas: XII TKJ 1[/mod]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)

About Us
    Write About your Forum and stuff where this theme is Placed Just I am trying to extend the paragraphs to make some nice looking lines. But you can write about your forum lol. Like what your forum have special and all. or just leave what i have written if you don't like to write much..