What is sniproxy and how does it work?
mastersniproxy is an SNI proxy with a built-in DNS server. It allows you to selectively proxy traffic for specific domains through a server without a full VPN.
Workflow:
- DNS Interception: A client sends a DNS query for a domain (e.g.,
example.com). - ACL Check: sniproxy checks the domain against its Access Control List (ACL) rules.
- DNS Response: If the domain is in the ACL, sniproxy responds with its own public IP. If not, it forwards the query upstream to return the real IP.
- Connection Proxying: When the client connects to sniproxy on port 443 (TLS) or 80 (HTTP), sniproxy reads the SNI (Server Name Indication) or the Host header, connects to the real destination server, and pipes the traffic bi-directionally.