![]() Now Try to Browse, and at Proxy Server, Monitor SQUIDLog by following command tail -f /var/log/squid/access.logĪnd you will see User Browsing request coming via Mikrotik ip. ![]() Iptables -table nat -append POSTROUTING -out-interface 192.168.1.3 -j MASQUERADE # Set this system as a router for Rest of LAN # Redirect users request to squid port 8080 Note: I Will not discuss howto configure SQUID here as it have already been well described in my other articles as follows, Therefore I assume you have already configured SQUID and must be running it in TRANSPARENT mode (using nf directives and iptables)Īdd the following line in /etc/squid/nf # PORT and Transparent Optionįor iptables to redirect user request to port 8080 transparently, Also masquerade traffic, Add the following line in /etc/rc.local or issue the command at CLI, ![]() That’s it for mikrotik configuration, If internet sharing is already configured at SQUID server, then now you don’t need to adjust any configuration at squid box, all requests will be served by squid.Ĭonnected Directly with Mikrotik’s PROXY interface via crossover cable. ip firewall natĪdd action=dst-nat chain=dstnat disabled=no dst-port=80 protocol=tcp to-addresses=192.168.2.1 to-ports=8080 Open New Terminal and create new NAT rule to redirect port 80 traffic to SQUID proxy server. We will divide this article in two sections.Ĭonnected Directly to PROXY’s eth0 via crossover cable. ![]() I assume that you already have working Mikrotik in place, and Already configured SQUID Server ready, (You can search guides about there configurations at my blog), I will just show you how to interconnect them together so All users browsing port 80 request will go to SQUID for caching facility) To add SQUID Proxy Caching Server support in Mikrotik, Assuming the following Scenario.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |