Skip to content

TizianoAlbore/ethh

Repository files navigation

Overview

Due to limitations with the Docker bridge network not allowing ARP requests, we must set up a macvlan network. This configuration allows direct access to the web applications running in the containers via their own IP addresses.

Prerequisites

  • Docker must be installed.
  • Docker Compose must be installed.

First Time Setup

  1. Build and Start the Containers:

    Run the following command to build the containers and start them in detached mode:

    docker-compose build && docker-compose up -d
  2. Set Up the Macvlan Network (at every start):

    To access the network (and thus the web apps), you need to create a macvlan interface on your machine. Replace eth0 with the appropriate interface for your system if necessary.

    # Create the macvlan interface "macvlan0"
    sudo ip link add macvlan0 link eth0 type macvlan mode bridge
    
    # Assign an unused IP address (e.g., 192.168.56.50)
    sudo ip addr add 192.168.56.50/24 dev macvlan0
    
    # Activate the macvlan interface
    sudo ip link set macvlan0 up
    
    # Enable promiscuous mode on your main interface (replace eth0 with your correct interface)
    sudo ip link set eth0 promisc on

    After shutting down your computer these changes will be dropped, so this step has to be done at each startup

Accessing the Containers

After configuring the macvlan network, the containers will be accessible via their dedicated IP addresses:

Fedora: http://192.168.56.101:3000
Kali: http://192.168.56.80:8080/vnc.html

Shutting Down the Containers

To stop the containers, run:

docker-compose down

Kali Password Configuration

The default password for Kali is set to kalilinux. If you encounter issues with the second login (the OS login) via terminal while the container is running, you can change the password as follows:

  1. Open a bash session in the Kali container:
docker exec -it eth-kali-1 /bin/bash
  1. Change the Kali user password:
sudo passwd kali
  • Wait for the prompt to enter a new password.
  • Wait for the prompt to confirm the new password.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages