Community discussions

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

Hardly to solve this script !!!! Please Help ,e

Thu Dec 22, 2016 12:48 am

Salam All
i work in a company with hotspot and all offices work as hotspot binding

i use this script to limit all pcs at 4M
i have 10M speed
i just want 2 pc for managers works unlimted or 6M alone
9.9.9.122
9.9.9.222
where is error?
all pcs working fine but i can't make 9.9.9.122 and 9.9.9.222 unlimte



/queue simple
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-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

--------------------------------------------------------------------------------------
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=4M 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 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

please help me to correct this script
best regards
Khaloudy
 
networkfudge
Trainer
Trainer
Posts: 136
Joined: Mon May 20, 2013 2:47 pm

Re: Hardly to solve this script !!!! Please Help ,e

Thu Dec 22, 2016 10:05 am

Post your configuration.
 
khaloudy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Mon Jun 29, 2009 6:12 am

Re: Hardly to solve this script !!!! Please Help ,e

Thu Dec 22, 2016 6:07 pm

thank you for reply ..
Post your configuration.
this is my configuration

MikroTik RouterOS 6.14 (c) 1999-2014 http://www.mikrotik.com/

# jan/01/2002 04:00:42 by RouterOS 6.14
# software id = LQ3R-BR4T
/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

/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
 
khaloudy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Mon Jun 29, 2009 6:12 am

Re: Hardly to solve this script !!!! Please Help ,e

Fri Dec 23, 2016 12:34 am

i Neeeeed Help Please
up
up
up
up
 
waseer
just joined
Posts: 13
Joined: Wed Dec 16, 2015 6:49 pm

Re: Hardly to solve this script !!!! Please Help ,e

Fri Dec 23, 2016 9:31 pm

U can limitea binding mac from dhcp server insted of quee treee

Sent from my HTC Desire 626s using Tapatalk