Community discussions

MikroTik App
 
khaloudy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Mon Jun 29, 2009 6:12 am

Help Please in queue pls pls pls

Fri Dec 23, 2016 5:48 pm

hi all
i have mikrotik 6.37
i have 10M speed
i want 4M for all users
and i want 6m for 2 users

this is my config
/interface ethernet
set [ find default-name=ether2 ] name=LAN
set [ find default-name=ether1 ] name=WAN
set [ find default-name=ether3 ] disabled=yes
set [ find default-name=ether4 ] disabled=yes
set [ find default-name=ether5 ] disabled=yes

/ip firewall layer7-protocol
add name=torrentsites regexp="^.*(get|GET).+(torrent|thepiratebay|isohunt|entert\
    ane|demonoid|btjunkie|mininova|flixflux|torrentz|vertor|h33t|btscene|bitunit\
    y|bittoxic|thunderbytes|entertane|zoozle|vcdq|bitnova|bitsoup|meganova|fulld\
    ls|btbot|flixflux|seedpeer|fenopy|gpirate|commonbits).*\$"
add name=videoplayback regexp=videoplayback
add name=EX1 regexp="\\.(3gp)|\\.(7z)|\\.(aac)|\\.(ace)|\\.(aif)|\\.(arj)|\\.(as\
    f)|\\.(avi)|\\.(bin)"
add name=EX2 regexp=\
    "\\.(bz2)|\\.(exe)|\\.(gz)|\\.(gzip)|\\.(img)|\\.(iso)|\\.(lzh)|\\.(m4a)"
add name=EX3 regexp=\
    "\\.(m4v)|\\.(mkv)|\\.(mov)|\\.(mp3)|\\.(mp4)|\\.(mpa)|\\.(mpe)|\\.(mpeg)"
add name=EX5 regexp=\
    "\\.(ra)|\\.(rar)|\\.(rm)|\\.(rmvb)|\\.(sea)|\\.(sit)|\\.(sitx)|\\.(tar)"
add name=EX6 regexp=\
    "\\.(tif)|\\.(tiff)|\\.(wav)|\\.(wma)|\\.(wmv)|\\.(z)|\\.(zip)"

/ip hotspot profile
add dns-name=www.Sub7anAllah.net hotspot-address=9.9.9.1 name=hsprof1

/ip hotspot user profile
set [ find default=yes ] idle-timeout=none keepalive-timeout=2m \
    mac-cookie-timeout=3d shared-users=4
add idle-timeout=none keepalive-timeout=20m mac-cookie-timeout=3d name=FREE \
    rate-limit=64K/64K shared-users=4
add idle-timeout=none keepalive-timeout=20m mac-cookie-timeout=3d name=256 \
    rate-limit=175k/175k
add idle-timeout=none keepalive-timeout=20m mac-cookie-timeout=3d name=512 \
    rate-limit=256k/256k
add idle-timeout=none keepalive-timeout=20m mac-cookie-timeout=3d name=shared \
    rate-limit=175k/175k shared-users=4

/ip pool
add name=hs-pool-2 ranges=9.9.9.2-9.9.9.254

/ip dhcp-server
add add-arp=yes address-pool=hs-pool-2 disabled=no interface=LAN lease-time=5m \
    name=dhcp1

/ip hotspot
add address-pool=hs-pool-2 disabled=no interface=LAN name=hotspot1 profile=\
    hsprof1

/queue simple
add burst-limit=1M/1M burst-threshold=1M/1M burst-time=5s/5s disabled=yes \
    max-limit=1M/1M name=lan target=9.9.9.0/24
add burst-limit=175k/175k burst-threshold=175k/175k burst-time=1m/1m max-limit=\
    175k/175k name=30-EsLAM target=9.9.9.236/32
add burst-limit=175k/175k burst-threshold=175k/175k burst-time=1m/1m max-limit=\
    175k/175k name=30-Tamer target=9.9.9.149/32
add burst-limit=175k/175k burst-threshold=175k/175k burst-time=1m/1m max-limit=\
    175k/175k name=30-Mina target=9.9.9.160/32
add burst-limit=175k/175k burst-threshold=175k/175k burst-time=1m/1m max-limit=\
    175k/175k name=30-A3 target=9.9.9.131/32
add burst-limit=175k/175k burst-threshold=175k/175k burst-time=1m/1m max-limit=\
    175k/175k name=30-Amr target=9.9.9.238/32
add burst-limit=175k/175k burst-threshold=175k/175k burst-time=1m/1m max-limit=\
    175k/175k name=30-Atef target=9.9.9.182/32
add burst-limit=175k/175k burst-threshold=175k/175k burst-time=1m/1m max-limit=\
    175k/175k name=30-Nasser target=9.9.9.130/32
add burst-limit=175k/175k burst-threshold=175k/175k burst-time=1m/1m max-limit=\
    175k/175k name=30-Mina2 target=9.9.9.185/32
add burst-limit=256k/256k burst-threshold=256k/256k burst-time=1m/1m max-limit=\
    256k/256k name=Nageeb target=9.9.9.241/32
add burst-limit=256k/256k burst-threshold=256k/256k burst-time=1m/1m max-limit=\
    256k/256k name=Said target=9.9.9.239/32
add burst-limit=256k/256k burst-threshold=256k/256k burst-time=1m/1m max-limit=\
    256k/256k name="Om Adham" target=9.9.9.237/32
add burst-limit=256k/256k burst-threshold=256k/256k burst-time=1m/1m max-limit=\
    256k/256k name=Soad target=9.9.9.235/32
add burst-limit=256k/256k burst-threshold=256k/256k burst-time=1m/1m max-limit=\
    256k/256k name="Mahmoud CO" target=9.9.9.230/32,9.9.9.216/32,9.9.9.209/32
add burst-limit=256k/256k burst-threshold=256k/256k burst-time=1m/1m max-limit=\
    256k/256k name="Mah Hus" target=9.9.9.205/32
add burst-limit=256k/256k burst-threshold=256k/256k burst-time=1m/1m max-limit=\
    256k/256k name="Sh Adel" target=9.9.9.215/32,9.9.9.221/32
add burst-limit=256k/256k burst-threshold=256k/256k burst-time=1m/1m max-limit=\
    256k/256k name=DVR2 target=9.9.9.180/32,9.9.9.229/32
add burst-limit=175k/175k burst-threshold=175k/175k burst-time=1m/1m max-limit=\
    175k/175k name=30-Hamoty target=9.9.9.66/32
add burst-limit=256k/256k burst-threshold=256k/256k burst-time=1m/1m max-limit=\
    256k/256k name="Coffee 2" target=9.9.9.246/32,9.9.9.234/32,9.9.9.240/32
add burst-limit=300k/300k burst-threshold=300k/300k burst-time=1m/1m max-limit=\
    300k/300k name="Smir Cosin" queue=default/default target=9.9.9.183/32 \
    total-queue=default
add burst-time=5s/5s name=122 packet-marks=no-mark queue=default/default \
    target=9.9.9.122/32 total-queue=default
add burst-time=5s/5s name=222 packet-marks=no-mark queue=default/default \
    target=9.9.9.222/32 total-queue=default
add burst-limit=300k/300k burst-threshold=300k/300k burst-time=1m/1m max-limit=\
    300k/300k name=Maha queue=default/default target=9.9.9.220/32 total-queue=\
    default
add burst-limit=300k/300k burst-threshold=300k/300k burst-time=1m/1m max-limit=\
    300k/300k name=Ganat queue=default/default target=9.9.9.184/32 total-queue=\
    default
add burst-limit=256k/256k burst-threshold=256k/256k burst-time=1m/1m max-limit=\
    256k/256k name=Ayman queue=default/default target=9.9.9.225/32 total-queue=\
    default
-------------------------------------------------------------------------------------------------------------------------------
this is i want unlimited users just 2 users or = 6M
add burst-time=5s/5s name=122 packet-marks=no-mark queue=default/default \
    target=9.9.9.122/32 total-queue=default
add burst-time=5s/5s name=222 packet-marks=no-mark queue=default/default \
    target=9.9.9.222/32 total-queue=default
==========================================================================
/queue tree
add max-limit=1M name=total-traffic parent=global queue=default
add name=upload packet-mark=upload parent=total-traffic queue=default
add name=download packet-mark=download parent=total-traffic queue=default

/ip address
add address=192.168.1.99/24 interface=WAN network=192.168.1.0
add address=9.9.9.1/24 interface=LAN network=9.9.9.0
add address=1.1.1.1/24 interface=LAN network=1.1.1.0      --------------------->>>> this for netcut 

/ip dhcp-server network
add address=9.9.9.0/24 comment="hotspot network" dns-server=\
    163.121.128.134,163.121.128.135 gateway=1.1.1.1 netmask=30         1.1.1.1   for netcut

/ip dns
set allow-remote-requests=yes servers=163.121.128.134,163.121.128.135

/ip firewall filter
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" \
    disabled=yes
add action=drop chain=forward connection-limit=2,32 layer7-protocol=\
    torrentsites
add action=drop chain=forward comment=torrentsites layer7-protocol=torrentsites \
    src-address=9.9.9.0/24
add action=drop chain=forward comment=dropDNS dst-port=53 layer7-protocol=\
    torrentsites protocol=udp src-address=9.9.9.0/24
add action=drop chain=forward comment=keyword_drop content=torrent src-address=\
    9.9.9.0/24
add action=drop chain=forward comment=trackers_drop content=tracker \
    src-address=9.9.9.0/24
add action=drop chain=forward comment=get_peers_drop content=getpeers \
    src-address=9.9.9.0/24
add action=drop chain=forward comment=info_hash_drop content=info_hash \
    src-address=9.9.9.0/24
add action=drop chain=forward comment=announce_peers_drop content=\
    announce_peers src-address=9.9.9.0/24
add action=drop chain=forward comment=p2p_drop p2p=all-p2p src-address=\
    9.9.9.0/24
add action=drop chain=forward comment=torrentsites layer7-protocol=torrentsites \
    src-address=9.9.9.0/24
add action=drop chain=forward comment=dropDNS dst-port=53 layer7-protocol=\
    torrentsites protocol=udp src-address=9.9.9.0/24
add action=drop chain=forward comment=keyword_drop content=torrent src-address=\
    9.9.9.0/24
add action=drop chain=forward comment=trackers_drop content=tracker \
    src-address=9.9.9.0/24
add action=drop chain=forward comment=get_peers_drop content=getpeers \
    src-address=9.9.9.0/24
add action=drop chain=forward comment=info_hash_drop content=info_hash \
    src-address=9.9.9.0/24
add action=drop chain=forward comment=announce_peers_drop content=\
    announce_peers src-address=9.9.9.0/24
add action=drop chain=forward comment=p2p_drop p2p=all-p2p src-address=\
    9.9.9.0/24
add action=drop chain=forward comment=download1 layer7-protocol=EX1
add action=drop chain=forward comment=download2 layer7-protocol=EX2
add action=drop chain=forward comment=download3 layer7-protocol=EX3
add action=drop chain=forward comment=download5 layer7-protocol=EX5
add action=drop chain=forward comment=download6 layer7-protocol=EX6

/ip firewall mangle
add action=mark-packet chain=prerouting in-interface=WAN new-packet-mark=upload
add action=mark-packet chain=postrouting new-packet-mark=download protocol=tcp \
    src-address=9.9.9.0/24

/ip firewall nat
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
    src-address=9.9.9.0/24 to-addresses=0.0.0.0

/ip hotspot ip-binding
i add all pcs  binding


/ip hotspot user
add comment="counters and limits for trial users" name=default-trial
add name=up password=21 profile=FREE
add name=m2 password=30 profile=512
add name=admin password=AdMiN

/ip route
add distance=1 gateway=192.168.1.1

/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes

/system clock
set time-zone-name=Africa/Cairo
/system identity
set name=EgyTik
  
/system logging
add topics=hotspot

/system ntp client
set enabled=yes primary-ntp=216.228.192.69
thank you
 
User avatar
todayheads
Frequent Visitor
Frequent Visitor
Posts: 79
Joined: Wed Jul 27, 2016 2:18 pm

Re: Help Please in queue pls pls pls

Fri Dec 23, 2016 7:02 pm

i advice using PPPOE for distributing bandwidth
 
alihamid435
just joined
Posts: 24
Joined: Mon Jun 20, 2016 9:42 pm
Location: UAE/Pakistan
Contact:

Re: Help Please in queue pls pls pls

Fri Dec 23, 2016 8:54 pm

you can make profile in usermanager.
 
alihamid435
just joined
Posts: 24
Joined: Mon Jun 20, 2016 9:42 pm
Location: UAE/Pakistan
Contact:

Re: Help Please in queue pls pls pls

Fri Dec 23, 2016 8:55 pm

you can make 4 MB & 2 MB profiles.
and in queue you can make speed for a specific website,as per your conditions
 
khaloudy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Mon Jun 29, 2009 6:12 am

Re: Help Please in queue pls pls pls

Sat Dec 24, 2016 12:28 am

i try PPPOE its better than before but i can't get good speed for 2 users
all users working binding and they about 30 user

if i get every one 256kb that mean 30 X 256 = 7680 kb ---- about 8M

so i limit all user by this rowl
/ip firewall mangle
add action=mark-packet chain=prerouting in-interface=WAN new-packet-mark=upload
add action=mark-packet chain=postrouting new-packet-mark=download protocol=tcp \
    src-address=9.9.9.0/24
/queue tree
add max-limit=1M name=total-traffic parent=global queue=default
add name=upload packet-mark=upload parent=total-traffic queue=default
add name=download packet-mark=download parent=total-traffic queue=default
and this is 2 user out of mark <<packet-marks=no-mark>>
add burst-time=5s/5s name=122 packet-marks=no-mark queue=default/default \
    target=9.9.9.122/32 total-queue=default
add burst-time=5s/5s name=222 packet-marks=no-mark queue=default/default \
    target=9.9.9.222/32 total-queue=default
to make this 2 users out 2M roul

about user manager its difficult for me to do that....

the best way to my work the config i work with
all i want how to correct the simple queue for this 2 users

thank you very much for your replies