Yuri Slobodyanyuk Blog on Information Security 2024年09月12日
Fortigate - enable e-mail as a two-factor authentication for a user and increase token timeout
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

FortiToken是多因素认证中最安全的方式,而SMS和邮件存在漏洞。文章还介绍了如何在Fortigate上设置邮件作为MFA及相关配置,如增加令牌码有效期等。

🎯FortiToken是目前多因素认证中较为安全的方式,而SMS消息和电子邮件消息易受多种攻击。在某些情况下,不太安全的方法也比没有好。

📧在Fortigate上使用电子邮件作为MFA时,需在CLI开启该功能,且存在邮件可能延迟及令牌码默认有效期为60秒的问题。文中介绍了如何为用户启用电子邮件MFA及增加令牌码有效期的方法。

🔧此外,还需增加Fortigate等待用户输入一次性代码的默认时间,并配置Fortigate用于转发带有OTP邮件的邮件服务器。

I'll say outright that FortiToken (be it a mobile app or a physical token) is the most secure and preferable way today for multi-factor authentication. The other two - SMS message and e-mail message are vulnerable to many attacks, including not so technically sofisticated SIM swapping. But sometimes less secure method is better than none. Two catches with using an e-mail as MFA on Fortigate though:

config user local    edit "Carmen"        set type password        set two-factor email        set email-to "carmen@nasa.gov"    nextend
    (Optional) Increase token code validity from 1 to 2 minutes:
FG2 # config system globalFG2 (global) # set two-factor-email-expiry   ?two-factor-email-expiry    Enter an integer value from <30> to <300> (default = <60>).FG2 (global) # set two-factor-email-expiry 120

Additionally, we have to increase the default time of 5 seconds the Fortigate will wait between asking for the one-time code and user entering it. This configuraiton, btw, sets authentication timeout for ANY remote server authentication - LDAP, Radius etc.

config sys   global    set remoteauthtimeout <1-300>

The default is 5 seconds.

Now the option for e-mail as 2-factor authentication appears in GUI:

And if not set already, of course, configure mail server that Fortigate will use to relay mails with OTP:

config sys email-server        set reply-to fgt1800F@mydomain.com        set server 3.3.3.3end

Follow me on https://www.linkedin.com/in/yurislobodyanyuk/ not to miss what I publish on Linkedin, Github, blog, and more.

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

FortiToken 多因素认证 电子邮件MFA 安全配置
相关文章