Skip to content

DarioMaddaloni/DTUNetSec

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

02233 - Network Security (2025)

Here you can find a docker-compose file to start all the required services and applications we are going to use throughout the Network Security course and its laboratory exercises.

First, compose up the containers.

For the kali environment, open https://localhost:6901/ in your browser, and continue with credentials:

User : kasm_user
Password : password

To use bloodhound, you have to start the neo4j service:

sudo neo4j start

Linux

Integrate docker's apt repository

sudo apt update && sudo apt upgrade
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update

Install docker

sudo apt update && sudo apt upgrade
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Test docker installation

docker --version
sudo docker run hello-world

Install git

sudo apt install git

Test git installation

git --version

Clone GitHub repository

git clone https://github.com/RicYaben/DTUNetSec.git

Build and start docker containers

sudo docker compose up -d --build

Access Kali Linux (Docker)

For the Kali environment, open https://localhost:6901/ in your browser, and continue with credentials:

User : kasm_user

Password : password

Uninstall docker (FYI)

Don't execute the following commands if you want to run kali

If you want to completely remove docker from your system, run the following commands:

dkg -l | grep -i docker
sudo apt purge docker-buildx-plugin docker-ce docker-ce-cli docker-compose-plugin containerd.io
ls /var/lib/docker
sudo rm -rf /var/lib/docker
cat /etc/group | grep docker
sudo groupdel docker
docker --version

Additional docker commands

To display the manual or help options for Docker:

man docker
docker --help

To list all Docker images available on your system:

docker images

To list active and inactive containers:

docker ps
docker ps -a

To see available docker compose options (specified in .yml file):

docker compose --help

To manage running containers:

docker compose stop
docker compose start

To clean up and remove unused containers:

docker compose rm
docker compose down --rmi local 

To manage specific containers from the system:

sudo docker rmi <name>
docker stop <name>
docker rm <name>
docker rmi <name>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.7%
  • Dockerfile 15.3%