firewall can not block port VM


Well-Known Member
Feb 20, 2019
I was install pve 5.4, I want to block ssh to VM but can not block. this is my config:
/etc/pve/firewall# cat 107.fw

ipfilter: 0
policy_in: ACCEPT
enable: 1


IN DROP -i net0 -p tcp -dport 22 -sport 22 -log alert
anyone tell me how to block port ssh ?
Thank all ?
Also, why -sport 22 ?? (makes no sense)

IN DROP -i net0 -p tcp -dport 22

should do the job.


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!