Created
December 1, 2021 01:23
-
-
Save astellon/ac65e7e3c73fcc47ced3e7b52a137e3f to your computer and use it in GitHub Desktop.
TryHackMe用のKali Linux環境
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
tryhackme: | |
container_name: tryhackme | |
build: | |
context: . | |
dockerfile: Dockerfile | |
volumes: | |
- ./workspace:/workspace | |
devices: | |
- /dev/net/tun:/dev/net/tun | |
environment: | |
- OVPN_CONF=Astellon.ovpn | |
cap_add: | |
- NET_ADMIN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM kalilinux/kali | |
ARG OVPN_CONF | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && apt-get install kali-linux-default -yqq -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" | |
COPY ./entrypoint.sh / | |
COPY ${OVPN_CONF} / | |
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
openvpn --daemon --config ${OVPN_CONF} | |
exec "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment