Community discussions

MikroTik App
 
User avatar
mramos
Member Candidate
Member Candidate
Topic Author
Posts: 231
Joined: Sun Nov 23, 2008 1:05 am
Location: S. B do Campo - SP - Brazil

Help with web-proxy x PCQs ...

Fri Nov 06, 2009 8:53 am

Hi ...

I've been happy for some time with my small & simple setup where 3 APs on old wrap boards + now 4.2ROS + 2GB USB memory stiks as web-proxy storage and PCQ for clients (256 down / 128 up) but no speed limits for proxy contents => clients.

The clients 'feeling' is as if they have more than 256K, at least to regular http surfin' and this is ok for the way they use internet. I'm not using web-proxy to reduce internet bw but to improve users satisfaction. And they're.

Some days ago I ordered some RB411AR because the price + built in 2.4B/G radio. A quick way to deploy more 4 APs (yes, I'm growing :D), that will be connected to the backhaul using R52N at the free PCI slot (-107dBm noise floor with a 90º 21dBi pannel ???? Too good to be true :D).

I'm not familiar with the user manager et al, so I decided to keep this PCQ + web proxy setup/behaviour. I'm not worried with backhaul BW for now. Next step I created 4 subnets (192.168.99.0/26 etc) and 4 different customized PCQs (128, 256, 384, 512).

And I set up web-proxy + mangle + queue trees the same way I use on wraps and worked ok. Of course there is no web-proxy storage on 411s. But I used nand for some time (hours) just to check. Other configs changed such as ARP static entries for clients & reply-only at wlan interfaces, etc. May be I create a script to read some txt file with this data somewhere ... but few clients for now (50 ... 60).

Ok, so parent proxy is the way to go. I have a Pentium IV 2.X GHz with 4.2ROS as a 'core router' so a 8GB USB stick is the web-proxy storage. I enabled the web proxy there, working ok when I connect to the same net (192.168.100.0) and all APs have their public address on such net.

I configured the parent-proxy on 411s to look for 192.168.100.1 and they do. BUT: the speed between the parent-proxy and the 411 is limited to the client speed (128 ... 512). I can watch the download speed from internet to core router peak 4Mbps => web-proxy storage but from core router to AP = 128 ... 512.

How can I make the speed between AP public interface and core router unlimited? My mangle config for 128K subnet follows below:
 0   ;;; Proxy Hits
     chain=output action=mark-packet new-packet-mark=proxy-hit passthrough=no 
     out-interface=WLAN-PMP dscp=4 

 1   ;;; 192.168.99.1-192.168.99.63 Packet & Connection Marks (128Kbps sub-net)
     chain=prerouting action=mark-packet new-packet-mark=U128 passthrough=no 
     src-address=192.168.99.0/26 in-interface=WLAN-PMP 

 2   chain=forward action=mark-connection new-connection-mark=CONN128 
     passthrough=yes src-address=192.168.99.0/26 

 3   chain=forward action=mark-packet new-packet-mark=D128 passthrough=no 
     in-interface=WLAN-PTP connection-mark=CONN128 

 4   chain=output action=mark-packet new-packet-mark=D128 passthrough=no 
     dst-address=192.168.99.0/26 out-interface=WLAN-PMP
And the queue tree:
 4   name="U128" parent=global-in packet-mark=U128 limit-at=0 queue=U128 priority=4 
     max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s 

 6   name="D128" parent=WLAN-PMP packet-mark=D128 limit-at=0 queue=D128 priority=4 
     max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
The queues U128/D128 are PCQs 64K dw/128K up.

Which rule (and where) should I add to avoid speed limits when the targets are servers on 192.168.100.0 network? Or should I set up this parent proxy using another machine with an ip address different from 192.168.100.1 (the default gw for any ap public port)? Or even settin' up another address to the same interface (e.g 192.168.100.2) and use it as parent-proxy?

Any help is apreciated;

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], MauriceW and 168 guests