Up and Down unlimit from Web-Proxy

I am thinking of a new way of doing like this :

Is it possible if client downloads from the router or Proxy as unlimited for upload and download but downloads from the Internet will be limited,the same goes for uploads no limitation if you are uploading to router, but limit all uploads to Internet.

Note that i have 3 interfaces :
the first interface is : ISP-1 (i use it as Proxy ) uses port 80
the second is : ISP-2 ( default gateway) masquerading
the third is : LOCAL

so i understand that proxy works like this:

1: client initiates http request.
2: router redirects http(80) request to proxy.
3: proxy checks the requested object in its repository.
i) if found in repository, proxy sends the object back to router.
ii)if not found, proxy srcnats the request with its public ip address, object comes back to proxy, proxy saves copy in its repository, generates hash and then sends object back to router.
4: router sends response back to customer.

and a configuration like :

/ip firewall mangle add chain=output out-interface=LOCAL dst-address=192.168.4.0/24 comment=“Proxy marking” protocol=tcp action=mark-packet new-packet-mark=proxymark passthrough=no

/ip firewall mangle add chain=input in-interface=ISP-1 protocol=tcp action=mark-packet new-packet-mark=publicinputmark comment=“Internet marking” passthrough=no

so does this configuration meet my needs !

every client connected to Mikrotik Router but with subnet 30 so how to unlimit users if they want to connect with each others and have unlimited downloads from proxy but if they connected to internet as per user i want to limit client per ip .
Thank you

Ghassan Gharabli

Ghassan Gharabli

read the thread again from which you copied the cache working points…i already wrote there that its not possible..

regds,
asad

I already tried it and it was success to me only for download but there is no control on the other hand for upload ..

for example :
i tried to test it ..and i got download unlimited from the web-proxy but in second hand it was a limitation only for traffic and goes only to 1 queue tree ..

finally my results failed .

Thank you.