Skip to content

Instantly share code, notes, and snippets.

View jasonfdriskill's full-sized avatar

Jason Driskill jasonfdriskill

  • Southwestern College
  • California
View GitHub Profile
@jasonfdriskill
jasonfdriskill / cloudflare-only
Last active November 19, 2023 13:47
Http Server Iptables Config Cloudflare Only
#!/bin/bash
#
# Usage:
# Only once setup:
# $ iptables -N cloudflare-only && \
# ip6tables -N cloudflare-only
# Then insert into INPUT chain:
# $ iptables -I INPUT [some-line] -p tcp -m multiport --dports http,https -j cloudflare-only && \
# ip6tables -I INPUT [some-line] -p tcp -m multiport --dports http,https -j cloudflare-only