{"id":20989,"date":"2024-11-26T15:25:43","date_gmt":"2024-11-26T08:25:43","guid":{"rendered":"https:\/\/thegioifirewall.com\/?p=20989"},"modified":"2025-03-24T07:27:20","modified_gmt":"2025-03-24T07:27:20","slug":"huong-dan-cau-hinh-firewall-fortinet-tu-dong-backup-hang-ngay-thong-qua-sftp","status":"publish","type":"post","link":"https:\/\/vacif.com\/en\/huong-dan-cau-hinh-firewall-fortinet-tu-dong-backup-hang-ngay-thong-qua-sftp\/","title":{"rendered":"H\u01af\u1edaNG D\u1eaaN C\u1ea4U H\u00ccNH FIREWALL FORTINET T\u1ef0 \u0110\u1ed8NG BACKUP H\u00c0NG NG\u00c0Y TH\u00d4NG QUA SFTP"},"content":{"rendered":"\n<p class=\"has-white-color has-text-color has-background has-link-color has-medium-font-size wp-elements-291bbcb77c3eae7c8644bb1ed5a9abc1\" style=\"background-color:#055ab5;font-style:normal;font-weight:700\">I &#8211; M\u1ee4C \u0110\u00cdCH B\u00c0I VI\u1ebeT<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p>B\u00e0i vi\u1ebft n\u00e0y nh\u1eb1m h\u01b0\u1edbng d\u1eabn c\u00e1ch c\u1ea5u h\u00ecnh firewall Fortinet \u0111\u1ec3 t\u1ef1 \u0111\u1ed9ng sao l\u01b0u (backup) c\u1ea5u h\u00ecnh h\u00e0ng ng\u00e0y th\u00f4ng qua giao th\u1ee9c SFTP (Secure File Transfer Protocol). Vi\u1ec7c sao l\u01b0u t\u1ef1 \u0111\u1ed9ng s\u1ebd gi\u00fap b\u1ea3o \u0111\u1ea3m d\u1eef li\u1ec7u c\u1ea5u h\u00ecnh c\u1ee7a firewall \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef an to\u00e0n, d\u1ec5 d\u00e0ng kh\u00f4i ph\u1ee5c khi c\u1ea7n thi\u1ebft v\u00e0 gi\u1ea3m thi\u1ec3u nguy c\u01a1 m\u1ea5t d\u1eef li\u1ec7u khi c\u00f3 s\u1ef1 c\u1ed1 x\u1ea3y ra.<\/p>\n\n\n\n<p><strong>C\u00e1c b\u01b0\u1edbc c\u1ea5u h\u00ecnh:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Truy c\u1eadp Automation<\/li>\n\n\n\n<li>Th\u00eam Trigger (K\u00edch ho\u1ea1t t\u1ef1 \u0111\u1ed9ng)<\/li>\n\n\n\n<li>Th\u00eam Action (H\u00e0nh \u0111\u1ed9ng)<\/li>\n\n\n\n<li>Ho\u00e0n t\u1ea5t Automation Stitch<\/li>\n\n\n\n<li>Ki\u1ec3m tra c\u1ea5u h\u00ecnh<\/li>\n<\/ul>\n\n\n\n<p class=\"has-white-color has-text-color has-background has-link-color has-medium-font-size wp-elements-7933385b5c0022c3f287eae45192b933\" style=\"background-color:#055ab5;font-style:normal;font-weight:700\">II &#8211; H\u01af\u1edaNG D\u1eaaN C\u1ea4U H\u00ccNH<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\"><\/ol>\n\n\n\n<p><strong>B\u01b0\u1edbc 1: Truy c\u1eadp Automation<\/strong><\/p>\n\n\n\n<p>\u0110\u0103ng nh\u1eadp v\u00e0o giao di\u1ec7n qu\u1ea3n l\u00fd c\u1ee7a Fortinet.<\/p>\n\n\n\n<p>\u1ede thanh b\u00ean tr\u00e1i, ch\u1ecdn <strong>Security Fabric \u2192 Automation.<\/strong><\/p>\n\n\n\n<p>Trong trang Automation, nh\u1ea5p v\u00e0o n\u00fat <strong>Create New<\/strong> \u0111\u1ec3 t\u1ea1o m\u1ed9t Automation Stitch m\u1edbi.<\/p>\n\n\n\n<p>Trong h\u1ed9p tho\u1ea1i xu\u1ea5t hi\u1ec7n, nh\u1eadp t\u00ean cho <strong>Automation Stitch<\/strong> (v\u00ed d\u1ee5: VaciF_Backup_SFTP_Daily).<\/p>\n\n\n\n<p>\u0110\u1ea3m b\u1ea3o m\u1ee5c <strong>Status <\/strong>\u0111\u01b0\u1ee3c ch\u1ecdn l\u00e0 <strong>Enable.<\/strong><\/p>\n\n\n\n<p>\u1ede ph\u1ea7n <strong>Action Execution<\/strong>, ch\u1ecdn <strong>Sequential<\/strong> (th\u1ef1c hi\u1ec7n l\u1ea7n l\u01b0\u1ee3t) ho\u1eb7c <strong>Parallel<\/strong> (th\u1ef1c hi\u1ec7n \u0111\u1ed3ng th\u1eddi) d\u1ef1a theo nhu c\u1ea7u c\u1ee7a b\u1ea1n.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"760\" src=\"https:\/\/vacif.com\/en\/wp-content\/uploads\/sites\/3\/2024\/12\/cau-hinh-firewall-fortinet-tu-dong-backup-hang-ngay-thong-qua-sftp.png\" alt=\"\" class=\"wp-image-20996\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 2: Th\u00eam Trigger (K\u00edch ho\u1ea1t t\u1ef1 \u0111\u1ed9ng)<\/strong><\/p>\n\n\n\n<p>Nh\u1ea5p v\u00e0o n\u00fat <strong>Add Trigger<\/strong>&nbsp;<\/p>\n\n\n\n<p>M\u1ed9t c\u1eeda s\u1ed5 m\u1edbi xu\u1ea5t hi\u1ec7n, \u1edf \u0111\u00e2y ch\u1ecdn <strong>Schedule<\/strong> t\u1eeb danh s\u00e1ch c\u00e1c Trigger.<\/p>\n\n\n\n<p>\u1ede ph\u1ea7n c\u00e0i \u0111\u1eb7t l\u1ecbch:<\/p>\n\n\n\n<p><strong>Name:<\/strong> \u0110\u1eb7t t\u00ean cho l\u1ecbch, v\u00ed d\u1ee5: Daily_23:59.<\/p>\n\n\n\n<p><strong>Description:<\/strong> B\u1ea1n c\u00f3 th\u1ec3 ghi ch\u00fa th\u00eam n\u1ebfu mu\u1ed1n.<\/p>\n\n\n\n<p><strong>Frequency<\/strong>: Ch\u1ecdn <strong>Daily<\/strong> (h\u00e0ng ng\u00e0y).<\/p>\n\n\n\n<p><strong>Hour:<\/strong> Ch\u1ecdn gi\u1edd m\u00e0 b\u1ea1n mu\u1ed1n l\u1ecbch backup t\u1ef1 \u0111\u1ed9ng di\u1ec5n ra (v\u00ed d\u1ee5: 23 gi\u1edd).<\/p>\n\n\n\n<p><strong>Minute:<\/strong> Ch\u1ecdn ph\u00fat (v\u00ed d\u1ee5: 59 ph\u00fat).<\/p>\n\n\n\n<p>Sau khi ho\u00e0n th\u00e0nh, nh\u1ea5p v\u00e0o n\u00fat <strong>OK<\/strong> \u0111\u1ec3 l\u01b0u l\u1ea1i c\u1ea5u h\u00ecnh Trigger nh\u01b0 trong h\u00ecnh.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/vacif.com\/en\/wp-content\/uploads\/sites\/3\/2024\/12\/cau-hinh-firewall-fortinet-tu-dong-backup-hang-ngay-thong-qua-sftp-1.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 3: Th\u00eam Action (H\u00e0nh \u0111\u1ed9ng)<\/strong><\/p>\n\n\n\n<p>Sau khi th\u00eam Trigger th\u00e0nh c\u00f4ng, ti\u1ebfp t\u1ee5c b\u1ea5m v\u00e0o <strong>Add Action <\/strong>v\u00e0 ch\u1ecdn<strong> CLI Script..<\/strong><\/p>\n\n\n\n<p>T\u1ea1i m\u1ee5c <strong>Name<\/strong>, nh\u1eadp t\u00ean c\u1ee7a h\u00e0nh \u0111\u1ed9ng n\u00e0y. V\u00ed d\u1ee5: <strong>Backup_SFTP<\/strong><\/p>\n\n\n\n<p><strong>Minimum Interval<\/strong>: \u0110\u1ec3 m\u1eb7c \u0111\u1ecbnh l\u00e0 0 gi\u00e2y (ho\u1eb7c \u0111i\u1ec1u ch\u1ec9nh n\u1ebfu mu\u1ed1n th\u1eddi gian ch\u1edd gi\u1eefa c\u00e1c l\u1ea7n ch\u1ea1y script).<\/p>\n\n\n\n<p><strong>Description<\/strong>: ghi ch\u00fa v\u1ec1 h\u00e0nh \u0111\u1ed9ng n\u00e0y n\u1ebfu c\u1ea7n.<\/p>\n\n\n\n<p>Trong m\u1ee5c <strong>CLI Script<\/strong>, nh\u1eadp \u0111o\u1ea1n m\u00e3 sau v\u00e0o \u00f4 <strong>Script<\/strong>:<\/p>\n\n\n\n<p>execute backup full-config sftp fortinet\/VaciF_Backup_%date%.conf 10.0.0.2 ntp Monday@123<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><em><span style=\"text-decoration: underline;\">Gi\u1ea3i th\u00edch chi ti\u1ebft \u0111o\u1ea1n script:<\/span><\/em><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>execute backup full-config sftp:<\/strong> \u0110\u00e2y l\u00e0 l\u1ec7nh \u0111\u1ec3 th\u1ef1c hi\u1ec7n backup to\u00e0n b\u1ed9 c\u1ea5u h\u00ecnh qua giao th\u1ee9c SFTP.<\/li>\n\n\n\n<li><strong>fortinet\/VaciF_Backup_%%date%%.conf:<\/strong> \u0110\u01b0\u1eddng d\u1eabn v\u00e0 t\u00ean file s\u1ebd \u0111\u01b0\u1ee3c l\u01b0u tr\u00ean SFTP server<strong>. %%date%%<\/strong> s\u1ebd t\u1ef1 \u0111\u1ed9ng th\u00eam ng\u00e0y hi\u1ec7n t\u1ea1i v\u00e0o t\u00ean file \u0111\u1ec3 m\u1ed7i l\u1ea7n backup s\u1ebd c\u00f3 t\u00ean file kh\u00e1c nhau.<\/li>\n\n\n\n<li><strong>10.0.0.2:<\/strong> \u0110\u1ecba ch\u1ec9 IP c\u1ee7a SFTP server n\u01a1i mu\u1ed1n l\u01b0u file backup.<\/li>\n\n\n\n<li><strong>nttp:<\/strong> Username \u0111\u1ec3 \u0111\u0103ng nh\u1eadp v\u00e0o SFTP server.<\/li>\n\n\n\n<li><strong>Monday@123<\/strong>: Password c\u1ee7a t\u00e0i kho\u1ea3n nttp&nbsp;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><strong>Administrator profile<\/strong>: Ch\u1ecdn t\u00e0i kho\u1ea3n qu\u1ea3n tr\u1ecb c\u00f3 quy\u1ec1n \u0111\u1ea7y \u0111\u1ee7, th\u01b0\u1eddng l\u00e0 super_admin.<\/p>\n\n\n\n<p><strong>Execute on Security Fabric<\/strong>: b\u1ecf ch\u1ecdn m\u1ee5c n\u00e0y n\u1ebfu kh\u00f4ng c\u00f3 nhu c\u1ea7u ch\u1ea1y tr\u00ean Security Fabric.<\/p>\n\n\n\n<p>Sau khi nh\u1eadp xong, nh\u1ea5n <strong>OK<\/strong> \u0111\u1ec3 l\u01b0u l\u1ea1i c\u1ea5u h\u00ecnh.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/vacif.com\/en\/wp-content\/uploads\/sites\/3\/2024\/12\/cau-hinh-firewall-fortinet-tu-dong-backup-hang-ngay-thong-qua-sftp-2.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 4: Ho\u00e0n t\u1ea5t Automation Stitch<\/strong><\/p>\n\n\n\n<p>Sau khi \u0111\u00e3 thi\u1ebft l\u1eadp xong Trigger v\u00e0 Action nh\u01b0 trong h\u00ecnh, nh\u1ea5n v\u00e0o n\u00fat <strong>OK<\/strong> \u1edf ph\u00eda d\u01b0\u1edbi \u0111\u1ec3 ho\u00e0n t\u1ea5t vi\u1ec7c t\u1ea1o <strong>Automation Stitch<\/strong> n\u00e0y.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/vacif.com\/en\/wp-content\/uploads\/sites\/3\/2024\/12\/cau-hinh-firewall-fortinet-tu-dong-backup-hang-ngay-thong-qua-sftp-3.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 5: Ki\u1ec3m tra c\u1ea5u h\u00ecnh<\/strong><\/p>\n\n\n\n<p>Nh\u1ea5p <strong>OK <\/strong>\u0111\u1ec3 ho\u00e0n t\u1ea5t vi\u1ec7c t\u1ea1o l\u1ecbch t\u1ef1 \u0111\u1ed9ng backup h\u00e0ng ng\u00e0y.<\/p>\n\n\n\n<p>Sau khi l\u01b0u, Fortinet s\u1ebd t\u1ef1 \u0111\u1ed9ng th\u1ef1c hi\u1ec7n backup theo l\u1ecbch h\u00e0ng ng\u00e0y \u0111\u00e3 c\u1ea5u h\u00ecnh.<\/p>\n\n\n\n<p>C\u00f3 th\u1ec3 ki\u1ec3m tra l\u1ea1i Automation Stitch n\u00e0y trong ph\u1ea7n <strong>Security Fabric<\/strong> \u2192 <strong>Automation, <\/strong>click chu\u1ed9t ph\u1ea3i v\u00e0 ch\u1ecdn<strong> Test Automation Stitch <\/strong>\u0111\u1ec3 xem n\u00f3 \u0111ang ho\u1ea1t \u0111\u1ed9ng.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/vacif.com\/en\/wp-content\/uploads\/sites\/3\/2024\/12\/cau-hinh-firewall-fortinet-tu-dong-backup-hang-ngay-thong-qua-sftp-4.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>K\u1ebft qu\u1ea3:<\/strong><\/p>\n\n\n\n<p>Khi qu\u00e1 tr\u00ecnh t\u1ea1o ho\u00e0n t\u1ea5t, FortiGate s\u1ebd t\u1ef1 \u0111\u1ed9ng th\u1ef1c hi\u1ec7n backup theo l\u1ecbch h\u00e0ng ng\u00e0y v\u00e0o l\u00fac 23:59 v\u00e0 g\u1eedi file backup l\u00ean server SFTP \u0111\u00e3 \u0111\u1ecbnh.<\/p>\n\n\n\n<p><strong>L\u01b0u \u00fd:<\/strong> N\u1ebfu kh\u00f4ng th\u1ea5y file g\u1eedi v\u1ec1 trong \u0111\u01b0\u1eddng d\u1eabn th\u00ec c\u1ea7n xem l\u1ea1i quy\u1ec1n c\u1ee7a th\u01b0 m\u1ee5c<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/vacif.com\/en\/wp-content\/uploads\/sites\/3\/2024\/12\/cau-hinh-firewall-fortinet-tu-dong-backup-hang-ngay-thong-qua-sftp-5.png\" alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I &#8211; M\u1ee4C \u0110\u00cdCH B\u00c0I VI\u1ebeT B\u00e0i vi\u1ebft n\u00e0y nh\u1eb1m h\u01b0\u1edbng d\u1eabn c\u00e1ch c\u1ea5u h\u00ecnh firewall Fortinet \u0111\u1ec3 t\u1ef1 \u0111\u1ed9ng sao l\u01b0u (backup) c\u1ea5u h\u00ecnh h\u00e0ng ng\u00e0y th\u00f4ng qua giao th\u1ee9c SFTP (Secure File Transfer Protocol). Vi\u1ec7c sao l\u01b0u t\u1ef1 \u0111\u1ed9ng s\u1ebd gi\u00fap b\u1ea3o \u0111\u1ea3m d\u1eef li\u1ec7u c\u1ea5u h\u00ecnh c\u1ee7a firewall \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef an [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":21524,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[80],"tags":[73,505],"class_list":["post-20989","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-huong-dan-tai-lieu","tag-backup","tag-firewall-fortinet","entry","has-media"],"_links":{"self":[{"href":"https:\/\/vacif.com\/en\/wp-json\/wp\/v2\/posts\/20989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vacif.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vacif.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vacif.com\/en\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/vacif.com\/en\/wp-json\/wp\/v2\/comments?post=20989"}],"version-history":[{"count":5,"href":"https:\/\/vacif.com\/en\/wp-json\/wp\/v2\/posts\/20989\/revisions"}],"predecessor-version":[{"id":21526,"href":"https:\/\/vacif.com\/en\/wp-json\/wp\/v2\/posts\/20989\/revisions\/21526"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vacif.com\/en\/wp-json\/wp\/v2\/media\/21524"}],"wp:attachment":[{"href":"https:\/\/vacif.com\/en\/wp-json\/wp\/v2\/media?parent=20989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vacif.com\/en\/wp-json\/wp\/v2\/categories?post=20989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vacif.com\/en\/wp-json\/wp\/v2\/tags?post=20989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}