No internet on VM (firewall)

jobbedf

New Member
Feb 5, 2023
17
0
1
Hello

My setup:
a Hetzner dedicated server with 1 ip
a Proxmox installation on the dedi server with masquerade nat
data centre firewall, node firewall and vm firewall are enabled
a web server vm on the Proxmox installation
a number of ports forwarded with iptables

Namely, I have forwarded a port from my public ip to a vm but want to be able to block that port as well without having to delete the iptable rule.

Is it possible to block a port forwarded by iptables?

Update:
I just discovered that if I indicate firewall by network device when creating the VM, it should work. Only then I can't ping 8.8.8.8 from inside my VM.

Anyone know what I'm doing wrong?
 
Last edited:
Hello

My setup:
a Hetzner dedicated server with 1 ip
a Proxmox installation on the dedi server with masquerade nat
data centre firewall, node firewall and vm firewall are enabled
a web server vm on the Proxmox installation
a number of ports forwarded with iptables

Namely, I have forwarded a port from my public ip to a vm but want to be able to block that port as well without having to delete the iptable rule.

Is it possible to block a port forwarded by iptables?

Update:
I just discovered that if I indicate firewall by network device when creating the VM, it should work. Only then I can't ping 8.8.8.8 from inside my VM.

Anyone know what I'm doing wrong?
I am having the same issue. Did you find a solution?
 

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!