my virtual machine in proxmox linux does not have internet

sossin

New Member
Oct 14, 2024
3
0
1
I have tried everything, I watched some routing videos and it didn't work, what it did was disconnect me, does anyone have an idea what happens that my virtual machine in Linux doesn't catch the internet? need help please

i try this i see in another forum, and donk work!

iptables -t nat -A PREROUTING -p tcp -d 192.168.30.5 --dport 80 -i vmbr0 -j DNAT --to-destination 192.168.30.103:80
iptables -t nat -A PREROUTING -p tcp -d 192.168.30.5 --dport 443 -i vmbr0 -j DNAT --to-destination 192.168.30.103:443
iptables -t nat -A PREROUTING -p tcp -d 192.168.30.5 --dport 3389 -i vmbr0 -j DNAT --to-destination 192.168.30.103:3389

any idea?
 

Attachments

  • interfaces.png
    interfaces.png
    67.9 KB · Views: 5
  • ip a.png
    ip a.png
    72.3 KB · Views: 5
  • ip maria.png
    ip maria.png
    22.5 KB · Views: 5
  • ip route 1.png
    ip route 1.png
    6.3 KB · Views: 5
  • ip route 2.png
    ip route 2.png
    15 KB · Views: 5
Hey,

your VMs are on the same network, you don't need NAT. Could you reboot the host, so iptables is reset. Then could you check if the VM can ping the router and the PVE host. Additionally can you reach 1.1.1.1 from the host and from the VM?
 
Ey,

Sus máquinas virtuales están en la misma red, no necesita NAT. ¿Podría reiniciar el host para restablecer iptables? Luego, ¿podría verificar si la máquina virtual puede hacer ping al enrutador y al host PVE? Además, ¿puede comunicarse 1.1.1.1desde el host y desde la máquina virtual?
hi , I can ping from my virtual machine for gateway and for my entire LAN network, in the same way with a PC I can ping my virtual machine and everything is excellent, in fact from Proxmox I can ping Google and he does have internet, but the virtual machine does not have internet nor does it ping Google
 
Do you have the firewall enabled on you PVE host?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!