can not limit download rate at userman

hi

i have pptp server that users connet them from user-manager.i have problem with limit data rate at usermanager.i have changed at usermanager profile but I cant see any changes after connecting vpn client.



/interface bridge
add l2mtu=1598 name=bridge1 protocol-mode=none
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no l2mtu=2290 mode=
ap-bridge
/interface wireless security-profiles
set [ find default=yes ] authentication-types=
wpa-psk,wpa2-psk,wpa-eap,wpa2-eap group-ciphers=tkip,aes-ccm mode=
dynamic-keys unicast-ciphers=tkip,aes-ccm wpa-pre-shared-key=******
wpa2-pre-shared-key=******
/ip hotspot user profile
set [ find default=yes ] idle-timeout=none keepalive-timeout=2m
mac-cookie-timeout=3d
/ip ipsec proposal
set [ find default=yes ] enc-algorithms=3des
/ip pool
add name=dhcp_pool1 ranges=172.16.1.2-172.16.1.254
add name=dhcp_pool4 ranges=192.168.1.6-192.168.1.254
add name=vpn ranges=10.20.20.0/24
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=wlan1 name=dhcp1
add address-pool=dhcp_pool4 disabled=no interface=bridge1 name=dhcp2
/port
set 0 name=serial0
/ppp profile
set 1 dns-server=85.15.1.15 local-address=10.20.20.1 remote-address=vpn
wins-server=8.8.8.8
/interface pppoe-client
add ac-name=“” add-default-route=yes allow=pap,chap,mschap1,mschap2
default-route-distance=1 dial-on-demand=no disabled=no interface=bridge1
keepalive-timeout=60 max-mru=1480 max-mtu=1480 mrru=disabled name=
pppoe-out1 password=profile=default service-name=“”
use-peer-dns=yes user=

/system logging action
set 0 memory-lines=100
set 1 disk-lines-per-file=100
/tool user-manager customer
set admin password=******
/tool user-manager profile
add name=mehrdad name-for-users=“” override-shared-users=unlimited owner=
admin price=0 starts-at=logon validity=0s
/tool user-manager profile limitation
add address-list=“” download-limit=0B group-name=“” ip-pool=“” name=limit1
owner=admin rate-limit-burst-rx=46080B rate-limit-burst-treshold-rx=
46080B rate-limit-burst-treshold-tx=229376B rate-limit-burst-tx=229376B
rate-limit-min-rx=46080B rate-limit-min-tx=229376B rate-limit-priority=1
rate-limit-rx=46080B rate-limit-tx=229376B transfer-limit=0B
upload-limit=0B uptime-limit=3m
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether5
/interface pptp-server server
set authentication=pap,chap,mschap1,mschap2 enabled=yes
/ip address
add address=172.16.1.1/24 interface=wlan1 network=172.16.1.0
add address=192.168.1.5/24 interface=bridge1 network=192.168.1.0
/ip cloud
set enabled=yes update-time=no
/ip dhcp-server network
add address=172.16.1.0/24 dns-server=85.15.1.15,8.8.8.8 gateway=172.16.1.1
add address=192.168.1.0/24 dns-server=192.168.1.5 gateway=192.168.1.5
/ip dns
set allow-remote-requests=yes servers=85.15.1.15
/ip firewall filter
add chain=input dst-port=8291 protocol=tcp
/ip firewall nat
add action=masquerade chain=srcnat comment=“WIFI interface” src-address=
172.16.1.0/24
add action=masquerade chain=srcnat src-address=10.20.20.0/24
/ip ipsec policy
add template=yes
/ip proxy
set parent-proxy=0.0.0.0
/ip upnp
set allow-disable-external-interface=no
/ppp aaa
set use-radius=yes
/radius
add address=127.0.0.1 secret=service=ppp
/radius incoming
set accept=yes
/system clock
set time-zone-name=Asia/Tehran
/system leds
set 0 interface=wlan1
/system ntp client
set enabled=yes primary-ntp=85.15.1.15 secondary-ntp=8.8.8.8
/system routerboard settings
set cpu-frequency=360MHz
/tool user-manager router
add coa-port=3799 customer=admin disabled=no ip-address=127.0.0.1 log=
auth-ok,auth-fail,acct-ok,acct-fail name=vpn shared-secret=

/tool user-manager user
add customer=admin disabled=no ip-address=10.20.20.2 name=mehi password=mehi
shared-users=unlimited wireless-enc-algo=none wireless-enc-key=“”
wireless-psk=“”

What routerboard and routeros you use?

First of all paste this inside your board.

/interface bridge
set bridge1 protocol-mode=rstp
/interface wireless
set [ find default-name=wlan1 ] wireless-protocol=802.11
/ip ipsec proposal
set [ find default=yes ] enc-algorithms=aes-128-cbc
/ppp profile
set 1 !wins-server
/system logging action
set 0 memory-lines=1000
set 1 disk-lines-per-file=1000
/ip upnp
set allow-disable-external-interface=yes
/ip pool
set vpn ranges=10.20.20.2-10.20.20.254
/system ntp client
set secondary-ntp=85.15.1.15
/tool user-manager profile limitation
set limit1 ip-pool=vpn address-list=vpn group-name=vpn rate-limit-priority=5
/tool user-manager user
set mehi !ip-address
create-and-activate-profile customer=admin profile=limit1 [find where name="mehi"]

Then retry.

(I notice you set only 3 min total uptime on this profile…)