1

Problem

I have a Kali VM installed in Virtualbox. I need to access a website hosted by a webserver on my VM from the internet. The URL is <"MyPublicIp">/exploitCsrf.html

What I've tried

  • Reaching the webserver from the VM host does not work

By now the network setting in VirtualBox is NAT without port forwarding I've access from my VM to internet

  • Reaching the webserver from the internet does not work

Logic since I can't join my VM even from the lan

  • Reaching the webserver from the VM using the IP's 127.0.0.1, 10.0.2.x (LAN IP) does work, but it does not with the public IP 99.104.x.x

  • I've asked a fixed IP from my ISP. It takes 3 days to be set.

Question

How can I configure access from the internet to my Kali VM?

1 Answers1

0

The solution that works for me was :

  • In my ISP Box : configure port forwarding on an authorized port, by instance 51000
  • In Virtual box : configure Bridge in Network
  • In my Firewall : authorize virtual box program and port 51000
  • In my "dev" (metasploit / webserver) : specify the port 51000 instead of 80 by instance