Git Product home page Git Product logo

docker_squid_clamav's Introduction

docker_squid_clamav

Description

This is to deploy Squid Proxy in a DMZ environment. It uses SSLBump to decrypt HTTPS traffic and ClamAV to detect for malicious files.

The Dockerfile is designed to pull the code from Github and build the latest tag. This is to help ease updating with the drawback of potential build and compatability issues.

Currently configured to only server error pages in English, edit in squid.conf.

TODO

Currently everything runs as root, to change to run as local user
Some of the folders are set to 777 to just skip access rights issues, to resolve those

Components

Base Image is fedora:40

Builds and install the following

Usage

Build the Docker Image Using

docker build -t squidWithAV .

Run the docker image

docker run -p 3128:3128 --name squidWithAV --rm squidWithAV

SSLBump uses a self generated certificate, to use own CA/Intermediate CA, mount /etc/squid/ssl_cert with your own certificates

docker run -p 3128:3128 --name squidWithAVOwnCert -v ./certs:/etc/squid/ssl_cert --rm squidWithAVOwnCert

Save Log Files to Disk, mount /tmp/logFiles

docker run -p 3128:3128 --name squidWithAVLogFiles -v ./logFiles:/tmp/logFiles --rm squidWithAVLogFiles

Debugging Command

Spawn the container with entrypoint /bin/bash

Run clamd

clamd

Run Squid

/usr/local/squid/sbin/squid -f /tmp/squid.conf -NCd1

Run c-icap in foreground with max debug

/usr/local/bin/c-icap -f /usr/local/etc/c-icap.conf -N -D -d 10 -S

docker_squid_clamav's People

Contributors

ben12385 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.