tuto2: wg working
This commit is contained in:
parent
cd848e3ff6
commit
33f0698f1e
9 changed files with 196 additions and 30 deletions
|
|
@ -2,10 +2,13 @@ FROM debian
|
|||
|
||||
RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||
busybox \
|
||||
ca-certificates \
|
||||
console-data \
|
||||
cron \
|
||||
curl \
|
||||
ifupdown \
|
||||
kbd \
|
||||
kmod \
|
||||
nano \
|
||||
openssh-server \
|
||||
python \
|
||||
|
|
@ -15,10 +18,13 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
|||
vim.tiny \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN curl -L -o /tmp/wireguard.deb http://httpredir.debian.org/debian/pool/main/w/wireguard/wireguard-tools_0.0.20190227-1_amd64.deb && dpkg -i /tmp/wireguard.deb; rm /tmp/wireguard.deb
|
||||
|
||||
RUN rm -rf /etc/init.d/ && \
|
||||
mkdir /overlay && \
|
||||
ln -sf /init /sbin/init && \
|
||||
ln -sf /lib/systemd/system/systemd-netwkord.service /etc/systemd/system/multi-user.target.wants/systemd-networkd.service
|
||||
|
||||
COPY default.script /etc/udhcpc/default.script
|
||||
COPY issue /etc/issue
|
||||
COPY sshd_config /etc/ssh/sshd_config
|
||||
|
|
|
|||
Reference in a new issue