Quick Start
TurkeyDPI provides a simple command-line interface to bypass DPI-based censorship in Turkey. The easiest way to get started is with thebypass command.
Start the bypass proxy
Run TurkeyDPI with the default aggressive preset:This starts a SOCKS proxy on
127.0.0.1:8844 using the aggressive preset (recommended for most users).Configure your system proxy
Set your system’s HTTP/HTTPS proxy to:
- macOS
- Windows
- Linux
System Preferences → Network → Advanced → Proxies → SOCKS Proxy
- Server:
127.0.0.1 - Port:
8844
CLI Commands
TurkeyDPI offers several commands for different use cases.bypass
Quick bypass mode - starts a SOCKS proxy with pre-configured ISP settings.Options
Options
| Flag | Description | Default |
|---|---|---|
-l, --listen <ADDRESS> | Listen address for the proxy | 127.0.0.1:8844 |
-p, --preset <PRESET> | ISP preset configuration | aggressive |
-v, --verbose | Enable verbose logging | false |
run
Advanced mode - runs the full engine with custom configuration.Options
Options
| Flag | Description | Default |
|---|---|---|
--proxy | Enable proxy backend | false |
--listen <ADDRESS> | Listen address | 127.0.0.1:1080 |
-c, --config <FILE> | Configuration file path | None |
--log-level <LEVEL> | Log level (trace, debug, info, warn, error) | info |
--json-logs | Output logs in JSON format | false |
--socket <PATH> | Unix socket for control server | /tmp/turkeydpi.sock |
Control Commands
When running in daemon mode withturkeydpi run, you can control the engine using these commands:
- status
- health
- stats
- reload
Check the current status of the engine:Output:
Utility Commands
gen-config
gen-config
Generate an example configuration file:Generate JSON format:
validate
validate
Validate a configuration file:Output:
reset-stats
reset-stats
Reset all statistics counters:
Common Use Cases
For Discord
127.0.0.1:8844.
For Twitter/X
Use the same approach as Discord:For Testing Different ISPs
If one preset doesn’t work, try others:Tip: Start with the
aggressive preset. It works for most users and ISPs. Only switch to ISP-specific presets if you experience issues.Troubleshooting
Proxy not working
-
Check if TurkeyDPI is running:
-
Enable verbose logging:
This shows detailed information about each connection.
- Try a different preset: Different ISPs use different DPI techniques. See ISP Presets.
-
Verify system proxy settings:
Ensure your system proxy is set to
127.0.0.1:8844(or your custom port).
High latency
Some presets add artificial delays to evade DPI buffering. If you experience high latency:Connection drops
If connections drop frequently:-
Check stats for errors:
Look for high error counts.
-
Increase fragment size:
Edit your configuration file and adjust
transforms.fragment.max_size. -
Disable jitter:
Set
global.enable_jitter = falsein your config.
Next Steps
ISP Presets
Learn about preset configurations for different Turkish ISPs
Configuration
Customize TurkeyDPI with advanced configuration options
macOS App
Use the native macOS menu bar application