You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# run the container
docker run -v ./kali:/root --privileged --cap-add=NET_ADMIN --cap-add=NET_RAW --sysctl net.ipv4.ip_forward=1 --tty --interactive kalilinux/kali-rolling
Post-Installation within container
# install packages
apt update -y && apt upgrade -y && apt install dnsutils nmap wireguard resolvconf net-tools openssh-server nano iproute2 curl procps -y
# set new root pw; use a very strong pw as the user can login via SSH
passwd
# allow ssh root login
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
# start openssh
service ssh start
# paste your wg config
nano /etc/wireguard/wg0.conf
# enable wireguard
wg-quick up wg0
## validate that you have the correct ips
curl ifconfig.me
ip a
# adjust dns if it is not working yet
nano /etc/resolv.conf
Alternatively, build your own Docker image:
https://github.com/l4rm4nd/Kali-Linux-Dockerfile