Conclusion

We have successfully set up policy based routing of HTTP and HTTPS traffic from our router to separate proxy box. Both HTTP and HTTPS traffic can now be filtered for adult language and unwanted sites.

References

Important

If you are using Google chrome, you are advised to block QUIC protocol on your router, otherwise Chrome will be able to bypass the transparently redirected proxy when going to QUIC enabled sites, like google.com, youtube.com, etc. For more information see Squid Wiki article http://wiki.squid-cache.org/KnowledgeBase/Block%20QUIC%20protocol. Adding REJECT rules for UDP protocol on outgoing port 80 and port 443 should be enough.