forked from nikkinikki-org/OpenWrt-nikki
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Mark Glants edited this page Jan 5, 2026
·
1 revision
Plugin Configuration
Configuration Files
Mixin Configuration
Proxy Configuration
Editor
Logs
This section displays the plugin status and provides action buttons.
- Enable: Enable or disable the plugin.
- Select Configuration File: Choose the configuration file to use (local file or subscription).
-
Startup Delay: Delay before the plugin starts after boot (in seconds). Empty or
0means start immediately. - Scheduled Restart & Cron Expression: Restart the service on a schedule, which will restart the core.
- Check Configuration File: Validate the configuration file before starting the core.
- Core Only: Run only the core. When enabled, mixin and proxy features are disabled.
- Fast Reload: Enable fast reload (see explanation).
- Address Space / Heap / Stack Soft & Hard Limits: Memory limits for different memory types.
-
Open File Descriptor Soft & Hard Limits: Adjust if you see
Too many open fileserrors in core logs.
-
Safe Path: Add paths for files used outside the working directory (
/etc/nikki/run). - Disable Loopback Detection: Disable detection and rejection of loopback connections.
- Disable quic-go Generic Segmentation Offload: As described.
- Disable quic-go Explicit Congestion Notification: As described.
- Skip System IPv6 Check: As described.
Upload, download, or delete configuration files.
Configure, manage, and view subscriptions.
- Subscription Name: Must be unique.
- Subscription Info URL: URL for fetching subscription information.
- Subscription URL: URL of the subscription.
- User Agent (UA): User agent used when downloading the subscription.
-
Priority: Prefer remote or local.
- Remote: Always download on startup.
- Local: Use local file if present.
- Update: Manually update the subscription.
- Used / Total / Expiry: Subscription details provided by the server.
- Last Updated: Last update time.
- Local files refer to cached files downloaded from subscriptions, not manually uploaded files.
- The update button only updates the local file and does not reload or restart the service.
- Downloaded subscriptions are validated as YAML and must contain
proxiesorproxy-providers. - If download fails, the local file is used; if it does not exist, startup fails.
- Subscription info is fetched from the info URL first, otherwise from the subscription URL.
| Feature | Module | Config Key |
|---|---|---|
| Redirect | redir-port | |
| TPROXY | tproxy-port | |
| TUN | tun | enable / device |
| DNS Hijacking | dns | enable / listen |
| Fake-IP Ping Hijack | dns | fake-ip-range |
- The plugin reads these configuration values to generate firewall rules.
- UI features depend on
clash_api. Without it, panel features are unavailable.
- Configure mixin options; see the Mihomo Wiki.
- Options can be left empty (select “Do not modify” or clear input).
- Appended proxy nodes and rules are inserted at the top.
Configure the plugin’s proxy behavior.
- Enable: Enable proxy.
- IPv4 / IPv6 DNS Hijacking
- IPv4 / IPv6 Proxy
- Fake-IP Ping Hijacking
-
TCP / UDP Proxy Mode
- TCP: Redirect / TPROXY / TUN
- UDP: TPROXY / TUN
- Enable: Proxy router’s own traffic.
- Access Control: Control by user / group / control group.
- Enable: Proxy LAN traffic.
- Inbound Interface: Configure LAN interfaces.
- Access Control: Control by IP / IPv6 / MAC.
- Enable Rules
- DNS: Hijack DNS for matched traffic.
- Proxy: Proxy matched traffic.
- Other: Traffic matching criteria.
- Columns in the same row are OR’ed.
- Empty fields are ignored.
- If all fields are empty, all traffic matches.
- Traffic not matching any rule is not proxied.
- If no rules exist, no traffic is proxied.
Proxy All
Blacklist Mode
Whitelist Mode
- In whitelist mode, enable/disable rules to control which clients are proxied.
- Combine whitelist and blacklist rules and toggle them to switch modes.
- Bypass Mainland China IPs
-
Proxy TCP/UDP Destination Ports: Space-separated, supports ranges (e.g.
80 443 114-514) - Bypass DSCP
-
Bypass FWMark: Supports masks (e.g.
0xFF00,0x3F00/0xFF00)
- Reserved IP Addresses
- TUN Wait Timeout (seconds)
- TUN Check Interval (seconds)
- Edit uploaded configuration files, subscription cache files, mixin files, and active configuration.
- Edit IPv4 / IPv6 reserved addresses.
- Save: Save file only.
- Save & Apply: Save and reload service.
- Force Apply: Save and restart service.
- View plugin and core logs.
- Clear logs.
- Generate and download debug logs.
- Changing plugin settings triggers a reload.
- If configuration content changes, the core must reload or restart.
- With fast reload enabled, the core reloads without restart.
- Otherwise, the core restarts.
- If the fast reload option itself is changed, the previous value is used.
- Intended for temporary or supplemental rules. For many rules, use files and
proxy-provider. - You can also append via mixin files using
nikki-rulesinstead ofrules.
- If only IPv4 or IPv6 DNS is hijacked, dual-stack queries may cause pollution or routing errors.
Enabling both is recommended unless IPv6 is fully disabled. - Disable Network → DHCP/DNS → DNS Redirect to avoid conflicts.
When enabling IPv6 proxy, also enable:
- Mixin Options → Global → IPv6
- Mixin Options → DNS → IPv6
- By default, the system uses cgroup v2, managed by
procd. - If firmware enables Docker
DOCKER_CGROUP_OPTIONS, cgroup v1 is used and cgroup v2 features break. - Remount cgroup v2 at
/sys/fs/cgroupor uninstallcgroupfs-mountto restore functionality (Docker may be affected). - Prefer moving Docker to another machine or using Podman.
Automatic cleanup by time or size is not yet implemented.
Enable scheduled restarts or increase log level to avoid excessive log size.