시스템 구성
- REST API 서버: Java + Spring Boot 프레임워크 기반으로 구현
- 클라이언트: Java로 작성
- OS: Ubuntu 22.04 LTS

Ubuntu 설치, NAT 설정 후
OpenSSH 설치 및 내부망 접속

외부망에서 접속결과

원인 분석: 절전 모드로 인한 SSH 접속 불가? → [Ubuntu 20.04] 절전 모드 비활성화
root@hyunahn-Z390-UD:/home/hyunahn# systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Created symlink /etc/systemd/system/sleep.target → /dev/null.
Created symlink /etc/systemd/system/suspend.target → /dev/null.
Created symlink /etc/systemd/system/hibernate.target → /dev/null.
Created symlink /etc/systemd/system/hybrid-sleep.target → /dev/null.
비활성화 결과 확인
root@hyunahn-Z390-UD:/home/hyunahn# systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target
○ sleep.target
Loaded: masked (Reason: Unit sleep.target is masked.)
Active: inactive (dead)
○ suspend.target
Loaded: masked (Reason: Unit suspend.target is masked.)
Active: inactive (dead)
○ hibernate.target
Loaded: masked (Reason: Unit hibernate.target is masked.)
Active: inactive (dead)
○ hybrid-sleep.target
Loaded: masked (Reason: Unit hybrid-sleep.target is masked.)
Active: inactive (dead)
원인 분석: 정보시스템실에 외부망 접속 권한 요청 → 규정 상 허가 안됨

내부망 방화벽: Outbound 허용, Inbound 거부 → GET 방식이 아닌 POST 방식으로 JSON을 보내는 방향을 검토

'Training & Research Projects > API server,Client Development' 카테고리의 다른 글
| localhost 도메인부여, 인증서 발급 (1) | 2024.07.31 |
|---|---|
| Spring Boot Server 외부에서 localhost 접속하기 (0) | 2024.07.31 |
| 프로젝트(과제) 개요 (0) | 2024.07.29 |