Block port 22 SSH
Hy Everbody !
I want to disable in my fortigate 90 the SSH port 22.
It is necessary to create a policy or I need to disable an option ?
Thank you !
Hy Everbody !
I want to disable in my fortigate 90 the SSH port 22.
It is necessary to create a policy or I need to disable an option ?
Thank you !
Hi Cosmin.
What exactly are you trying to do? The info provided by Nishad is for blocking port 22 access to the fgt from the interface (usually a WAN port). If you are trying to block people (devices) from accessing port 22 at any addresses on the Internet (e.g. outside your fgt) you need to craft a firewall policy that blocks that port from Internal->WAN1 (e.g. connections going out the WAN port).
BTW I suggest leaving the ssh port value setting at 22 but uncheck SSH on the interface (e.g. WAN1) if you do not want people/devices attempting to access your fgt from outside.
Haven't tested this myself, but I assume the fgt will assume the default value for the SSH port will always be what is defined under system global.
system global set admin-ssh-port <value> end
(edited)
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.