Skip to content

Instantly share code, notes, and snippets.

Last active Jan 2, 2020
What would you like to do?
Red Team Nginx Sample Config
user nginx;
worker_processes auto;
pid /usr/local/nginx/logs/;
include /etc/nginx/conf.d/*.conf;
worker_rlimit_nofile 50000;
events {
worker_connections 50000;
stream {
server {
listen 53 udp;
proxy_pass; #DNS callback server
http {
include mime.types;
default_type application/octet-stream;
index index.html index.php
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
sendfile on;
tcp_nopush on;
keepalive_timeout 30;
gzip on;
client_max_body_size 100M;
#repeat this section block for each callback domain
upstream upstreamroute1 {
server backup; #content server
server; #LP
server {
listen; #or bind globally
listen ssl;
ssl_certificate /etc/letsencrypt/live/;
ssl_certificate_key /etc/letsencrypt/live/;
location / {
proxy_set_header Host $host;
proxy_set_header Relay $remote_addr;
proxy_pass http://upstreamroute1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment