OPNsense 방화벽 XML 설정 Git 자동 백업 및 이력 관리

💡 핵심 요약 (Executive Summary)

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

Step0. 사전준비 (Github)
  • SSH Keypair 생성
bash
mkdir opnsense
  ssh-keygen -f ~/opnsense/opnsense

  # 공개키 클립보드에 복사
  cat ~/opnsense/opnsense.pub | pbcopy

  # 개인키 클립보드에 복사
  cat ~/opnsense/opnsense | pbcopy
  • backup Repository 생성

  • 계정 전체 허용

  • 계정설정에서 SSH 공개키 등록

  • 리포지토리 허용

  • 계정설정 → Switch setting context를 클릭해서 Organization Context로 이동
  • Deploy key Enable

  • Repository → Setting의 Deploy keys에서 공개키 등록 (enable Allow write access)

Step1. 플러그인 설치
  • os-git-backup 설치
Step2. 활성화
Reference & Guidelines (NOTE)

시스템 → 구성 → 백업

  • 주소는 다음의 형식을 따라야 함: ssh://github.com/user_name/repo_name.git
  • 개인키 입력
  • 사용자 이름: git
  • Force Push 체크

Comments

Leave a Reply

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