Skip to content

Commit

Permalink
install /etc/iproute2/rt_tables with awg0 table by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Grebenshchikov committed Nov 2, 2024
1 parent b4ad022 commit ac67f8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ COPY awg-quick /usr/bin/awg-quick

RUN ln -s /usr/bin/awg /usr/bin/wg && \
ln -s /usr/bin/awg-quick /usr/bin/wg-quick && \
mkdir -p /etc/amnezia/amneziawg/
mkdir -p /etc/amnezia/amneziawg/ /etc/iproute2/ && \
echo "100 awg0" >> /etc/iproute2/rt_tables

RUN (echo "[Interface]" && \
echo "PrivateKey = $(wg genkey)" && \
Expand Down

0 comments on commit ac67f8a

Please sign in to comment.