TMAegis베타
fortiswitch 관련 규칙 더 보기

Fortinet FortiSwitch

TMA-FORTISWITCH-1.7.1.1.7

Ensure default Admin ports are changed

보통레벨 1자동fortiswitch

설명

FortiGate admin ports listen on the common ports of 80 and 443. This is default behavior. While interface access is controlled by configuring network interfaces, the FortiGate still listens on the admin ports that have been configured, which can also cause a conflict should 80 or 443 be needed as part of additional configuration later on. FAILs if the HTTP/HTTPS/SSH administrative ports are still the defaults (80, 443, 22); the CIS text uses FortiGate syntax (admin-port/admin-sport), FortiSwitchOS uses system web http-port/https-port. Audited against FortiSwitchOS 'show full-configuration' output (standalone FortiSwitch, saved in full); patterns are scoped to the named 'config ... end' block, whose member lines are indented.

점검 방법

감사 방식: 구성 패턴

패턴
(?m)(?:^config system global\n(?:[ \t]+[^\n]*\n)*?[ \t]+set admin-(?:port 80|sport 443|ssh-port 22)[ \t]*$|^config system web\n(?:[ \t]+[^\n]*\n)*?[ \t]+set http(?:s-port 443|-port 80)[ \t]*$)

조치 방법

조치 방식: 가이드 또는 인프라 패치

config system global set admin-ssh-port 4422 end config system web set http-port 8082 set https-port 4443 end # CIS guidance: config system global set admin-https-redirect disable set admin-port 8082 **(or any other uncommon port)** set admin-server-cert "self-sign" set admin-sport 4343 **(or any other uncommon port)** end OR From Web GUI: 1. System > Settings 2. Change the ports/settings under 'Administration Settings' section. NOTE: https redirection must be turned off as well as changing port 80. This is due to the nature of how browser port redirection works. The browser will be redirected from port 80 to port 443 or whichever 'admin-sport' is configured, meaning that it will still listen on port 80 even when the port has been reconfigured.

속성

운영 체제
모두
태그
fortiswitchauthentication
참고 자료
CIS FortiSwitch Benchmark v1.0.0 - 1.7.1.1.7 Ensure default Admin ports are changed

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target fortiswitch