Hello, community.
Working with the Proxmox on bare metal I faced an issue that my VMs cannot curl my external IP, I always faced with an issue "Connection refuse" or infinity loading.
Here is my node network config:
From my computer, I can access the web server on my web server VM, but when I create one more VM and try to curl my domain that points to the node public IP I cannot do this.
With all due respect, I ask you to tell me where I went wrong because I tried so many options and still cannot understand what is wrong.
Best regards,
Mavis.
Working with the Proxmox on bare metal I faced an issue that my VMs cannot curl my external IP, I always faced with an issue "Connection refuse" or infinity loading.
Here is my node network config:
Code:
auto lo
iface lo inet loopback
iface lo inet6 loopback
#PUBLIC LAN
auto enp2s0
iface enp2s0 inet static
address {PUBLIC_ADDRESS/MASK}
gateway {GATEWAY}
pointopoint {PUBLIC_IP}
#CLUSTER VSWITCH LAN
auto enp2s0.4000
iface enp2s0.4000 inet static
address 10.0.10.10
netmask 255.255.255.0
vlan-raw-device enp2s0
mtu 1400
#GUEST LAN FOR PROXMOX
auto vmbr0
iface vmbr0 inet static
address 10.0.0.1
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.0.0.1/24' -o enp2s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.0.1/24' -o enp2s0 -j MASQUERADE
post-up iptables -t nat -A PREROUTING -i enp2s0 -p tcp --dport 80 -j DNAT --to 10.0.0.2:80
post-down iptables -t nat -D PREROUTING -i enp2s0 -p tcp --dport 80 -j DNAT --to 10.0.0.2:80
post-up iptables -t nat -A PREROUTING -i enp2s0 -p tcp --dport 443 -j DNAT --to 10.0.0.2:443
post-down iptables -t nat -D PREROUTING -i enp2s0 -p tcp --dport 443 -j DNAT --to 10.0.0.2:443
From my computer, I can access the web server on my web server VM, but when I create one more VM and try to curl my domain that points to the node public IP I cannot do this.
With all due respect, I ask you to tell me where I went wrong because I tried so many options and still cannot understand what is wrong.
Best regards,
Mavis.