mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-02 12:01:50 +08:00
- Implement full-traffic transparent gateway (cmd/artex-gateway, traffic/netstack.go, traffic/transparent.go) using Linux TUN + gVisor netstack deferred TCP handshakes (eliminating nmap/nc false-positive open ports), real ICMPv4 Echo proxying, UDP/DNS interception, and per-container upstream proxy overrides. - Add egress blacklist + asset-intercept sync, non-HTTP flow/DNS SQLite persistence and APIs, and /system/proxy & /function/traffic TCP/UDP/DNS UI panels. - Fix sandbox Playwright MCP browser loopback --proxy-server rewrite and NODE_EXTRA_CA_CERTS override in server/mcpstdio.go. - Strip all SUID/SGID binaries in Dockerfile.sandbox, grant minimal cap_net_raw+ep to nmap/nping/ping with ARTEX_SANDBOX_ALLOW_NET_RAW toggle, and enforce IPv4/IPv6 anti-spoofing in iptables and netstack. - Remove hardcoded Chinese "(全局)" from GET /api/proxy/routes, localize ContainerRoutesTab / NonHTTPTrafficPanel labels, and expose reactive locale/isEn from useLiveTranslation for React Compiler compatibility.
20 lines
811 B
Docker
20 lines
811 B
Docker
# syntax=docker/dockerfile:1
|
|
#
|
|
# ARTEX 沙箱全流量透明代理网关镜像(#218 Phase 3):
|
|
# 仅本轻量容器持有 CAP_NET_ADMIN + network_mode: host,负责接管 artex-sandbox 网桥的
|
|
# 全量 TCP / DNS / UDP 流量,消除环境变量绕过;沙箱容器继续保持非 root + CapDrop: ALL。
|
|
FROM golang:1.26-bookworm AS builder
|
|
WORKDIR /src
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /out/artex-gateway ./cmd/artex-gateway
|
|
|
|
FROM debian:bookworm-slim
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates iptables iproute2 tzdata \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
ENV TZ=Asia/Shanghai
|
|
COPY --from=builder /out/artex-gateway /usr/local/bin/artex-gateway
|
|
ENTRYPOINT ["/usr/local/bin/artex-gateway"]
|