openfortivpn CLI 기반 Fortinet SSL-VPN 터널 연결 가이드

💡 핵심 요약 (Executive Summary)

본 가이드는 network vpn openfortivpn 핵심 가이드 및 실전 아키텍처의 핵심 개념, 실전 구성 명령어 및 아키텍처 베스트 프랙티스를 다룹니다. 클라우드 네이티브 및 인프라 엔지니어링 실무에 즉시 활용 가능하도록 체계적으로 정리했습니다.

bash
# 패키지 설치
brew install openfortivpn

# 계정정보를 이용하여 실행
sudo openfortivpn {{ 원격 게이트웨이 }}:{{ 포트 }} \
 --username={{ 아이디 }} \
 --password={{ 패스워드 }}

# 에러로그 확인: 'trusted-cert = '뒷부분 복사: ex) faa3576e871f015a55d71910ba63cf9818e24fc92727d80e0665e4c759533eb7
>>>
ERROR:  Gateway certificate validation failed, and the certificate digest is not in the local whitelist. If you trust it, rerun with:
ERROR:      --trusted-cert faa3576e871f015a55d71910ba63cf9818e24fc92727d80e0665e4c759533eb7
ERROR:  or add this line to your configuration file:
ERROR:      trusted-cert = faa3576e871f015a55d71910ba63cf9818e24fc92727d80e0665e4c759533eb7
ERROR:  Gateway certificate:
ERROR:      subject:
ERROR:          C=US
ERROR:          ST=California
ERROR:          L=Sunnyvale
ERROR:          O=Fortinet
ERROR:          OU=FortiGate
ERROR:          CN=FGT80ETK20016241
ERROR:          [email protected]
ERROR:      issuer:
ERROR:          C=US
ERROR:          ST=California
ERROR:          L=Sunnyvale
ERROR:          O=Fortinet
ERROR:          OU=Certificate Authority
ERROR:          CN=support
ERROR:          [email protected]
ERROR:      sha256 digest:
ERROR:          faa3576e871f015a55d71910ba63cf9818e24fc92727d80e0665e4c759533eb7
INFO:   Closed connection to gateway.
ERROR:  Gateway certificate validation failed, and the certificate digest is not in the local whitelist. If you trust it, rerun with:
ERROR:      --trusted-cert faa3576e871f015a55d71910ba63cf9818e24fc92727d80e0665e4c759533eb7
ERROR:  or add this line to your configuration file:
ERROR:      trusted-cert = faa3576e871f015a55d71910ba63cf9818e24fc92727d80e0665e4c759533eb7
ERROR:  Gateway certificate:
ERROR:      subject:
ERROR:          C=US
ERROR:          ST=California
ERROR:          L=Sunnyvale
ERROR:          O=Fortinet
ERROR:          OU=FortiGate
ERROR:          CN=FGT80ETK20016241
ERROR:          [email protected]
ERROR:      issuer:
ERROR:          C=US
ERROR:          ST=California
ERROR:          L=Sunnyvale
ERROR:          O=Fortinet
ERROR:          OU=Certificate Authority
ERROR:          CN=support
ERROR:          [email protected]
ERROR:      sha256 digest:
ERROR:          faa3576e871f015a55d71910ba63cf9818e24fc92727d80e0665e4c759533eb7
INFO:   Could not log out.
<<<
방법 1 : config
bash
# config파일 수정
vi /opt/homebrew/etc/openfortivpn/openfortivpn/config

---
### configuration file for openfortivpn, see man openfortivpn(1) ###

host = {{ 원격 게이트웨이 }}
port = {{ 포트 }}
username = {{ 아이디 }}
password = {{ 비밀번호 }}
# 에러로그 내의 인증서
trusted-cert = {{ 인증서 }}
bash
# 실행
sudo openfortivpn

sshpass -pbackup12#$ ssh [email protected]
방법 2 : flags
bash
sudo openfortivpn {{ 원격 게이트웨이 }}:{{ 포트 }} \
 --username={{ 아이디 }} \
 --password={{ 비밀번호 }} \
 --trusted-cert {{ 인증서 }}

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *