Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
UA3F — Transparent HTTP(S) rewriting proxy supporting HTTP, SOCKS5, TPROXY, REDIRECT and NFQUEUE modes with HTTPS MitM, rule-based header/body rewriting and DPI desync. | Kitploit
Tools/GitHubGitHub/sunbk201/ua3f
Packet Sniffing & AnalysisNetwork MappingWeb Proxies & InterceptionWeb SecurityNetwork SecurityPrivacyUtilities & FrameworksAnti-Bot
GitHubsunbk201/ua3f

UA3F

Transparent HTTP(S) rewriting proxy supporting HTTP, SOCKS5, TPROXY, REDIRECT and NFQUEUE modes with HTTPS MitM, rule-based header/body rewriting and DPI desync.

View Repository
68937822 days agoReviewed by Kitploit
Website

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

UA3F

Release CodeQL License GitHub Downloads (all assets, all releases) Telegram group

UA3F

English | 简体中文

UA3F is an HTTP(S) rewriting proxy that transparently rewrites HTTP(S) (e.g., User-Agent) as an HTTP, SOCKS5, TPROXY, REDIRECT, or NFQUEUE server.

  • Supports bidirectional rewriting of HTTP(S) Headers and Body
  • Supports HTTP(S) URL redirection: 302, 307, Header
  • Supports HTTPS MitM traffic decryption and rewriting
  • Multiple server modes: HTTP, SOCKS5, TPROXY, REDIRECT, NFQUEUE(UA2F)
  • Highly flexible rewriting rule system with multiple rule types and rewriting strategies
  • Real-time statistics dashboard with traffic modification monitoring and analysis
  • Multiple deployment options: opkg installation, compilation, and Docker deployment
  • Compatible with Clash Fake-IP & Redir-Host modes for coexistence
  • Supports L3 rewriting: TTL, IPID, TCP Timestamp, TCP Window
  • Supports Desync fragment reordering and obfuscation to evade Deep Packet Inspection (DPI)
  • Supports eBPF offloading for accelerated forwarding performance

Installation

Multiple installation methods are available:

  • Binary Files and Packages

    Pre-compiled binaries and opkg/apk packages for common architectures are available on the Release page. Download the appropriate package for your platform and install it directly.

  • Docker Deployment:

    Run as a SOCKS5 proxy:

    docker run -p 1080:1080 sunbk201/ua3f -f FFF
    
  • Source Compilation:

    Build UA3F binary:

    git clone https://github.com/SunBK201/UA3F.git && cd UA3F
    go build -o ua3f main.go
    

    OpenWrt Compilation:

    git clone https://github.com/openwrt/openwrt.git && cd openwrt
    git checkout openwrt-24.10
    ./scripts/feeds update -a && ./scripts/feeds install -a
    git clone https://github.com/SunBK201/UA3F.git package/UA3F
    make menuconfig # Select Network->Web Servers/Proxies->ua3f
    make download -j$(nproc) V=s
    make -j$(nproc) || make -j1 || make -j1 V=sc
    # make package/UA3F/openwrt/compile -j1 V=sc # Compile single UA3F package
    

Usage

Detailed documentation is available at UA3F

Command Line Usage

Start UA3F with default configuration:

ua3f

Start with a specified configuration file:

ua3f -c /path/to/config.yaml

Generate a template configuration file:

ua3f -g

For detailed CLI parameters, see Configuration. For configuration examples, see Configuration Examples.

OpenWrt LuCI Web Interface

UA3F supports OpenWrt LuCI Web interface. Navigate to Services -> UA3F for configuration.

For detailed tutorial, please visit: UA3F User Guide

Manual Command Line Launch
opkg install sudo
sudo -u nobody /usr/bin/ua3f

For shellclash/shellcrash users, use the following command:

sudo -u shellclash /usr/bin/ua3f
# If the above command fails, use this one
sudo -u shellcrash /usr/bin/ua3f

Command line parameters:

  • -c <config path>: Custom configuration file path
  • -g: Generate a template configuration file config.yaml in the current directory
  • -m <mode>: Server mode. Supports HTTP, SOCKS5, TPROXY, REDIRECT. Default: SOCKS5
  • -b <bind addr>: Custom bind address. Default: 127.0.0.1
  • -p <port>: Port number. Default: 1080
  • -l <log level>: Log level. Default: info. Options: debug. Default log location: /var/log/ua3f.log
  • -x: Rewrite mode. Supports GLOBAL, DIRECT, RULE. Default: GLOBAL
  • -f <UA>: Custom User-Agent. Default: FFF
  • -r <regex>: Custom regex to match User-Agent. Default: empty (all User-Agents will be rewritten)
  • -s: Partial replacement, only replace the regex matched portion
  • -z: Rewrite rules in JSON string format. Only effective in RULE rewrite mode

API Server

UA3F includes a built-in API Server controller that provides query and control interfaces for UA3F runtime status, configuration rules, and more. Enable it with the --api-server parameter:

ua3f --api-server <addr:port>

API documentation: UA3F API Documentation

Server Mode Description

UA3F supports 5 different server modes, each with unique characteristics:

Server ModeWorking PrincipleClash DependencyCompatibilityCoexist with Clash
HTTPHTTP ProxyYesHighYes
SOCKS5SOCKS5 ProxyYesHighYes
TPROXYnetfilter TPROXYNoMediumYes
REDIRECTnetfilter REDIRECTNoMediumYes
NFQUEUEnetfilter NFQUEUENoLowYes

Rewrite Strategy Description

UA3F supports 3 different rewrite strategies:

Rewrite StrategyRewrite BehaviorRewrite HeadersApplicable Modes
GLOBALRewrite all requestsUser-AgentAll server modes
DIRECTNo rewriting, pure forwardingNoneAll server modes
RULERewrite based on rewriting rulesCustomizableHTTP/SOCKS5/TPROXY/REDIRECT

Rule Types:

Rule TypeDescription
DOMAINMatch based on domain name
DOMAIN-SUFFIXMatch based on domain suffix
DOMAIN-KEYWORDMatch based on domain keyword
DOMAIN-SETMatch based on a set of domain names
IP-CIDRMatch based on IP address range
SRC-IPMatch based on source IP address
DST-PORTMatch based on destination port
HEADER-KEYWORDMatch based on request header keyword
HEADER-REGEXMatch using regular expression on request headers
URL-REGEXMatch using regular expression on request URL

Rewrite Actions:

Download Tool