Senin, 14 Januari 2013

Mikrotik

MEMBUAT IP ADDRESS
-----------------------
ip address add address=165.9.9.243/16 interface=public
ip address add address=192.168.1.254/24 interface=local

MEMBUAT gateway
-----------------
ip route add gateway=165.9.9.254

MEMBUAT DNS
------------------
ip dns set primary-dns=202.152.165.36 secondary-dns=202.99.40.173  allow-remote-requests=yes

MASQUARADE
----------
ip firewall nat add chain=srcnat src-address=192.168.1.0/24 out-interface=ether1  action=masquerade



MIKROTIK SEBAGAI PROXY
----------------------
A. mengaktifkan web proxy
ip proxy set enabled=yes

B. konfigurasi IP web proxy
ip web-proxy set enabled=yes src-address=0.0.0.0 port=8080 hostname="proxy.ac.id" transparent-proxy=yes parent-proxy=0.0.0.0 cache-administra
tor="fadli" max-object-size=4096KiB cache-drive=system max-cache-size=unlimited
max-ram-cache-size=unlimited

C. konfigurasi proxy transparent

ip firewall nat add chain=dstnat src-address-list=192.168.1.0/24  dst-port=80 in-interface=ether2 protocol=tcp action=redirect to-ports=8080
ip firewall nat add chain=dstnat src-address-list=192.168.1.0/24  dst-port=3128 in-interface=ether2 protocol=tcp action=redirect to-ports=8080

ip firewall nat add chain=dstnat src-address-list=192.168.1.0/24  dst-port=8080 in-interface=ether2 protocol=tcp action=redirect to-ports=8080

ip firewall nat add chain=dstnat protocol=tcp dst-port=80 action=accept
ip firewall nat add chain=dstnat protocol=tcp dst-port=3128 action=accept  
ip firewall nat add chain=dstnat protocol=tcp dst-port=8080 action=accept   

MEMBUAT DHCP SERVER
-----------------------
ip pool add name=dhcp-puskom ranges=192.168.1.2-192.168.1.253

ip dhcp-server network add address=192.168.1.0/24 gateway=192.168.1.254

ip dhcp-server add interface=ether2 address-pool=dhcp-puskom     
ip dhcp-server
ip dhcp-server> print
Flags: X - disabled, I - invalid
 #   NAME                                       INTERFACE RELAY           ADDRESS-POOL LEASE-TIME ADD-ARP
 0 X dhcp1                                      ether2                    dhcp-puskom  3d       
ip dhcp-server> enable
numbers: 0


Tidak ada komentar:

Posting Komentar

Like Me Like You