diff --git a/Dockerfile b/Dockerfile index 2b6e6362..8471cf41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,8 +57,7 @@ RUN apk add --no-cache \ ca-certificates \ tzdata \ nftables \ - iproute2 \ - dcron + iproute2 RUN ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime && \ echo "${TZ}" > /etc/timezone diff --git a/docker/README.md b/docker/README.md index 2bb586dc..c3daaa64 100644 --- a/docker/README.md +++ b/docker/README.md @@ -57,6 +57,7 @@ docker run -d \ --cap-add NET_ADMIN \ --cap-add NET_RAW \ --cap-add SYS_ADMIN \ + --sysctl net.ipv4.ip_forward=1 \ --device /dev/net/tun:/dev/net/tun \ --restart unless-stopped \ juewuy/shellcrash:latest diff --git a/docker/compose.yml b/docker/compose.yml index 8c59972a..d246815b 100644 --- a/docker/compose.yml +++ b/docker/compose.yml @@ -14,7 +14,8 @@ services: devices: - "/dev/net/tun:/dev/net/tun" sysctls: - net.ipv4.ip_forward: 1 + - net.ipv4.ip_forward: 1 + # - net.ipv6.conf.all.forwarding=1 volumes: - shellcrash_configs:/etc/ShellCrash/configs:rw restart: unless-stopped