Hi !
Summary:
I have a virtual machine that hosts a website. The site is accessible anywhere in the local network, but neither to computers connected in VPN, nor in WAN interrogation with a correct port forwarding.
Technically:
- Vagrant version: 1.9.1
- Virtualbox version: 5.2.34
- Host and virtual OS: Debian 9
- The website is the default installation of a nginx installed on the host (for diagnostics) and the virtual machine
- Vagrantfile network configuration:
enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
ether 00:15:17:e6:94:bc txqueuelen 1000 (Ethernet)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8569810 bytes 669605531 (638.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xc2b00000-c2b20000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Boucle locale)
RX packets 446809 bytes 51801204 (49.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 446809 bytes 51801204 (49.4 MiB)eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::a00:27ff:fe8d:c04d prefixlen 64 scopeid 0x20<link>
ether 08:00:27:8d:c0:4d txqueuelen 1000 (Ethernet)
RX packets 11678 bytes 15457601 (14.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5981 bytes 423088 (413.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::a00:27ff:fe8d:c04d prefixlen 64 scopeid 0x20<link>
ether 08:00:27:8d:c0:4d txqueuelen 1000 (Ethernet)
RX packets 11678 bytes 15457601 (14.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5981 bytes 423088 (413.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.203 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2a01:e35:2f4d:7aa0:a00:27ff:fe91:41e5 prefixlen 64 scopeid 0x0<global>
inet6 fe80::a00:27ff:fe91:41e5 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:91:41:e5 txqueuelen 1000 (Ethernet)
RX packets 110921 bytes 149988100 (143.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 83255 bytes 8211893 (7.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 8 bytes 540 (540.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 540 (540.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0