### Start the homeproxy service Source: https://github.com/1andrevich/homeproxy-hiddify/blob/master/wiki/Getting-Started-en.md Starts the Re:HomeProxy service manually. The service also auto-starts on boot. ```sh /etc/init.d/homeproxy start ``` -------------------------------- ### Install luci-app-re-homeproxy on OpenWRT 24.10 (opkg) Source: https://github.com/1andrevich/homeproxy-hiddify/blob/master/README.md Downloads the IPK package and installs it with opkg. After installation, use the Core & Tools tab to install components. ```sh wget -O /tmp/luci-app-re-homeproxy.ipk "$(wget -qO- 'https://api.github.com/repos/1andrevich/homeproxy-hiddify/releases' | grep -o 'https://github\.com/[^"]*luci-app-re-homeproxy[^"]*\.ipk' | head -1)" opkg install /tmp/luci-app-re-homeproxy.ipk ``` -------------------------------- ### Install luci-app-re-homeproxy on OpenWRT 25.12+ (APK) Source: https://github.com/1andrevich/homeproxy-hiddify/blob/master/README.md Downloads the public key, installs it to /etc/apk/keys/, downloads the APK package, and installs it. Once the key is in /etc/apk/keys/ it is trusted permanently — no flag needed for future updates. ```sh wget -O /tmp/homeproxy-hiddify.pub https://github.com/1andrevich/homeproxy-hiddify/releases/latest/download/homeproxy-hiddify.pub cp /tmp/homeproxy-hiddify.pub /etc/apk/keys/ wget -O /tmp/luci-app-re-homeproxy.apk "$(wget -qO- 'https://api.github.com/repos/1andrevich/homeproxy-hiddify/releases' | grep -o 'https://github\.com/[^"]*luci-app-re-homeproxy[^"]*\.apk' | head -1)" apk add /tmp/luci-app-re-homeproxy.apk ``` -------------------------------- ### Quick install one-liner Source: https://github.com/1andrevich/homeproxy-hiddify/blob/master/README.md Installs the LuCI app and interactively walks through proxy core and optional ByeDPI/Zapret. Works on APK (25.12+), opkg (24.10), and 23.05 legacy. Run over SSH on the router. ```sh wget -qO- https://raw.githubusercontent.com/1andrevich/homeproxy-hiddify/master/install.sh | sh ``` -------------------------------- ### Install SSL Libraries for wget (HTTPS) Source: https://github.com/1andrevich/homeproxy-hiddify/wiki/Troubleshooting-en Install libustream-openssl and ca-certificates to enable HTTPS support in OpenWRT's wget (uclient-fetch). ```sh opkg update && opkg install libustream-openssl ca-certificates ``` -------------------------------- ### Install Zapret 2 (optional) Source: https://github.com/1andrevich/homeproxy-hiddify/blob/master/README.md Installs Zapret 2, an optional DPI bypass tool. Requires the NFQUEUE kernel module (kmod-nft-queue). ```sh if [ "$EXT" = apk ]; then apk add kmod-nft-queue; else opkg install kmod-nft-queue; fi [ "$EXT" = apk ] && wget -O /etc/apk/keys/zapret2-1andrevich.pub "https://github.com/1andrevich/zapret2-openwrt/releases/latest/download/zapret2-1andrevich.pub" wget -O /tmp/zapret2.$EXT "https://github.com/1andrevich/zapret2-openwrt/releases/latest/download/zapret2_${ARCH}.${EXT}" if [ "$EXT" = apk ]; then apk add /tmp/zapret2.apk; else opkg install /tmp/zapret2.ipk; fi ``` -------------------------------- ### Example Skeleton JSON Config Source: https://github.com/1andrevich/homeproxy-hiddify/wiki/Custom-JSON-Config-en Illustrative sing-box compatible config skeleton for hiddify-core. Adjust inbound type/port, outbound settings, and routing rules to match your setup. ```json { "log": { "level": "info" }, "dns": { "servers": [ { "tag": "remote", "address": "tls://1.1.1.1" }, { "tag": "local", "address": "223.5.5.5", "detour": "direct" } ], "rules": [ { "geosite": "cn", "server": "local" } ] }, "inbounds": [ { "type": "tproxy", "tag": "tproxy-in", "listen": "::", "listen_port": 5332 } ], "outbounds": [ { "type": "vless", "tag": "proxy", "server": "your.server.example", "server_port": 443 }, { "type": "direct", "tag": "direct" }, { "type": "block", "tag": "block" }, { "type": "dns", "tag": "dns-out" } ], "route": { "rules": [ { "protocol": "dns", "outbound": "dns-out" }, { "geosite": "cn", "outbound": "direct" }, { "geoip": "cn", "outbound": "direct" } ], "final": "proxy" } } ``` -------------------------------- ### Example output of hiddify-core version Source: https://github.com/1andrevich/homeproxy-hiddify/wiki/Supported-Protocols-en Example output showing the Tags line with build tags like with_quic, with_wireguard, with_gvisor, and with_naive_outbound. The presence of these tags determines which protocols are available in the node editor. ```text hiddify-core version v2.x.x Tags: with_quic,with_wireguard,with_gvisor,with_naive_outbound,... ``` -------------------------------- ### Example Tags Output Source: https://github.com/1andrevich/homeproxy-hiddify/blob/master/wiki/Supported-Protocols-en.md Example output from the version command showing the Tags line. Protocols requiring a specific tag appear in the node editor only if that tag is present. ```text Tags: with_quic,with_wireguard,with_gvisor,with_naive_outbound,... ``` -------------------------------- ### Install proxy core (hiddify-core or sing-box-extended) Source: https://github.com/1andrevich/homeproxy-hiddify/blob/master/README.md Installs kernel modules and either hiddify-core (default) or sing-box-extended. hiddify-core is signed with homeproxy-hiddify.pub; sing-box-extended is unsigned and requires --allow-untrusted. For a compact hiddify-core build, replace 'latest/download' with 'download/upx'. ```sh if [ "$EXT" = apk ]; then apk add kmod-nft-tproxy kmod-tun; else opkg install kmod-nft-tproxy kmod-tun; fi # hiddify-core (default; for a compact build replace 'latest/download' with 'download/upx') wget -O /tmp/hiddify-core.$EXT "https://github.com/1andrevich/hiddify-core/releases/latest/download/hiddify-core_${ARCH}.${EXT}" if [ "$EXT" = apk ]; then apk add /tmp/hiddify-core.apk; else opkg install --force-reinstall /tmp/hiddify-core.ipk; fi # ...OR sing-box-extended (AmneziaWG / WARP, widest protocol set; unsigned) URL=$(wget -qO- 'https://api.github.com/repos/shtorm-7/sing-box-extended/releases/latest' | grep -o "https://github\.com/[^"]*${ARCH}[^"]*\.${EXT}" | head -1) wget -O /tmp/sing-box-extended.$EXT "$URL" if [ "$EXT" = apk ]; then apk add --allow-untrusted /tmp/sing-box-extended.apk; else opkg install /tmp/sing-box-extended.ipk; fi ``` -------------------------------- ### Restart rpcd to Fix 'Object not found' Error Source: https://github.com/1andrevich/homeproxy-hiddify/wiki/Troubleshooting-en Restart the rpcd service to reload the luci.homeproxy module after installation or upgrade. A fresh login is required afterward. ```sh /etc/init.d/rpcd restart ``` -------------------------------- ### Install ByeDPI (optional) Source: https://github.com/1andrevich/homeproxy-hiddify/blob/master/README.md Installs ByeDPI, an optional DPI bypass tool. Requires curl for its built-in strategy tester. ```sh if [ "$EXT" = apk ]; then apk add curl; else opkg install curl; fi URL=$(wget -qO- 'https://api.github.com/repos/1andrevich/ByeDPI-OpenWrt/releases/latest' | grep -o "https://github\.com/[^"]*byedpi_[^"]*${ARCH}\.${EXT}" | head -1) wget -O /tmp/byedpi.$EXT "$URL" if [ "$EXT" = apk ]; then apk add /tmp/byedpi.apk; else opkg install /tmp/byedpi.ipk; fi ``` -------------------------------- ### Detect architecture and package format Source: https://github.com/1andrevich/homeproxy-hiddify/blob/master/README.md Detects the OpenWrt architecture and package format (apk or ipk) for manual installation. Sets ARCH and EXT variables used by subsequent install commands. ```sh . /etc/openwrt_release; ARCH="$DISTRIB_ARCH" command -v apk >/dev/null && EXT=apk || EXT=ipk echo "$ARCH / $EXT" ``` -------------------------------- ### Quick install with GitHub mirror Source: https://github.com/1andrevich/homeproxy-hiddify/blob/master/README.md Pass a mirror when GitHub is blocked or throttled. Note: the GH_MIRROR env var goes on `sh`, not `wget`. ```sh wget -qO- https://raw.githubusercontent.com/1andrevich/homeproxy-hiddify/master/install.sh | GH_MIRROR=https://your.mirror sh ``` -------------------------------- ### Verify Firewall Rule for mwan3 Conflict Source: https://github.com/1andrevich/homeproxy-hiddify/wiki/Troubleshooting-en Check that the 0x64 mark rule is active as line 1 in the OUTPUT chain. ```sh iptables -t mangle -L OUTPUT -n --line-numbers | head -5 ``` -------------------------------- ### Run Subscription Update Script Manually Source: https://github.com/1andrevich/homeproxy-hiddify/wiki/Troubleshooting-en Execute the subscription update script over SSH to check for errors when the button does nothing. ```sh ucode /etc/homeproxy/scripts/update_subscriptions.uc ``` -------------------------------- ### Configure Firewall Rule to Skip mwan3 for HomeProxy Traffic Source: https://github.com/1andrevich/homeproxy-hiddify/wiki/Troubleshooting-en Add a persistent firewall include that returns traffic marked 0x64 to bypass mwan3 routing. Includes creating the script and reloading the firewall. ```sh uci add firewall include uci set firewall.@include[-1].path='/etc/firewall.d/homeproxy-mwan3' uci set firewall.@include[-1].type='script' uci set firewall.@include[-1].reload='1' uci commit firewall mkdir -p /etc/firewall.d cat > /etc/firewall.d/homeproxy-mwan3 << 'EOF' #!/bin/sh iptables -t mangle -I OUTPUT 1 -m mark --mark 0x64/0x64 -j RETURN EOF chmod +x /etc/firewall.d/homeproxy-mwan3 /etc/init.d/firewall reload ``` -------------------------------- ### Check Build Support with sing-box version Source: https://github.com/1andrevich/homeproxy-hiddify/blob/master/wiki/Supported-Protocols-en.md Run this command to see the build tags for sing-box-extended. The Tags line indicates which protocols are supported. ```sh sing-box version # if you run sing-box-extended ``` -------------------------------- ### Check build tags with hiddify-core version Source: https://github.com/1andrevich/homeproxy-hiddify/wiki/Supported-Protocols-en Run this command to see the build tags of your hiddify-core binary. The Tags line indicates which protocols are available; protocols requiring a specific tag only appear in the node editor if that tag is present. ```sh hiddify-core version ``` -------------------------------- ### Route default_mark configuration Source: https://github.com/1andrevich/homeproxy-hiddify/wiki/Custom-JSON-Config-en Required in the route section to prevent tproxy routing loops. The value must match self_mark in /etc/config/homeproxy (default: 100). ```json "route": { "default_mark": 100, ... } ``` -------------------------------- ### Default inbound configuration Source: https://github.com/1andrevich/homeproxy-hiddify/wiki/Custom-JSON-Config-en HomeProxy's default inbound ports and settings. Changing these ports requires updating both the custom JSON and /etc/config/homeproxy options to keep firewall rules in sync. ```json "inbounds": [ { "type": "direct", "tag": "dns-in", "listen": "::", "listen_port": 5333 }, { "type": "mixed", "tag": "mixed-in", "listen": "::", "listen_port": 5330, "udp_timeout": "300s", "sniff": true, "sniff_override_destination": true, "set_system_proxy": false }, { "type": "redirect", "tag": "redirect-in", "listen": "::", "listen_port": 5331, "sniff": true, "sniff_override_destination": true }, { "type": "tproxy", "tag": "tproxy-in", "listen": "::", "listen_port": 5332, "network": "udp", "udp_timeout": "300s", "sniff": true, "sniff_override_destination": true } ] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.