T
T
Timur2016-08-21 14:09:07
Computer networks
Timur, 2016-08-21 14:09:07

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

Router - Zyxel Keenetic Omni II. In the firewall allowed external access 13cdc98dcd3f48ab8261ef52772669f8.png
PS, please do not offer "buy a VPS and do not bathe." The question is not about this, but about setting up a network

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Efimov, 2016-08-21
@XAKEPEHOK

You are vaguely expressing. How is NAT configured on zyxel?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question