From d2f6e89d58e48e38c685e95dfccb347e761970c1 Mon Sep 17 00:00:00 2001 From: embeddevio Date: Wed, 21 Oct 2026 23:47:15 +0300 Subject: [PATCH] =?UTF-8?q?fix(#18):=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0?= =?UTF-8?q?=D0=B2=D0=B0=D1=82=D1=8C=20/etc/iproute2/rt=5Ftables=20(=D0=B2?= =?UTF-8?q?=20alpine=20=D0=B5=D0=B3=D0=BE=20=D0=BD=D0=B5=D1=82)=20+=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BD=D1=8F=D1=82=D0=BD=D0=BE=D0=B5=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B5=D0=B4=D1=83=D0=BF=D1=80=D0=B5=D0=B6=D0=B4=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BF=D1=80=D0=BE=20ip=5Fforward?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/entrypoint.sh b/deploy/entrypoint.sh index 5fd7dbb..fc8fd84 100644 --- a/deploy/entrypoint.sh +++ b/deploy/entrypoint.sh @@ -31,13 +31,15 @@ mkdir -p "$CONFIG_DIR" "$DATA_DIR" "$RUN_DIR" chown -R awg:awg "$CONFIG_DIR" "$DATA_DIR" "$RUN_DIR" 2>/dev/null || true chmod 700 "$CONFIG_DIR" "$DATA_DIR" 2>/dev/null || true +mkdir -p /etc/iproute2 +touch /etc/iproute2/rt_tables 2>/dev/null || true if ! grep -q "^${ROUTING_TABLE_ID} ${ROUTING_TABLE_NAME}" /etc/iproute2/rt_tables 2>/dev/null; then printf '%s %s\n' "$ROUTING_TABLE_ID" "$ROUTING_TABLE_NAME" >> /etc/iproute2/rt_tables \ || log 'WARN: не удалось записать таблицу маршрутизации в /etc/iproute2/rt_tables' fi sysctl -w net.ipv4.ip_forward=1 >/dev/null 2>&1 \ - || log 'WARN: не удалось включить net.ipv4.ip_forward (нужен SYS_MODULE или --privileged)' + || log 'WARN: net.ipv4.ip_forward не включён — задайте --sysctl net.ipv4.ip_forward=1 или --privileged (см. runbook #45)' log "awg: $(awg --version 2>/dev/null | head -n 1 || echo 'version unknown')"