PF accepte de gèrer les connexions du service Samba

Article publié, le et modifié le
1 minute(s) de lecture

Cet article contient 91 mots.
Source brute de l'article : MD

Description

Voici les règles PF nécessaires :

⇒ macros

smb_ports_tcp = "{ 135 137 139 445 }"
smb_ports_udp = "{ 135 137 138 445 }"

⇒ samba in

pass in quick on egress proto tcp from egress:network to egress port $smb_ports_tcp flags S/SA modulate state
pass in quick on egress proto udp from egress:network to egress port $smb_ports_udp allow-opts

⇒ samba out

pass out on egress proto tcp from egress to egress:network port $smb_ports_tcp flags S/SA modulate state
pass out on egress proto udp from egress to egress:network port $smb_ports_udp allow-opts