Sun Jan 05, 2014 12:09 pm
I have maded this possible with two RB450G , two PPPoE Lines & one Squid Cache.
Its a complex of configurations that i dont know where to start .
;;; Youtube Connection Mark
chain=prerouting action=mark-connection new-connection-mark=youtube.com
passthrough=yes protocol=tcp layer7-protocol=youtube.com
;;; Youtube Packets mark
chain=postrouting action=mark-packet new-packet-mark=youtube.com
passthrough=no protocol=tcp connection-mark=youtube.com
;;; Youtube Address List
chain=prerouting action=add-dst-to-address-list protocol=tcp
address-list=youtube.com address-list-timeout=0s
layer7-protocol=youtube.com dst-port=80
;;; Youtube Route
chain=prerouting action=mark-routing new-routing-mark=Youtube
passthrough=yes dst-address-list=youtube.com
;;; YouTube Squid Port
chain=dstnat action=dst-nat to-addresses=192.168.7.3 to-ports=8081
protocol=tcp dst-address-list=youtube.com dst-port=80
192.168.7.3 is squid ip adress
I found tha only ROS 6.2 makes this.
but i got one year studying and reading to find the best configs for squid proxy