Update to RouterOS 7.4rc2
Include interface for outgoing NAT configuration
Use root user for SSH access
Extend script startup delay
This commit is contained in:
Frank Edwards 2022-07-12 22:34:28 +10:00
parent a7207b9770
commit 1933be80c2
3 changed files with 132 additions and 21 deletions

View file

@ -45,22 +45,17 @@ RUN GOARCH=$TARGETARCH go install -ldflags="\
FROM ghcr.io/tailscale/alpine-base:3.14
# Set username and password
ARG TAILSCALE_USER="tailscale"
# Set password
ARG TAILSCALE_PASSWORD="Pm36g58CzaLK"
RUN echo "root:$TAILSCALE_PASSWORD" | chpasswd
RUN apk add --no-cache ca-certificates iptables iproute2 bash sudo openssh
RUN addgroup -S tailscale
RUN adduser --shell /bin/bash -S $TAILSCALE_USER -G tailscale \
&& echo "$TAILSCALE_USER ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$TAILSCALE_USER \
&& chmod 0440 /etc/sudoers.d/$TAILSCALE_USER
RUN echo "tailscale:$TAILSCALE_PASSWORD" | chpasswd
RUN ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
RUN ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa
COPY --from=build-env /go/bin/* /usr/local/bin/
ADD sshd_config /etc/ssh/
EXPOSE 22
ADD tailscale.sh /usr/local/bin