Answer the question
In order to leave comments, you need to log in
How to set up access to the site on virtualbox from the Internet?
Hello.
Strange problem. There is a router with a white IP, a host machine on windows 10 is connected to it via LAN. The guest machine is Debian 8, nginx is spinning on it, giving content via https. A network bridge is configured on the guest machine to the host's LAN adapter. The router for the guest machine is configured with a static IP and port forwarding 443. If I open my external white IP https://95.31.xxx.xx/
from the host machine (or from my home network) in the browser , then the site opens from the virtual machine, and everything is fine. But here from any other network - it does not open, falling off on a timeout. How to fix it and where to dig?
/etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
# Это виртуальный адаптер хоста. Используется только как локалка между host и guest
auto eth1
iface eth1 inet static
address 192.168.168.123
netmask 255.255.255.0
network 192.168.168.0
broadcast 192.168.168.255
# Это сетевой мост к роутеру
auto eth2
iface eth2 inet static
address 192.168.1.123
netmask 255.255.255.0
gateway 192.168.1.1
network 192.168.1.0
broadcast 192.168.1.255
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question