NAMA :
HAVID RINALDY
KELAS
12.TKJ. D
KEGIATAN
: UJI KOMPETENSI
TAHUN
AJARAN : 2015
Router
Langkah-Langkahnya :
1. #nano /etc/network/interface
auto eth1
iface eth1
inet static
address 190.90.9.1
netmask 255.255.255.224
network 190.90.9.0
broadcast 190.90.9.31
2. #nano /etc/sysctl.conf
Hapus tanda
pagar yang ipv4_ip.forward
3. #nano /etc/rc.local
iptables -t
nat -A POSTROUTING -o eth0 -j MASQUERADE
save
4. Di ubuntu nya ketik perintah :
iptables -t
nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables-save
/etc/init.d/networking
restart
ping google.com
PROXY
Langkah-Langkahnya :
1. apt-get update
2. apt-get install squid3
3. chmod 777 /proxy
4. chown -R proxy.proxy /proxy
5. #nano /etc/squid3/squid.conf
6. Mencari : http_port 3128(transparent)
7. Mencari :
A. cache_effective user proxy
B. cache_mgr webmaster
C. cache_mem
D. cache_dir ufs -> cache_dir ufs /proxy
3700
E. Acl localnet -> 190.90.9.0/27
F. http_access allow localnet
8. #nano /etc/rc.local
iptables -t
nat -A PREROUTING -p tcp -s 190.90.9.0/27 --dport 80 -j REDIRECT --to-port 3128
9. Di ubuntu nya ketik perintah :
iptables -t nat -A PREROUTING -p tcp -s
190.90.9.0.27 --dport 80 -j REDIRECT --to-port 3128
iptables-save
10. Squid3 -z
11.
Squid3 -z reconfigure / squid3 -k
reconfigure
12. apt-get install ccze
-> tail -f /var/log/squid3/access.log | ccze
Blok Situs
1. #nano /etc/squid3/squid.conf
Mencari :
Connect method connect
tambahkan script ini :
acl terlarang url_regex -i "/etc/squid3/terlarang.txt"
Mencari :
http_acces deny manager
tambahkan script ini :
http_access deny terlarang
2. #nano /etc/squid3/terlarang.txt
isi alamat situs apa
yang akan ingin di blok :
www.facebook.com
www.detik.com
3. squid3 -z reconfigure
4. squid3 -k reconfigure
CATATAN : JANGAN LUPA MENGGUNAKAN PORT 8080 APABILA TIDAK DAPAT DI TEST
MELALUI GOOGLE CHROME MAUPUN INTERNET EXPLORER .
JANGAN LUPA HAPUS HISTORY NYA KETIKA INGIN MEMBLOK SITUS FACEBOOK.COM MELALUI GOOGLE CHROME
Mikrotik
1. system reset configuration -yes
2. ok
3. new terminal :
ip address add address=190.90.9.2/27 interfaces=ether1
ip address add address=10.10.10.1/28
interfaces=ether2
ip route add gateway= 190.90.9.1
ip dns set servers=180.211.88.5
allow-remote-request=yes
ip firewall nat add chain=srcnat action masquerade
ping google.com
4. Membuat ip wlan
ip address add address=50.50.50.100/27
interfaces=wlan1
5. Masuk ke wireless
ceklis wlan1 nya, sesudah ceklis masuk ke advanced
Frequency menjadi B-G-N
Status menjadi ap-bridge
SSID menjadi Havid
6. masuk ke tcp/ip
7. atur ip address di komputer
ip address = 10.10.10.2 ip gateway = 10.10.10.1
netmask 255.255.255.240 ip dns servers = 180.211.88.5
8. ping google.com
Hotspot
1. masuk ip -> hostpot
2. hotspot setup
3. next next saja
4. login user -> cokkiess dihilangkan
5. group -> proffessor, shared users 3. hspool6,
1m/1m
6. user -> tentukan id dan password
misalkan :
id : havid
pw : asha122
7. check lewat hape /
komputer lain
8. Login akun
id : havid
pw : asha122
9. ketik alamat yang
sudah diblok ketika di proxy
TERIMAKASIH
Salam dari : Prof.Havid
Rinaldy
|NeverEnd.Corp|
Tidak ada komentar:
Posting Komentar