Thursday 13 June 2013

Setting Mikrotik Dari New Terminal



interface setether1 name="ether1-micronet"
interface setether5 name="ether5-candra.NET"

ip address add address="172.30.2.17/30" interface=ether1-micronet
ip address add address="192.168.0.1/24" interface=ether5-candra.NET

ip route add gateway="172.30.2.16"

ip dns set servers="172.21.1.102,172.21.1.202" allow-remote-requests=yes

ip firewall nat add chain=srcnat out-interface=ether1-micronet src-address-list="[local]" action=masquerade

ip firewall mangle add chain=forward dscp="12" action=mark-packet new-packet-mark="pm_proxy" passthrough=no comment="PROXY"

ip firewall mangle add chain=prerouting src-address-list="[local]" dst-address-list="[webserver]" action=mark-packet new-packet-mark="pm_web" passthrough=no comment="WEBSERVER"

ip firewall mangle add chain=forward  src-address-list="[webserver]" dst-address-list="[local]" action=mark-packet new-packet-mark="pm_web" passthrough=no

import openixp.rsc

ip firewall mangle add chain=prerouting src-address-list="[local]" dst-address-list="openixp" action=mark-packet new-packet-mark="pm_iix" passthrough=no comment="IIX"

ip firewall mangle add chain=forward  src-address-list="openixp" dst-address-list="[local]" action=mark-packet new-packet-mark="pm_iix" passthrough=no

ip firewall mangle add chain=prerouting src-address-list="[local]" action=mark-packet new-packet-mark="pm_intl" passthrough=no comment="INTERNATIONAL"

ip firewall mangle add chain=forward dst-address-list="[local]" action=mark-packet new-packet-mark="pm_intl" passthrough=no

ip firewall address-list add address="222.124.3.158"
list: "[webserver]"
ip firewall address-list add address="172.21.0.0/16"
list: "[webserver]"
ip firewall address-list add address="192.168.0.100"
list: "[local]" - dan seterusnya, tergantung banyaknya PC

queue type add name="pcq" kind="pcq" pcq-limit="5k" pcq-classifier=src-address

queue simple add name=" 00.PROXY" max-limit=10M/10M packet-marks="pm_proxy" limit-at=5M/5M queue=pcq/pcq

queue simple add name=" 01.WEBSERVER" max-limit=10M/10M packet-marks="pm_web" limit-at=5M/5M queue=pcq/pcq

queue simple add name=" 02.IIX" max-limit=1M/1M packet-marks="pm_iix" queue=wireless-default/wireless-default

queue simple add name=" 02.BILLING" target-addresses="192.168.0.100" max-limit=256k/256k packet-marks="pm_iix" queue=wireless-default/wireless-default parent="02.IIX"

queue simple add name="03.INTERNATIONAL" max-limit=512k/512k packet-marks="pm_intl" queue=wireless-default/wireless-default

queue simple add name="03.BILLING" target-addresses="192.168.0.100" max-limit=128k/128k packet-marks="pm_intl" queue=wireless-default/wireless-default parent="03.INTERNATIONAL"

( Candra/Newstella )

0 komentar:

Post a Comment

 

Ip Addres

Kursor

Taks Bar

Copyright © Candra Efendi Design by BTDesigner | Blogger Theme by BTDesigner | Powered by Blogger