Hasil latihan pembahasan Ujian Kompetensi Kejuruan Teknik Komputer & Jaringan tahun pelajaran 2014/2015 sebagai berikut :
[admin@MikroTik] > ip address add
address=195.195.195.2/26 interface=ether1
[admin@MikroTik]
> ip address add address=192.168.10.1/26
interface=ether2
[admin@MikroTik] > ip address add
address=192.168.7.1/26 interface=ether3
[admin@MikroTik] > ip route add
gateway=195.195.195.1
[admin@MikroTik] > ip dns set server=195.195.195.1
[admin@MikroTik] > ip dns static add
name=www.sekolah.sch.id address=195.195.195.1
[admin@MikroTik] > ip firewall nat add chain=srcnat
action=masquerade out-interface=ether1
[admin@MikroTik] > ip dhcp-server setup
Select interface to run DHCP server on
dhcp server interface: ether2
Select network for DHCP addresses
dhcp address space: 192.168.7.0/26
Select gateway for given network
gateway for dhcp network: 192.168.7.1
Select pool of ip addresses given out by DHCP server
addresses to give out: 192.168.7.2-192.168.7.62
Select DNS servers
dns servers: 195.195.195.1
Select lease time
Lease time: 3d
[admin@MikroTik] > ip dhcp-server setup
Select interface to run DHCP server on
dhcp server interface: ether3
Select network for DHCP addresses
dhcp address space: 192.168.10.0/26
Select gateway for given network
gateway for dhcp network: 192.168.10.1
Select pool of ip addresses given out by DHCP server
addresses to give out: 192.168.10.2-192.168.10.62
Select DNS servers
dns servers: 195.195.195.1
Select lease time
Lease time: 3d
[admin@MikroTik] > ip proxy set enabled=yes port=3128 cache-administrator=nama_peserta@sekolah.sch.id
src-address=195.195.195.1
[admin@MikroTik] > ip firewall nat add chain=dstnat
protocol=tcp dst-port=53 action redirect to-ports=53
[admin@MikroTik] > ip firewall nat add chain=dstnat
protocol=udp dst-port=53 action redirect to-ports=53
[admin@MikroTik] > ip firewall nat add chain=dstnat
protocol=tcp dst-port=80 action redirect to-ports=3128
[admin@MikroTik] > ip proxy access add action=deny
dst-port=80 dst-host=www.google.com
[admin@MikroTik] > ip proxy access add action=deny
dst-port=80 dst-host=www.facebook.com
No comments:
Post a Comment