Reply To: prohibit access to the sharing of printers, files …

Home Page Forums Network Management Networking prohibit access to the sharing of printers, files … Reply To: prohibit access to the sharing of printers, files …

#50115

staifan13
Member

Thank you again to you,
so if I understand it I must reject connections on port 137,138 and 445 on UDP and also 139 and 445 in TCP. Corect?
I went to look in the firewall and I Zeroshell create a new chain that I call samba .
Here the contents of which

samba Rules
Seq Input Output Description Log Active
1 * * REJECT udp opt — in * out * 0.0.0.0/0 -> 0.0.0.0/0 udp spts:137:138 dpts:137:138 reject-with icmp-port-unreachable yes
2 * * REJECT tcp opt — in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:139 dpt:139 reject-with icmp-port-unreachable yes
3 * * REJECT tcp opt — in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:445 dpt:445 reject-with icmp-port-unreachable yes
4 * * REJECT udp opt — in * out * 0.0.0.0/0 -> 0.0.0.0/0 udp spt:445 dpt:445 reject-with icmp-port-unreachable yes

But this does not work. other hand there are a lot of parameter that I do not understand. For example, TCP flags and many other things.
Am I already on the right path?
cordially
Stephan