Original | Chinese
META is a JavaScript-based script that simplifies and optimizes the configuration of the Multi-function network tool — a cross-platform, rule-based utility for managing network and application traffic. It provides extensive support for advanced features and custom configurations.
So, what exactly does the Multi-functional network tool refer to? Well, if you are asking this question, this repository may not be for you because you probably don’t need the Multi-function network tool at all.
-
Dynamic Service and Location Management
- Service Configuration: Easily manage a diverse range of services with customizable icons and aliases. Services are defined using a flexible structure, enabling swift updates and seamless additions to accommodate evolving requirements.
- Location-Based Policies: Implement granular, location-specific rules and icons, supporting a comprehensive list of countries and regions. This feature allows for precise traffic management tailored to geographic locations, enhancing both performance and user experience.
-
Advanced Proxy Group Management
- Custom Proxy Groups: Create and manage proxy groups with a variety of strategies such as
select
,url-test
,fallback
, andload-balance
. This flexibility ensures optimized routing and robust failover mechanisms, enhancing network reliability. - Service and Location Proxy Groups: Automatically generate proxy groups for each service and location, ensuring traffic is efficiently routed through the most appropriate channels based on predefined policies.
- Custom Proxy Groups: Create and manage proxy groups with a variety of strategies such as
-
Comprehensive DNS Configuration
- Enhanced DNS Settings: Supports both Chinese and international nameservers with robust options for DNS over HTTPS (DoH) and DNS over QUIC (DoQ), significantly improving privacy and security. Easily switch between different DNS providers to optimize performance and reliability.
- Fake IP Mode: Utilize customizable fake IP ranges to enhance user privacy and prevent DNS leaks. The system includes advanced filtering capabilities to exclude specific domains, ensuring that only trusted traffic is managed through fake IPs.
- Dynamic Nameserver Policies: Implement sophisticated nameserver policies that adapt based on rulesets and geolocation, providing intelligent DNS resolution tailored to your network's needs.
-
Robust Rule Management
- Integration with MRS Format Rulesets: Seamlessly integrates with our meticulously designed rulesets for META. The compact MRS format ensures efficient matching and enhanced performance.
- Service-Specific Rules: Automatically generate and manage rules for each service, ensuring that traffic is consistently routed according to predefined policies and enhancing overall network control.
- Dynamic Rule Providers: Integrate with external rule providers to keep your configuration up-to-date with the latest domain and IP rules. This ensures that your network remains resilient against emerging threats and changes.
-
Flexible Configuration Options
- Comprehensive General Configuration: Customize global settings such as logging levels, LAN access control, and IPv6 support. These foundational settings allow you to tailor the tool to fit a wide range of network environments and requirements.
- TUN and Sniffer Support: Enable TUN mode for advanced routing capabilities and domain sniffing for enhanced traffic analysis. These features provide deeper insights and greater control over network traffic.
-
Error Handling and Validation
- Built-in Configuration Validation: Utilize built-in validation functions to ensure that configurations are correct and complete before application. This reduces the risk of errors and ensures smooth deployment.
- Detailed Error Reporting: Receive clear and informative error messages to assist in troubleshooting and configuration adjustments, making it easier to maintain a stable and efficient network setup.
-
Extensible and Customizable
- Open Source and Community-Driven: As an public repository, META encourages community contributions and customization. Users can tailor the tool to their specific requirements, fostering a collaborative and innovative development environment.
- Modular Design Architecture: The codebase is structured for easy integration of new features and services. This modularity ensures that the tool can adapt to future needs and incorporate the latest advancements in network management.
-
Optimized Performance and Security
- Efficient Resource Utilization: Designed to optimize system resources, ensuring minimal impact on performance while providing robust network management capabilities.
- Enhanced Security Protocols: Incorporates advanced security measures to protect against DNS vulnerabilities, unauthorized access, and other potential threats, ensuring a secure networking environment.
By leveraging these key features, META delivers a powerful, flexible, and secure network management solution tailored to meet the diverse needs of its users.
A demo that use META to generate a configuration for the Multi-function network tool is available at 👉 https://github.com/user-attachments/assets/834e050e-a3c7-4b29-b366-1d5a80da90ce 👈.
Choose one of the following URLs to import the META:
Follow these steps to use META:
Start with a valid configuration file of the Multi-function network tool containing at least one proxy or proxy provider, typically generated by importing a subscription URL into your client.
-
For M.P.:
- Go to "Override" in the sidebar.
- Import the META via one of the accessible URLs above.
- Click the three dots on the script's card, click "Edit File", edit and save the script, if needed.
-
For C.V.:
- Navigate to the "Profiles" page.
- Visit one of the above URLs, select all, and copy to get the current META content.
- Add META content to the editor opened by double-clicking the "Global Extend Script" card.
- Edit before saving if needed.
- For M.P., click the three dots on the script's card, click "Edit Info", turn on the "Globally Enabled" option, and save.
- For C.V., click "Reactivate Profiles" button in the upper right side of the window.
Check the client's "Execution Log" or "Script Console" to ensure that the META executed successfully to generate the new configuration:
- If your base configuration is correct, it will output the number of identified proxies and proxy providers, and the generated configuration in JSON format.
- If there are errors, correct your basic configuration according to the error and the URL in the output.
For other clients, please refer to the official documentation of the corresponding clients.
META is highly customizable. Below are some key areas you can modify:
Change the BASE_ICON_SET_URL
or LOCATION_ICON_SET_URL
constants to use a different icon set.
Modify the services
array to add or remove services:
name
: Service name.icon
: URL of the service icon.alias
: Must be set to the rule set file name when inconsistent with the name.
Customize the locations
array to define geographical locations:
name
: Location name.icon
: URL of the location icon.filter
: Regex pattern for matching.
Adjust generalConfig
object, for example:
allow-lan
: Set totrue
for LAN access.log-level
: Set logging level (silent
,error
,warning
,info
,debug
).ipv6
: Enable/disable IPv6 support.
Modify the dns
object to change nameservers and DNS policies.
Add custom hosts in the hosts
object.
Enable and configure domain sniffing in the sniffer
object.
Customize TUN settings in the tun
object.
Customize the proxyGroups
array to set proxy strategy according to actual needs.
Customize the rules
array for traffic management.
Add custom rule providers in the ruleProviders
object.
It is strongly recommended to refer to the official documentation of the Multi-function network tool when customizing META, especially the areas marked "be cautious".
- A valid configuration file with at least one proxy or proxy provider defined.
- A compatible client that supports JavaScript overrides.
- This repository is strictly for educational and research purposes.
- Use at your own risk. The repository assumes no responsibility for potential issues.
- No guarantee of accuracy, completeness, or reliability.
- Not liable for data loss or damages.
- Ensure compliance with relevant licenses and legal regulations.
- No endorsement of third-party hardware/software.
- User modifications are their own responsibility.
- Terms may change at any time. By using this repository, you agree to these terms.
Copyright © 2024 Xi Xu. All rights reserved.
Licensed under the GPL-3.0 license.