Sunteți pe pagina 1din 14

Open source caching server 1

Open source caching server


AOA

How to use external open source caching server


Sometimes admin want to control users HTTP requests through custmized ACL's or other scripts.
Mikrotik can be used as PPPoE server where all PPPoE or clients on 192.168.0.0/23 network are connected with
Mikrotik directly through LAN.

Mikrotik with 3 interfaces


1. LAN (for clients)
2. WAN (for Internet)
3. eth1 (for Squid)

Mikrotik simple view


Open source caching server 2
Open source caching server 3

Squid
Squid have 2 type of networks
1. LAN IP Address 192.168.100.1/24 without any gateway or route address.
Just for LAN connectivity with Mikrotik eth1 with 192.168.100.2/24 IP Address
2. PPPoE conection for Internet through Mikrotik 'but' different IP Address 192.168.12.2 (normal clients IP address
192.168.0.0/23)
Open source caching server 4

Internet setup for Squid


Open source caching server 5
Open source caching server 6
Open source caching server 7

Squid Internet access is working


Open source caching server 8

Time to route clients traffic to address 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 normal client request 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.
Open source caching server 9
Open source caching server 10
Open source caching server 11

Example: Any request from 192.168.0.0/23 network (with routing mark client), Mikrotik route this request to
192.168.100.1, and if another network request then Mikrotik route this request to WAN route 192.168.11.1.
Open source caching server 12
Open source caching server 13

Complete final view

but how to configure squid ?


Article Sources and Contributors 14

Article Sources and Contributors


Open source caching server  Source: http://wiki.mikrotik.com/index.php?oldid=15055  Contributors: Iishiii, Mersudin.jahic, Muhammad

Image Sources, Licenses and Contributors


Image:501.jpg  Source: http://wiki.mikrotik.com/index.php?title=File:501.jpg  License: unknown  Contributors: Muhammad
Image:501 (1).JPG  Source: http://wiki.mikrotik.com/index.php?title=File:501_(1).JPG  License: unknown  Contributors: Muhammad
Image:501 (2).JPG  Source: http://wiki.mikrotik.com/index.php?title=File:501_(2).JPG  License: unknown  Contributors: Muhammad
Image:501 (3).JPG  Source: http://wiki.mikrotik.com/index.php?title=File:501_(3).JPG  License: unknown  Contributors: Muhammad
Image:501 (4).jpg  Source: http://wiki.mikrotik.com/index.php?title=File:501_(4).jpg  License: unknown  Contributors: Muhammad
Image:501 (5).JPG  Source: http://wiki.mikrotik.com/index.php?title=File:501_(5).JPG  License: unknown  Contributors: Muhammad
Image:501 (6).JPG  Source: http://wiki.mikrotik.com/index.php?title=File:501_(6).JPG  License: unknown  Contributors: Muhammad
Image:501 (7).jpg  Source: http://wiki.mikrotik.com/index.php?title=File:501_(7).jpg  License: unknown  Contributors: Muhammad
Image:501 (8).JPG  Source: http://wiki.mikrotik.com/index.php?title=File:501_(8).JPG  License: unknown  Contributors: Muhammad
Image:501 (9).JPG  Source: http://wiki.mikrotik.com/index.php?title=File:501_(9).JPG  License: unknown  Contributors: Muhammad
Image:501 (10).JPG  Source: http://wiki.mikrotik.com/index.php?title=File:501_(10).JPG  License: unknown  Contributors: Muhammad
Image:501 (11).JPG  Source: http://wiki.mikrotik.com/index.php?title=File:501_(11).JPG  License: unknown  Contributors: Muhammad
Image:501 (12).jpg  Source: http://wiki.mikrotik.com/index.php?title=File:501_(12).jpg  License: unknown  Contributors: Muhammad

S-ar putea să vă placă și