Proxye is a lightweight HTTP proxy for .NET designed to redirect requests matching regex patterns to a SOCKS5 proxy (with potential Shadowsocks support in future versions)
- Working as HTTP-proxy
- Traffic filtering via regex matching
- Easy integrated in ASP.NET Core projects
- Built-in DNS proxy with DNS over HTTPS (DoH) tunneling for secure name resolution
Follow these steps to set up Proxye in your project:
Run this in your terminal or Package Manager Console:
dotnet add package Proxye --version 0.1.0Here's a basic example to get you started:
builder.Services.AddProxye(o =>
{
// DNS configuration
o.Dns = new DnsOptions
{
BaseTtl = 3600,
Url = "https://dns.google/resolve"
};
o.EnableDns = true; // enable DNS tunneling
o.DnsPort = 52; // DNS listener port
// Proxy server configuration
o.Port = 9567; // proxy listening port
o.Rules = new ProxyeRuleOptions
{
Regex = ".*(google|youtube).*", // domains which be redirected to socks5
Host = "127.0.0.1", // socks5 host
Port = 1080 // socks5 port
};
});Start your project, and the proxy server will be ready to route requests based on your rules! 🚥
Proxye is currently in early stages of development. 💡 This means it is still under active development, and some features may be unstable or incomplete. Your feedback is highly appreciated to help improve and stabilize the project