Proxmox Firewall Rules: Allow the Web UI, Block Port 111

  • Post author:Frank Joseph
  • Post published:
  • Post last modified:
  • Post category:Proxmox
  • Reading time:9 mins read

The Proxmox firewall works at three levels (Datacenter, Node and VM/Container), and it’s off until you enable it at the Datacenter. For a basic Proxmox firewall setup, allow the web UI on port 8006 (and SSH on 22) first, then turn it on. With the default Input Policy of DROP, anything outside your rules and Proxmox’s built-in exceptions gets blocked, port 111 (rpcbind) included.

In general, configuring the firewall on any device is extremely powerful since you’re able to limit connections to specific IP addresses or subnets. With Proxmox, it’s even more powerful considering there are various virtual machines and containers that are generally configured on one device.

How to Configure the Firewall on Proxmox

Before we look at how to configure the firewall on Proxmox, I want to give a few disclaimers:

  • There are technically three types of firewall configurations that you can use on Proxmox, but they all operate the same (Datacenter, Node, or VM/Container). A few additional notes about this configuration:
  • Creating rules for the Datacenter will apply to Nodes under the Datacenter, however, they will not apply to VMs or containers under the Datacenter or Node.
  • Creating a firewall rule for a specific Node will not apply to the Datacenter, VMs, or Containers. Node rules will only apply to the Node individually.
  • Until the firewall is enabled, none of the firewall rules will apply! Therefore, when you’re comfortable that the base rules you need to access your services are created (at minimum), you can enable the firewall to begin using it.
  • As soon as the firewall is enabled, it will block incoming traffic by default, meaning anything not covered by an allow rule or one of Proxmox’s built-in exceptions will be blocked!
  • The exception to this is if you change the default Input Policy (Firewall > Options > Input Policy). If you change the Input Policy to Accept, you must create firewall rules for services you’d explicitly like blocked.

Proxmox Ports

These are the ports Proxmox VE uses (current as of Proxmox VE 9.2, October 2026), and the Proxmox port you’ll need first is 8006.

  • Web interface: 8006 (TCP, HTTP/1.1 over TLS)
  • VNC Web console: 5900-5999 (TCP, WebSocket)
  • SPICE proxy: 3128 (TCP)
  • sshd (used for cluster actions): 22 (TCP)
  • rpcbind: 111 (UDP)
  • sendmail: 25 (TCP, outgoing)
  • corosync cluster traffic: 5405-5412 UDP
  • live migration (VM memory and local-disk data): 60000-60050 (TCP)

This is extremely important to take note of because if you’re using the Proxmox Firewall, you might have to create rules for some or all ports above.

NOTE: The list above has been taken directly from the official Proxmox page.

Why Configure the Firewall on Proxmox?

Configuring the firewall on Proxmox is a great way to enhance the overall security of Proxmox. Since Proxmox hosts multiple virtual machines (VMs) and LXC containers that could potentially be targeted, configuring Proxmox firewall rules that do/do not permit access is important.

The firewall on Proxmox serves as a critical “line of defense”, controlling inbound and outbound network traffic based on predetermined firewall rules. It helps block unauthorized access which protects your VMs and the data contained within them.

Also, if you have VMs exposed to the internet (such as web servers or remote access portals), the firewall on Proxmox is absolutely necessary to help mitigate the risk of cyber threats. While it’s best to configure a DMZ in scenarios like this, the Proxmox firewall is something that can easily be completed that offers strong protection.

Finally, Proxmox firewall rules can also provide better overall network performance since it permits or blocks specific types of traffic, improving your overall network and system performance.

Datacenter Proxmox Firewall Configuration

1. The first rule that we will create is to access the Proxmox GUI. This rule will be created for port 8006 and will apply at the Datacenter level. Select Datacenter, then Firewall, then Add to create a new rule.

NOTE: You will need the interface name to create the firewall rule. This can be found by selecting a Node, then Network, and finding the name of the interface. In my case, it’s vmbr0, but you should confirm before enabling the firewall.

Proxmox’s default rules allow the GUI (8006) and SSH (22), but only from the local network, so from another subnet, a VLAN or a remote connection you’ll be locked out unless you add a rule for that source. I’d still recommend creating a rule for each at the Datacenter level. The Proxmox admin guide also suggests keeping an SSH session open before you enable the firewall.

proxmox datacenter firewall. How to Configure the Firewall on Proxmox.

2. Set the Interface to be the interface name your Proxmox server is using (mine is vmbr0), set the Protocol as TCP, then set the Destination Port as 8006. Make sure it’s enabled, then select Add.

proxmox datacenter firewall rule with interface.

NOTE: I’d recommend creating a second rule for port 22 (SSH) so that you can access Proxmox through the Web GUI or SSH.

3. From a bare minimum perspective, the rule(s) above will allow you to access the Proxmox GUI (and SSH if you created a rule for it), however, the rule(s) can be modified by specifying a specific source IP address or subnet. This will ensure that the IP address or subnet specified are the only devices that can access this specific port.

creating an allow rule for port 8006 in the proxmox datacenter.

4. As mentioned above, the firewall will not be enabled until you actually enable it. To enable it, select Options under Firewall, then Edit the Firewall, then enable it and select OK.

NOTE: This will enable the firewall, so if you have not set up the correct firewall rules, services can be blocked!

enabling the firewall in proxmox.

Node Firewall Configuration – How to Configure the Firewall on Proxmox

The Node Firewall Configuration is the exact same as the Datacenter Firewall, but rules will only apply to the Node specified. Therefore, if you have multiple Nodes in a cluster and would like them to have different firewall rules, it’s best to specify them on a Node level, rather than a Datacenter level. Please keep in mind that you must have the firewall enabled at the Datacenter level to use it on the Node!

As mentioned above, Nodes will inherit firewall rules from the Datacenter. Therefore, if you only have an individual Node or would like all Nodes to have the same firewall rules, you should specify them at the Datacenter level.

With that said, VMs or Containers will not inherit firewall rules from the Node they’re currently on! For that reason, you must create firewall rules for each VM/Container individually!

Virtual Machine/Container Firewall Configuration

As mentioned above, VMs/Containers will not inherit firewall rules from the Node they are on. For this reason, individual firewall rules must be created for each VM/Container if you’d like to use it.

NOTE: The Firewall MUST be enabled at the Datacenter level for the Firewall to work at the Node/VM level!

1. Create Firewall Rules on the individual VM or Container by selecting it, selecting Firewall, then Add.

adding a new firewall rule in proxmox.

2. Create the Firewall Rule by specifying the Protocol and Destination Port. Make sure the rule is created, and select OK to create the firewall rule.

NOTE: the rule(s) can be modified by specifying a specific source IP address or subnet. This will ensure that the IP address or subnet specified are the only devices that can access this specific port.

The rule below allows RDP to a Windows 11 Virtual Machine.

creating an allow rule for port 3389 in prxomox.

3. When the Firewall rules have been created, edit the Firewall Options and ensure that it’s enabled (Firewall > Options > Firewall > Yes). After it has been enabled, the Firewall rules will apply!

enabling the firewall in proxmox.

How to Block Port 111 (rpcbind) on Proxmox

With the firewall enabled at the Datacenter and the default Input Policy of DROP, incoming traffic to port 111 is already blocked, since rpcbind isn’t one of the exceptions Proxmox allows. You only need an explicit rule if the Input Policy was changed to ACCEPT (it’s in the Proxmox firewall settings at Datacenter > Firewall > Options) or you’d like the block spelled out as its own rule.

rpcbind is installed because Proxmox ships the NFS client, and it listens on 111 over TCP and UDP (the official list only shows UDP), so you’ll create the rule twice.

Host rules don’t cover LXC containers or VMs. For a container (or a VM), add its rules on its Firewall tab first. Either allow the services it runs and keep its Input Policy at DROP, or set it to ACCEPT and add the two rules below. Then enable Firewall under its Firewall > Options and on its network device (select it under Hardware or Network, then Edit).

1. Select Datacenter (every host) or a Node (that host only), then Firewall > Add. Node rules take precedence over Datacenter rules.

2. Set Direction to in and Action to DROP, and leave Macro blank.

3. Set Protocol to tcp and Dest. port to 111. Leave Interface blank to cover every interface. Check Enable, then select Add.

4. Add the same rule again with Protocol set to udp, since one rule can’t cover both.

5. Once the 8006 rule from the Datacenter section is in place, enable the firewall at the Datacenter: Datacenter > Firewall > Options, select Firewall, then Edit, check it and select OK. Test 111 from another machine, not the host (loopback is always allowed): nc -zv -w 3 <host IP> 111 should time out.

You’ll also see forum advice to disable rpcbind instead. If you mount NFS storage, block it at the firewall and leave the service running, because disabling it can break NFS. That matters if you followed my 2025 videos, where I connected Proxmox to my NAS over NFS, and the same goes for a Proxmox Backup Server NFS datastore.

Security guidance and Proxmox’s defaults change, so a firewall rule reduces what’s exposed but doesn’t guarantee anything, and it’s worth checking the current Proxmox firewall documentation before you rely on one.

Frank Joseph

I'm Frank, founder of WunderTech. I've been working in enterprise IT for 15+ years and running home labs for nearly a decade — every tutorial on this site is tested on hardware I actually own, including Synology NAS units, a DIY TrueNAS server, a Proxmox cluster, a full UniFi network, and more. I hold a BS in Computer Information Systems and an MBA, but most of what you'll read here comes from my home lab, not a classroom. You can also find video versions of these tutorials on my YouTube channel.