Hi,
I can use my FreeBSD NAS as a perfect NFS share for Proxmox when pf is disabled. However, when pf is enabled, traffic is somehow blocked despite the fact that pf allows it through several ports as seen below. Are there some udp ports for NFS just like SAMBA that I need to allow traffic through? What am I missing?
Here is my /etc/pf.conf. Despite the line "block drop log all" I don't see the blocked traffic in pflog for some reason either.
I can use my FreeBSD NAS as a perfect NFS share for Proxmox when pf is disabled. However, when pf is enabled, traffic is somehow blocked despite the fact that pf allows it through several ports as seen below. Are there some udp ports for NFS just like SAMBA that I need to allow traffic through? What am I missing?
Here is my /etc/pf.conf. Despite the line "block drop log all" I don't see the blocked traffic in pflog for some reason either.
Code:
# allowed tcp ports
nfs_ports = "{ 111 873 992 999 2049 30000 }"
smb_ports = "{ 81 137 138 139 445 }"
allowed_tcp_ports = "{ 81 111 137 138 139 445 873 992 999 2049 30000 }"
# VLANs etc.
VLAN1 = "{ 192.168.1.0/24 }"
LAN = "{ 192.168.0.0/16 }"
# skip loopback traffic
set skip on lo
# default deny
block drop log all
# allow ping from VLAN1
pass quick inet proto icmp all
# pass out proto inet proto udp from any to port 33433 >< 33626
# pass in quick log inet proto icmp from $VLAN1 to any icmp-type echoreq
# pass out quick log inet proto icmp from any to $VLAN1 icmp-type echoreq
# allow SSH only from specific hosts
pass in log proto tcp from $VLAN1 to any port ssh keep state
pass in log proto tcp from $LAN to any port $allowed_tcp_ports keep state
pass in log proto udp from $LAN to any port $smb_ports keep state
# allow all outgoing traffic
pass out all keep state