Page 1 of 1

Can I cash files 4-5 mb like avi,wmv,zip,exe...?

Posted: Mon Feb 20, 2006 3:29 am
by AnaG
Can I cash files 4-5 mb like avi,wmv,zip,exe...?
Hi all
This is my first post
This is my setup
ip firewall nat> print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=srcnat out-interface=internet action=masquerade

1 chain=dstnat in-interface=wlan dst-address=!192.168.1.1 protocol=tcp
dst-port=80 action=redirect to-ports=3128


ip web-proxy> print
enabled: yes
src-address: 0.0.0.0
port: 3128
hostname: "proxy"
transparent-proxy: yes
parent-proxy: 0.0.0.0:0
cache-administrator: "webmaster"
max-object-size: 4096KiB
cache-drive: system
max-cache-size: 12000000KiB
max-ram-cache-size: unlimited
status: running
reserved-for-cache: 11999232KiB
reserved-for-ram-cache: 114688KiB
ip web-proxy access> print
Flags: X - disabled, I - invalid
0 ;;; block telnet & spam e-mail relaying
dst-port=23-25 action=deny

1 dst-port=433 method=connect action=deny

ip web-proxy cache> print
Flags: X - disabled, I - invalid
0 ;;; don't cache dynamic http pages
dst-port=0-65535 url=":cgi-bin \\?" action=deny

1 url="\\.exe$" action=allow

2 url="\\.zip$" action=allow

3 url="\\.mpeg$" action=allow

4 url="\\.mp3$" action=allow

5 url="\\.avi$" action=allow

6 url="\\.pdf$" action=allow

7 url="\\.rar$" action=allow

8 url="\\.mov$" action=allow

9 url="\\.mpg$" action=allow

10 url="\\.dat$" action=allow

it's working super for webcash but not for biger files like 4-5 mb
also I setup max-object-size: 200000KiB
not working can somebody pls help me what m I doing wrong
I search the forum but I cant find somethink about that
Thx

Posted: Mon Feb 20, 2006 11:43 am
by maroon
your MT Box is well configured as a proxy server. but MT doesn't support the cache for files like exe,zip bla bla bla.

i'm sure you can find an article in this forum on setting up a combinantion of two MT boxes, so your exe,zip,mpeg,etc... will be cached normally without any problem.

Regards,

Posted: Mon Feb 20, 2006 6:35 pm
by Dufol
I work in Internet cafe with 40 pc's. The bad side was some fun videoclips, or some new mp3 are downloadet over and over again, maybe 6-10 times a day, but we have only 1 mbit internet for sharing, i think that it shuld be grate idea to cash this files.

Yes i find This:
http://forum.mikrotik.com/viewtopic.php ... ng+hotspot

also Hellbound says that he tried on one mt box and it was warking but don't says how (:.
Thx

Posted: Mon Feb 20, 2006 7:47 pm
by jager
Set up an external squid, or any other proxy server (windows/linux platform, whatever) on a cheap, old P3 or similar. Then, on Mtik, NAT all outgoing 80 port tcp traffic from local machines to your proxy`s IP.
This should work ok for you!

Posted: Tue Feb 21, 2006 3:35 am
by AnaG
Ok I get the point, I need 2 MT for that
looking from hire
http://forum.mikrotik.com/viewtopic.php ... ng+hotspot
this is the setup and pls corect me if I m wrong (never tryed)

-----------GW MT Router IP:192.168.1.1

/ ip firewall dst-nat

chain=dstnat in-interface=wlan dst-address=!192.168.1.1 protocol=tcp
dst-port=80 action=redirect to-ports=3128

/ ip web-proxy
set enabled=yes src-address=0.0.0.0 port=3128 hostname="proxy" transparent-proxy=yes \
parent-proxy=192.168.1.2:3128 cache-administrator="webmaster" max-object-size="0 kB" \

/ ip web-proxy access
blabla
/ ip web-proxy cache
add url="cgi-bin \\?" action=deny comment="don't cache dynamic http pages" disabled=no


-----MT proxy router IP:192.168.1.2
Hire shuld I put something in Ip firewall nat?

/ ip web-proxy
set enabled=yes src-address=0.0.0.0 port=3128 hostname="192.168.1.2" transparent-proxy=no \
parent-proxy=0.0.0.0:0 cache-administrator="email adress" max-object-size="200000 kB" \
/ ip web-proxy access
add dst-port=!443 method=connect action=deny comment="allow
blabla
/ ip web-proxy cache
add url="cgi-bin \\?" action=deny comment="" disabled=no
add url="\\.exe\$" action=allow comment="" disabled=no
add url="\\.zip\$" action=allow comment="" disabled=no
add url="\\.mpeg\$" action=allow comment="" disabled=no
add url="\\.mp3\$" action=allow comment="" disabled=no
add url="\\.avi\$" action=allow comment="" disabled=no
add url="\\.pdf\$" action=allow comment="" disabled=no
add url="\\.rar\$" action=allow comment="" disabled=no
add url="\\.mov\$" action=allow comment="" disabled=no
add url="\\.mpg\$" action=allow comment="" disabled=no
add url="\\.dat\$" action=allow comment="" disabled=no
add action=deny comment="" disabled=no