How to use external open source caching server

From MikroTik Wiki
Revision as of 17:26, 6 September 2008 by Muhammad (talk | contribs) (Complete final view)
Jump to: navigation, search

AOA

some time admin want to control users http requests throw costmized ACL's or other scripts,

i am using mikrotik as a pppoe server, all pppoe or 192.168.0.0/23 network clints are conect with mikrotik directly throw LAN,


my mikrotik with 3 LAN Cards

1) LAN (for clints)

2) WAN (for internet)

3) eth1 (for squid)

501.jpg 501 (1).JPG 501 (2).JPG 501 (3).JPG

squid have 2 type of networks

1) LAN IP Address 192.168.100.1/24 without any gateway or route address

just for LAN conectivity with mikrotik eth1 with 192.168.100.2/24 IP Address

2) PPPoE conection for internet throw mikrotik 'but' difrant IP Address 192.168.12.2 (normal clints IP address 192.168.0.0/23)

501 (4).jpg 501 (5).JPG 501 (6).JPG


squid internet access is on,

501 (4).jpg

time to route clients traffic to 192.168.100.1 with clients on IP's with 192.168.0.0/23 range

disable nat ( IP / Firewall / NAT / masquerade srcnat 192.168.0.0/23

when my normal clint requist for internet to mikrotik then mikrotik all LAN network 192.168.0.0/23 passthrow to squid 192.168.100.1 direct without any delay

501 (7).jpg

501 (8).JPG

501 (9).JPG

501 (10).JPG

example) any request from 192.168.0.0/23 network, mikrotik route this request to 192.168.100.1 and if other network request then mikrotik route this requist with WAN route 192.168.11.1

501 (11).JPG

Complete final view

501 (12).jpg