mirror of
https://github.com/Fluent-networks/tailscale-mikrotik.git
synced 2025-08-03 17:45:53 +02:00
0.1.2
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:
parent
a7207b9770
commit
1933be80c2
3 changed files with 132 additions and 21 deletions
11
Dockerfile
11
Dockerfile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue