Firewall working too well

badspellersuntie

New Member
Oct 9, 2020
4
0
1
124
I'm pretty much a noob with ProxMox but if I'm reading these forums correctly, this shouldn't be happening.
When I enable the firewall on the data center, I lose the web interface completely (SSH still works so I can disable the FW again).
So what gives? I want to use the firewall feature so I don't have to turn them on the VMs.
 
Add rule that allows access to port 8006 (web management interface) either from your current IP (if your IP is static), some IP range or everywhere.

From terminal that would be:

# allow 1 IP address sudo iptables -A INPUT -p tcp -s x.y.z.q/32 --dport 8006 -j ACCEPT # allow 255 IP addresses sudo iptables -A INPUT -p tcp -s x.y.z.q/24 --dport 8006 -j ACCEPT # allow all sudo iptables -A INPUT -p tcp --dport 8006 -j ACCEPT

In GUI you can guess for yourself what needs to be where, INPUT is "in", ACCEPT is ACCEPT, and so on.
 
Please note: the firewall on datacenter level filters traffic from and to the nodes. In order to protect the VMs you have to enable the firewall there as well!
 
# allow all
sudo iptables -A INPUT -p tcp --dport 8006 -j ACCEPT[/ICODE]

In GUI you can guess for yourself what needs to be where, INPUT is "in", ACCEPT is ACCEPT, and so on.
This command worked for me but it didn't stick through a reboot.
I've added this rule to the /etc/pve/firewall/cluster.fw

[RULES]

IN ACCEPT -p tcp -dport 8006 -sport 8006 -log nolog

However the webUI still times-out when I try to refresh it. What am I missing?
 

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!