@redhammer said:
The thing is that i only have in the host file this 2 lines:
10.10.10.216 laboratory.htb
10.10.10.216 git.laboratory.htbShould i add something else?
I try to look for examples on the internet but i didn’t found something it could work
That looks correct, but something isn’t working. You need to work down each step and see where the problem is.
- Is your VPN connection working? Check your IP address; make sure its a HTB one; make sure the VPN is still active while you are running other commands etc.
- Check the server has been started and spawned to your connection.
- Check traceroute to see where the traffic goes - this will often identify where the problem might be.
- Try spawning a different HTB box and seeing if you can connect to that with traceroute (dont use a browser as not all boxes have a webserver running and that will just make things more confusing).