Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
SAFI
New Contributor

Isolate UDP ports 137 / 138 and TCP ports 139 / 445.

In my company we have an Fortigate 1200d v 5.2.4 can someone please help me so that i can isolate this ports due to  Thank you very much.

2 REPLIES 2
EMES
Contributor

If you mean blocking the ports, then create a security policy from inside to outside with the services below and SMB. Enter those commands into the CLI and then create the security policy and set the action to DENY.

 

config firewall service custom

edit NETBIOSNS

set udp-portrange 137

next

edit NETBIOSDS

set udp-portrange 138

next

edit NETBIOSNS

set tcp-portrange 139

next

end

 

hope that helps

 

ede_pfau

NETBIOSNS is a standard service, called "SAMBA", no need to configure as custom.

Include tcp/445, "SMB", in that servicegroup to deny Windows file sharing.

Ede Kernel panic: Aiee, killing interrupt handler!
Ede Kernel panic: Aiee, killing interrupt handler!
Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors