Initial commit: Caddy SIP Guardian module
Layer 4 SIP protection with: - SIP traffic matching (REGISTER, INVITE, etc.) - Rate limiting and automatic IP banning - Attack pattern detection (sipvicious, friendly-scanner) - CIDR whitelisting - Admin API for ban management
This commit is contained in:
commit
1ba05e160c
12 changed files with 1888 additions and 0 deletions
23
Dockerfile
Normal file
23
Dockerfile
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Build custom Caddy with SIP Guardian, Layer 4, Rate Limiting, and Docker Proxy
|
||||
FROM caddy:2.8-builder AS builder
|
||||
|
||||
RUN xcaddy build \
|
||||
--with github.com/lucaslorentz/caddy-docker-proxy/v2 \
|
||||
--with github.com/mholt/caddy-l4 \
|
||||
--with github.com/mholt/caddy-ratelimit \
|
||||
--with github.com/ryanmalloy/caddy-sip-guardian
|
||||
|
||||
FROM caddy:2.8-alpine
|
||||
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD wget -qO- http://localhost:2019/config/ || exit 1
|
||||
|
||||
EXPOSE 80 443 443/udp 5060 5060/udp 5061
|
||||
|
||||
ENTRYPOINT ["caddy"]
|
||||
# Default: docker-proxy mode (reads Docker labels)
|
||||
# Override with explicit Caddyfile if needed
|
||||
CMD ["docker-proxy"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue