新增调试信息
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
FROM alpine:latest
|
||||
ENV CONFIG='https://raw.githubusercontent.com/ircfspace/warpsub/main/export/warp#WARP%20(IRCF)'
|
||||
ENV VERSION=v3.1.7
|
||||
WORKDIR /hiddify
|
||||
RUN apk add curl tar gzip libc6-compat # iptables ip6tables
|
||||
|
||||
RUN echo "architecture: $(apk --print-arch)" && \
|
||||
case "$(apk --print-arch)" in \
|
||||
x86_64) ARCH=amd64 ;; \
|
||||
i386|x86) ARCH=386 ;; \
|
||||
aarch64) ARCH=arm64 ;; \
|
||||
armv7) ARCH=armv7 ;; \
|
||||
armv6|armhf) ARCH=armv6 ;; \
|
||||
armv5) ARCH=armv5 ;; \
|
||||
s390x) ARCH=s390x ;; \
|
||||
*) echo "Unsupported architecture: $(apk --print-arch) $(uname -m)" && exit 1 ;; \
|
||||
esac && \
|
||||
echo "Downloading https://github.com/hiddify/hiddify-core/releases/download/${VERSION}/hiddify-cli-linux-$ARCH.tar.gz" && \
|
||||
curl -L -o hiddify-cli.tar.gz https://github.com/hiddify/hiddify-core/releases/download/${VERSION}/hiddify-cli-linux-$ARCH.tar.gz && \
|
||||
tar -xzf hiddify-cli.tar.gz && rm hiddify-cli.tar.gz
|
||||
COPY hiddify.sh .
|
||||
RUN chmod +x hiddify.sh
|
||||
|
||||
EXPOSE 12334
|
||||
EXPOSE 12335
|
||||
EXPOSE 16756
|
||||
EXPOSE 16450
|
||||
|
||||
|
||||
ENTRYPOINT [ "/hiddify/hiddify.sh" ]
|
||||
@@ -0,0 +1,11 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
hiddify:
|
||||
image: ghcr.io/hiddify/hiddify-core:latest
|
||||
network_mode: host
|
||||
environment:
|
||||
CONFIG: "https://github.com/hiddify/hiddify-next/raw/refs/heads/main/test.configs/warp"
|
||||
volumes:
|
||||
- ./hiddify.json:/hiddify/hiddify.json
|
||||
command: ["/opt/hiddify.sh"]
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"region":"other",
|
||||
"service-mode": "proxy",
|
||||
"log-level": "info",
|
||||
"resolve-destination": true,
|
||||
"ipv6-mode": "prefer_ipv4",
|
||||
"remote-dns-address": "tcp://1.1.1.1",
|
||||
"remote-dns-domain-strategy": "",
|
||||
"direct-dns-address": "1.1.1.1",
|
||||
"direct-dns-domain-strategy": "",
|
||||
"mixed-port": 12334,
|
||||
"local-dns-port": 16450,
|
||||
"tun-implementation": "mixed",
|
||||
"mtu": 9000,
|
||||
"strict-route": false,
|
||||
"connection-test-url": "https://www.gstatic.com/generate_204",
|
||||
"url-test-interval": 600,
|
||||
"enable-clash-api": true,
|
||||
"clash-api-port": 16756,
|
||||
"bypass-lan": false,
|
||||
"allow-connection-from-lan": true,
|
||||
"enable-fake-dns": false,
|
||||
"enable-dns-routing": true,
|
||||
"independent-dns-cache": true,
|
||||
"enable-tls-fragment": false,
|
||||
"tls-fragment-size": "20-70",
|
||||
"tls-fragment-sleep": "10-30",
|
||||
"enable-tls-mixed-sni-case": false,
|
||||
"enable-tls-padding": false,
|
||||
"tls-padding-size": "15-30",
|
||||
"enable-mux": false,
|
||||
"mux-padding": false,
|
||||
"mux-max-streams": 4,
|
||||
"mux-protocol": "h2mux",
|
||||
"enable-warp": false,
|
||||
"warp-detour-mode": "outbound",
|
||||
"warp-license-key": "",
|
||||
"warp-clean-ip": "auto",
|
||||
"warp-port": 0,
|
||||
"warp-noise": "5-10",
|
||||
"warp-noise-delay": "20-200"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
#!/bin/sh
|
||||
# sysctl -w net.ipv4.ip_forward=1
|
||||
# sysctl -w net.ipv6.ip_forward=1
|
||||
|
||||
# ip rule add fwmark 1 table 100 ;
|
||||
# ip route add local 0.0.0.0/0 dev lo table 100
|
||||
|
||||
# # CREATE TABLE
|
||||
# iptables -t mangle -N hiddify
|
||||
|
||||
# # RETURN LOCAL AND LANS
|
||||
# iptables -t mangle -A OUTPUT -j RETURN
|
||||
# iptables -t nat -A hiddify --dport 2334 -j RETURN
|
||||
|
||||
# iptables -t mangle -A hiddify -d 10.0.0.0/8 -j RETURN
|
||||
# iptables -t mangle -A hiddify -d 127.0.0.0/8 -j RETURN
|
||||
# iptables -t mangle -A hiddify -d 169.254.0.0/16 -j RETURN
|
||||
# iptables -t mangle -A hiddify -d 172.16.0.0/12 -j RETURN
|
||||
# iptables -t mangle -A hiddify -d 192.168.50.0/16 -j RETURN
|
||||
# iptables -t mangle -A hiddify -d 192.168.9.0/16 -j RETURN
|
||||
# iptables -t mangle -A hiddify -d 224.0.0.0/4 -j RETURN
|
||||
# iptables -t mangle -A hiddify -d 240.0.0.0/4 -j RETURN
|
||||
|
||||
# iptables -t mangle -A hiddify -p udp -j TPROXY --on-port 2334 --tproxy-mark 1
|
||||
# iptables -t mangle -A hiddify -p tcp -j TPROXY --on-port 2334 --tproxy-mark 1
|
||||
|
||||
# # HIJACK ICMP (untested)
|
||||
# # iptables -t mangle -A hiddify -p icmp -j DNAT --to-destination 127.0.0.1
|
||||
|
||||
# # REDIRECT
|
||||
# iptables -t mangle -A PREROUTING -j hiddify
|
||||
|
||||
|
||||
if [ -f "/hiddify/hiddify.json" ]; then
|
||||
/hiddify/HiddifyCli run --config "$CONFIG" -d /hiddify/hiddify.json
|
||||
else
|
||||
/hiddify/HiddifyCli run --config "$CONFIG"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user