kali был установлен с помощью vagrant  -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.define "net1" do |net1_config|
    net1_config.vm.box = 'kalilinux/rolling' # Updated box name
    net1_config.vm.hostname = "net1"
    config.vm.synced_folder ".", "/vagrant", type: "rsync"
    
    # Adjusting network configuration for Debian-based systems
    net1_config.vm.network "public_network", bridge: "eth0", ip: "192.168.0.180"
    
    # Port forwarding remains the same
    net1_config.vm.network "forwarded_port", guest: 8000, host: 8000

    net1_config.vm.provider "hyperv" do |h|
      h.memory = 4096
      h.cpus = 4
    end

    # Shell provisioner for installing Docker and Docker Compose
    net1_config.vm.provision "shell", inline: <<-SHELL
      # Update package index
      sudo apt update
      
      # Install packages to allow apt to use a repository over HTTPS
      sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
      
      # Add Docker's official GPG key
      curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
      
      # Set up the stable Docker repository
      echo "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
      
      # Update package index again
      sudo apt update
      
      # Install Docker CE
      sudo apt install -y docker-ce
      
      # Add current user to the Docker group
      sudo usermod -aG docker $USER
      
      # Install Docker Compose
      sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
      sudo chmod +x /usr/local/bin/docker-compose
      
      # Check Docker and Docker Compose versions
      docker --version
      docker-compose --version
    SHELL
  end
end Nginx установлен с помощью docker-compose version: '3.8'

services:
  web:
    image: nginx:latest
    container_name: kali-nginx
    ports:
      - "8000:80"
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf
      - ./html:/usr/share/nginx/html на kali/ IP address kali ┌──(root㉿net1)-[~/nginx-kali]
└─# ip add
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:15:5d:00:b4:0a brd ff:ff:ff:ff:ff:ff
    inet 172.26.100.206/20 brd 172.26.111.255 scope global dynamic eth0
       valid_lft 84147sec preferred_lft 84147sec
    inet6 fe80::215:5dff:fe00:b40a/64 scope link proto kernel_ll
       valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
    link/ether 02:42:bf:81:00:66 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
4: br-9d14c05ad8fc: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether 02:42:8a:4a:00:46 brd ff:ff:ff:ff:ff:ff
    inet 172.18.0.1/16 brd 172.18.255.255 scope global br-9d14c05ad8fc
       valid_lft forever preferred_lft forever
    inet6 fe80::42:8aff:fe4a:46/64 scope link proto kernel_ll
       valid_lft forever preferred_lft forever
8: vethca4f6ba@if7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-9d14c05ad8fc state UP group default
    link/ether ae:7b:84:1c:23:d0 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fe80::ac7b:84ff:fe1c:23d0/64 scope link proto kernel_ll
       valid_lft forever preferred_lft forever/ IP address windows 11 даптер Ethernet Ethernet:

   DNS-суффикс подключения . . . . . :
   Локальный IPv6-адрес канала . . . : fe80::1557:32e4:1444:3fb6%16
   IPv4-адрес. . . . . . . . . . . . : 192.168.0.180
   Маска подсети . . . . . . . . . . : 255.255.255.0
   Основной шлюз. . . . . . . . . : 192.168.0.1 как сделать чтобы http://localhost:8000 бы доступен на windows в браузере?