Forward Proxy
Forward proxy is the default mode. Clients send their traffic to Proxelar, which forwards it to the destination server. This is the standard setup for inspecting browser or application traffic.
Usage
proxelar
Configure your client (browser, curl, application) to use 127.0.0.1:8080 as the HTTP/HTTPS proxy.
How it works
- The client sends a request to the proxy
- For HTTPS, the client sends a
CONNECTrequest. Proxelar upgrades the connection and detects the protocol:- TLS ClientHello — generates a leaf certificate for the target host, terminates TLS, and inspects the decrypted traffic
- Plain HTTP (e.g.,
GETprefix) — serves the stream directly - Unknown protocol — tunnels the raw TCP connection without inspection
- For plain HTTP, the request is forwarded directly
- Lua
on_request/on_responsehooks run at each step (if a script is loaded)
Examples
# Start forward proxy on default port
proxelar
# Custom port and bind address
proxelar -p 9090 -b 0.0.0.0
# With terminal output instead of TUI
proxelar -i terminal
# With a Lua script
proxelar --script block_ads.lua
# Test with curl
curl -x http://127.0.0.1:8080 http://httpbin.org/get
curl -x http://127.0.0.1:8080 https://httpbin.org/get