728x90
반응형

이전 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의 데이터 -> 텍스트 나누기 -> 구분 기호(세미콜론) 분리 과정을 진행하면 가공 진행

 
 
 
728x90
반응형

+ Recent posts