Proxmox VM must be ping first and then can be accessed from internet

reigant

New Member
Sep 18, 2020
2
0
1
37
the first time you want to access (either port 22 or port 80) it always fails. After pinging the public IP of the VM, then the server can be accessed (both port 22 and port 80)

This is /etc/network/interfaces on VM


root@ubuntu:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ens18
iface ens18 inet dhcp

auto ens19
iface ens19 inet static
address 182.23.90.107
netmask 255.255.255.248
gateway 182.23.90.109

auto ens20
iface ens20 inet static
address 182.23.90.106
netmask 255.255.255.248
gateway 182.23.90.109
 
Hi spirit, I already remove ens20, but still have the same problem. Here I attached SS. First I can not telnet to port 80 and 22, when I try to ping then try to telnet again, its works.
 

Attachments

  • proxmox1.PNG
    proxmox1.PNG
    42.2 KB · Views: 11
  • proxmox2.PNG
    proxmox2.PNG
    12.3 KB · Views: 11