### IPTABLES Configuration Example Source: https://github.com/epidnkkeu/mihomo/blob/Alpha/README.md An example configuration snippet for enabling the TPROXY listener and setting the inbound interface for iptables integration on Linux systems. ```yaml # Enable the TPROXY listener tproxy-port: 9898 iptables: enable: true # default is false inbound-interface: eth0 # detect the inbound interface, default is 'lo' ``` -------------------------------- ### Build mihomo from Source Source: https://github.com/epidnkkeu/mihomo/blob/Alpha/README.md Instructions for cloning the repository, downloading dependencies, and building the mihomo executable. It also includes setting a Go proxy if needed. ```shell git clone https://github.com/MetaCubeX/mihomo.git cd mihomo && go mod download go build ``` ```shell # Set go proxy if a connection to GitHub is not possible: go env -w GOPROXY=https://goproxy.io,direct ``` ```shell # Build with gvisor tun stack: go build -tags with_gvisor ``` -------------------------------- ### mihomo HTTP RESTful API Controller Source: https://github.com/epidnkkeu/mihomo/blob/Alpha/README.md The mihomo project provides a comprehensive HTTP RESTful API controller for managing its functionalities. Detailed API documentation, including debug endpoints, can be found in the project's wiki. ```apidoc mihomo API Controller: Description: Manages mihomo proxy configurations and operations via HTTP requests. Base URL: Typically localhost or the server's IP address on a configured port. Endpoints: - /config: Manage configuration files (get, set, reload). - /connections: View active connections. - /dns: DNS query information. - /proxies: Manage proxy nodes and groups. - /rules: Manage routing rules. - /sub: Subscription management. - /version: Get mihomo version information. - /debug: Access debugging information and tools (refer to wiki for specific debug endpoints). Related Documentation: - Debug API: https://wiki.metacubex.one/api/#debug - General API Reference: https://wiki.metacubex.one/api/ ``` -------------------------------- ### Run Mihomo Test Suite Source: https://github.com/epidnkkeu/mihomo/blob/Alpha/test/README.md Executes the comprehensive test suite for the Mihomo project. This command is used to verify the functionality and stability of various protocol implementations within the suit. ```shell $ make test ``` -------------------------------- ### Run Mihomo Benchmark (Linux) Source: https://github.com/epidnkkeu/mihomo/blob/Alpha/test/README.md Initiates the benchmark process for Mihomo on Linux systems to measure protocol throughput. Users can adjust the `chunkSize` parameter to determine the maximum throughput of mihomo on their machine. ```shell $ make benchmark ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.