이전 Fortigate UTM 정책 추출 방법을 포스팅 하였는데요.
정책 추출 외 Fortigate UTM IP객체, 그룹, 서비스도 추출 하는 방법을 포스팅 합니다.
1) IPv4/IPv6 Address
2) IP Groups
3) Service
1) 하기 URL File Download
https://github.com/maaaaz/fgpoliciestocsv
GitHub - maaaaz/fgpoliciestocsv: A simple script to extract policies from a FortiGate configuration file to CSV
A simple script to extract policies from a FortiGate configuration file to CSV - GitHub - maaaaz/fgpoliciestocsv: A simple script to extract policies from a FortiGate configuration file to CSV
github.com
2. Firewall Config File Download
3. 명령 프롬포트(CMD) -> fgpoliciestoscv 파일의 디렉터리로 이동 ->
Address 추출 : fgaddressestocsv.py -i "Config File Name" 명령어 입력
Groups 추출 : fggroupstocsv.py -i "Config File Name" 명령어 입력
Address 추출 : fgservicestocsv.py -i "Config File Name" 명령어 입력
4. 생성된 방화벽 정책의 CSV 파일 확인
(컬럼 구분 없을 경우 Excel의 데이터 -> 텍스트 나누기 -> 구분 기호(세미콜론) 분리 과정을 진행하면 가공 진행
'1. Security Equipment > 1. FW' 카테고리의 다른 글
Fortigate Security Profile License Status Check (0) | 2022.02.10 |
---|---|
Fortigate System Event Log GUI 표현 설정 방법 (0) | 2022.02.10 |
Fortigate UTM(Firewall) System Information에서의 WAN IP Unknown 또는 Spinning 발생 시 대처 (0) | 2022.01.23 |
FortiOS v7.0.2(Fortigate UTM/Firewall) 방화벽 정책 추출 기능 개발(CSV, JSON) (0) | 2022.01.23 |
Fortigate UTM Policy Export(포티게이트 방화벽 정책 추출) (0) | 2022.01.23 |