Mikrotik External Squid

5
Mikrotik with 3 interfaces 1. LAN (for clients) 2. WAN (for Internet) 3. eth1 (for Squid) Mikrotik simple view 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 throw Mikrotik 'but' different IP Address 192.168.12.2 (normal clients IP address 192.168.0.0/23)

Transcript of Mikrotik External Squid

Page 1: Mikrotik External Squid

Mikrotik with 3 interfaces

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

Mikrotik simple view

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 Address2. PPPoE conection for Internet throw Mikrotik 'but' different IP Address 192.168.12.2 (normal clients IP address 192.168.0.0/23)

Page 2: Mikrotik External Squid

Internet setup for Squid

Squid Internet access is working

Page 3: Mikrotik External Squid

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.

Page 4: Mikrotik External Squid

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.

Complete final view

Page 5: Mikrotik External Squid