[SOLVED] Firewall

Dexter23

Member
Dec 23, 2021
144
6
23
33
Hi i wanto to close this port 111/udp on PBS, but in the GUI i can't find Firewall section to do that, i need to do via terminal with iptable? if the answer is yes i don't know how to use iptables.
 
Hi,
PBS does not provide a Firewall as PVE, so you will have to configure the rules yourself, please find some iptables basics in resources such as e.g. the ArchLinux wiki https://wiki.archlinux.org/title/Iptables

You probably want something like
Code:
# No router, so drop all traffic which otherwise will be forwarded
iptables -P FORWARD DROP
# Block incomming udp traffic with destination port 111
iptables -A INPUT -p udp --dport 111 -j REJECT
 
You will have to install the userspace programm via apt install iptables
 

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!