Domain Fronting

Host: custom CDN, DEST: frontable domain's IP ; shell connection looks like calling to custom CDN with frontable domain's IP but it is point to custom origin hostname ip by the custom CDN

  1. setup custom CDN endpoint & custom origin hostname that listener host hosting the web ser

cust. origin hostname ser
sudo python3 -m http.server 80
ser to handle https
from http.server import HTTPServer, SimpleHTTPRequestHandler
import ssl
import socketserver

httpd = socketserver.TCPServer(('138.68.99.177', 443), SimpleHTTPRequestHandler)

httpd.socket = ssl.wrap_socket(httpd.socket, 
        keyfile="key.pem", 
        certfile='cert.pem', server_side=True)

httpd.serve_forever()

the CDN fetch the custom origin hostname web ser

  1. check if it is fetching custom server content from the host that host the custom origin hostname web set in 1. (same as 1. end results)

no return = failed
  1. configure listener on VM that hosting the 1. custom origin hostname web

when it is actually connecting to the custom origin hostname server directed by the CDN

Last updated