File size: 477 Bytes
6c71751 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y \
openssh-server \
dante-server \
iptables \
iproute2 \
net-tools \
curl \
&& rm -rf /var/lib/apt/lists/*
# Configure SSH
RUN mkdir -p /var/run/sshd
RUN useradd -m -s /bin/bash tunneluser
# Enable IP forwarding in /etc/sysctl.conf
RUN echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
RUN sysctl -p
WORKDIR /app
COPY . /app
RUN chmod +x entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]
|