OPNsense WireGuard 핸드셰이크 실패 및 터널 라우팅 해결

💡 핵심 요약 (Executive Summary)

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

📑 Table of Contents
WireGaurd Client 하드웨어 종속적 이슈
Reference & Guidelines (NOTE)

아래의 모든 경우는 분할터널 선언으로 발생하는 이슈. full-vpn으로 해결 가능성 있음

Android Mobile (Samsung Galaxy s25 Ultra)
Reference & Guidelines (NOTE)

멀티 DNS선언시 사설 DNS 찾기 실패

  • When:
bash
DNS = 192.168.1.53, 8.8.8.8, 1.1.1.1
  AllowedIPs = 10.0.X.X/24, 118.37.2.0/24, 192.168.118.0/24
  • Mac OS – WG Client: succeed
  • Samsung Galaxy s25 Ultra – WG Client : failed
  • When: AllowedIPs = 0.0.0.0/0, ::/0 (Full VPN Tunnel)
  • Internal – TCP/UDP/DNS: succeed
  • External (ex 8.8.8.8) – TCP/UDP/DNS: failed
  • Solved?:
  • 분할터널 정상 동작시에 퍼블릭 DNS가 필요하진 않으므로, 아래와 같이 구성 (all-succeed)
bash
DNS = 192.168.1.53
  AllowedIPs = 10.0.X.X/24, 118.37.2.0/24, 192.168.118.0/24
wg-quick CLI on Mac
Reference & Guidelines (NOTE)

분할 터널 설정시 Internal 접속 불가, Full VPN Tunnel 사용시 Internet 접속 불가.

  • Needs Action: telnet 192.168.118.53 53
  • Mac OS – WG Client:

    • succeed:
    bash
    AllowedIPs = 10.0.X.X/24, 118.37.2.0/24, 192.168.118.0/24
        DNS = 192.168.118.53
    </li>
    </ul>
    
    • Mac OS – CLI:
      • failed:
    bash
    AllowedIPs = 10.0.X.X/24, 118.37.2.0/24, 192.168.118.0/24
          DNS = 192.168.118.53
    - <code>succeed</code>: (but internal Only) = <code>failed</code>: <code>telnet 8.8.8.8 53</code>
    
    bash
    AllowedIPs = 0.0.0.0/0, ::/0
          DNS = 192.168.118.53
    Full-VPN
    • Full-VPN 사용에서 WAN으로 접속이 가능해지면 위에서 정의한 모든 클라이언트 종속적 문제가 해결됨.
    bash
    AllowedIPs = 0.0.0.0/0, ::/0
      DNS = 192.168.118.53
    • solved
      • Client Config

        txt
        [Interface]
          PrivateKey = <secret>
          Address = 10.0.X.X/32
          DNS = 192.168.118.53
        
          [Peer]
          PublicKey = <secret>
          AllowedIPs = 0.0.0.0/0, ::/0
          Endpoint = <WAN>:41821
          PersistentKeepalive = 25

Comments

Leave a Reply

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