Published On Mar 18, 2024
In this guide, I explore using #Caddy as a reverse proxy with Let's Encrypt DNS challenges and #CrowdSec protection via a CrowdSec bouncer. Additionally, CrowdSec will be configured in a multi-server configuration with #OPNsense which has some benefits as mentioned in the guide.
In order to support DNS challenges and CrowdSec, you will have to build a custom Caddy executable. Using Caddy's build tool called xcaddy makes the process easier to accomplish.
Because of the manual build process, this guide will be more involved than simply setting up a basic Caddy web server/reverse proxy.
For a written version of this guide which includes all of the commands used in this video, please visit:
https://homenetworkguy.com/how-to/set...
Chapters:
02:29 Assumptions
04:36 Preparing OPNsense configuration
14:04 Install Go programming language
16:29 Install xcaddy
17:46 Build Caddy to support DNS challenges and CrowdSec bouncer
18:57 Configuring Caddy
27:17 Install and configure CrowdSec agent
36:00 Test access to app
36:47 Test CrowdSec
EP39