How to use external open source caching server

Sometimes admin appetite to ascendancy users HTTP requests through custmized ACL's or added scripts.
Mikrotik can be acclimated as PPPoE server area all PPPoE or audience on 192.168.0.0/23 arrangement are affiliated with Mikrotik anon through LAN.
Mikrotik with 3 interfaces
LAN (for clients)
WAN (for Internet)
eth1 (for Squid)
501.jpg

Mikrotik simple view

501 (1).JPG

501 (2).JPG

501 (3).JPG

Squid

Squid accept 2 blazon of networks
LAN IP Abode 192.168.100.1/24 after any aperture or avenue address.
Just for LAN connectivity with Mikrotik eth1 with 192.168.100.2/24 IP Address
PPPoE conection for Internet through Mikrotik 'but' altered IP Abode 192.168.12.2 (normal audience IP abode 192.168.0.0/23)

501 (4).jpg

Internet setup for Squid

501 (5).JPG

501 (6).JPG

Squid Internet access is working

501 (4).jpg

Time to avenue audience cartage to abode 192.168.100.1 with audience on IP's with 192.168.0.0/23 range
Disable NAT ( IP / Firewall / NAT / masquerade srcnat 192.168.0.0/23
When accustomed applicant appeal for Internet to Mikrotik again Mikrotik all LAN arrangement 192.168.0.0/23 passthrow to Squid 192.168.100.1 absolute after any delay.


501 (7).jpg

501 (8).JPG

501 (9).JPG

501 (10).JPG

Example: Any appeal from 192.168.0.0/23 arrangement (with acquisition mark client), Mikrotik avenue this appeal to 192.168.100.1, and if addition arrangement appeal again Mikrotik avenue this appeal to WAN avenue 192.168.11.1.

501 (11).JPG

Complete final view

501 (12).jpg

but how to configure squid ?

0 التعليقات:

Post a Comment