JJ-8 / CTFNote

CTFNote is a collaborative tool aiming to help CTF teams to organise their work. This tool helps making notes during CTFs, so you can track your CTF notes at a later time. This is similar to the CTF pad seen in one of the video's of Liveoverflow.
GNU General Public License v3.0
9 stars 2 forks source link

Add vpn service to docker-compose file #15

Closed RickdeJager closed 2 years ago

RickdeJager commented 2 years ago

Here's an initial VPN implementation. I added workdir/vpn to hold openvpn config files.

(The VPN config is based on their official example, some of these flags might be unneeded)

RickdeJager commented 2 years ago

I'll have a look later at making the VPN client optional. For example, if no openvpn file is found, the vpn container is just used as a transparent network stack, rather than bailing out.

JJ-8 commented 2 years ago

@RickdeJager So I should wait with merging?

RickdeJager commented 2 years ago

I added a work-around and did a quick smoke test with and without an ovpn file. This should work :crossed_fingers:

JJ-8 commented 2 years ago

The ovpn file should be available when the docker is starting and if not available, you should restart it to try again?

RickdeJager commented 2 years ago

yeah, it just checks on startup, so you can just do:

docker-compose restart vpn

I tested it by doing a full docker-compose down / up though