Skip to content

Route applications network traffic with CloudFlare Access header over proxy

Notifications You must be signed in to change notification settings

kaganisildak/CFAP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

CFAP

Routing applications network traffic with CloudFlare Access header over proxy

Problem

I could not find a way for specific applications to access websites controlled by CloudFlare Access.

Example : Github Actions Runner can't authenticate with a GHE server that's behind CloudFlare Access

Requirements

Steps

  • Get Cloudflare Access Token and save to token.conf
    cloudflared access login https://git.company.com
  • Modify target URL on CFAP.py
  • Start mitmproxy with CFAP Plugin
    sudo ./mitmweb -s CFAP.py
  • Use proxychains with which app need access the app
    proxychains4 ./config.sh --url https://git.company.com/enterprises/company --token LAPSEKİLİTAYFUR

Note : You can use system environments to set proxy for other apps but i couldn't route the f**** runner traffic over proxy with system environments so i created this repo to helping other fellas.

If there is an easier way to do this and I haven't found it in the cloudflare documentation, please let me know and let me curse myself for the time I wasted on it.

@kaganisildak

About

Route applications network traffic with CloudFlare Access header over proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages