Labels
Mikrotik
Tuesday, June 14, 2016
11.Mikrotik Unlimited Browsing Limited Download (Using Mangle Rule)
Simple Diagram:
Suppose we have Ether1 is WAN interface.
Here the Script:
/ip firewall mangle add action=mark-connection chain=prerouting connection-bytes=262146-4294967295 in-interface=ether1 new-connection-mark=download protocol=tcp src-port=21,80 add action=mark-packet chain=prerouting connection-mark=download in-interface=ether1 new-packet-mark=download passthrough=no /queue type add kind=pcq name=shape pcq-classifier=src-address pcq-dst-address6-mask=64 pcq-rate=128k pcq-src-address6-mask=64 /queue tree add max-limit=128k name=Download packet-mark=download parent=global queue=shape
Saturday, June 11, 2016
10.Mikrotik Limit Different Bandwidth In Day and Night
Suppose we have one network
192.168.1.0/24
and want to limit Bandwidth for
Day
and
Night
Time:
LAN = 192.168.1.0/24 Day Time = 06:00am – 18:00pm – Normal Speed = 1Mbps Night Time = 18:00pm – 06:00am – Double Speed = 2Mbps
Simple Diagram:
STEP 1
: Create Queue Simple:
/queue simple add comment="1MbpsDoubleNight" disabled=no target=192.168.1.5 max-limit=1M/1M name="Client1" add comment="1MbpsDoubleNight" disabled=no target=192.168.1.6 max-limit=1M/1M name="Client2" add comment="1MbpsDoubleNight" disabled=no target=192.168.1.7 max-limit=1M/1M name="Client3"
STEP 2
: Create Scheduler:
/system scheduler add comment="" disabled=no interval=1d name="Day" on-event="/queue simple\r\n set [find comment=1MbpsDoubleNight] max-limit=1M/1M\r\n" start-date=Jun/11/2016 start-time=06:00:00 add comment="" disabled=no interval=1d name="Night" on-event="/queue simple\r\n set [find comment=1MbpsDoubleNight] max-limit=2M/2M\r\n" start-date=Jun/11/2016 start-time=18:00:00
Wednesday, June 8, 2016
9.Mikrotik Hotspot Server Configuration (Limit Speed - User Profiles)
Simple Diagram:
See PDF Press Here!
Tuesday, June 7, 2016
8.Mikrotik Hotspot Server Configuration (Basic)
Simple Diagram:
See PDF Press Here!
Monday, May 23, 2016
7.Mikrotik Share Bandwidth Equal for All Online Clients But Limit on Maximum (PCQ)
Simple Diagram:
There are two ways how to make this: using mangle and queue trees, or, using simple queues.
-First Method Using Mangle and Queue Tree:
/ip firewall mangle add chain=prerouting action=mark-packet \ in-interface=ether1 new-packet-mark=client_upload /ip firewall mangle add chain=prerouting action=mark-packet \ in-interface=ether2 new-packet-mark=client_download /queue type add name="PCQ_download" kind=pcq pcq-rate=1M \ pcq-classifier=dst-address /queue type add name="PCQ_upload" kind=pcq pcq-rate=1M \ pcq-classifier=src-address /queue tree add parent=global queue=PCQ_download packet-mark=client_download /queue tree add parent=global queue=PCQ_upload packet-mark=client_upload
-Second Method Using Simple Queue:
/queue type add name="PCQ_download" kind=pcq pcq-rate=1M \ pcq-classifier=dst-address /queue type add name="PCQ_upload" kind=pcq pcq-rate=1M \ pcq-classifier=src-address /queue simple add target-addresses=192.168.1.0/24 queue=PCQ_upload/PCQ_download
Older Posts
Home
Subscribe to:
Posts (Atom)