-
raspberry pi Wireguard client connection timeoutRead | Write/Tech 2023. 10. 4. 02:37
배경
server : aws wireguard server
client 1 :Notebook
client 2 : raspberry pi
정리
1. 기존 세팅은 정상. 왜냐하면 서버, 1, 2는 같은 네트워크로 상호 icmp 패킷이 잘 동작했기 때문
2. 2에서 10분 대기 시 패킷이 전달X 통신 불가 현상 발생
3. 1과 server는 정상 작동
4. 2의 last handshake가 비정상적으로 길어짐
가설
a. 2의 절전모드
b. wireguard 세팅 문제
조치 결과
a. raspberry pi 절전모드 해제 =>X
b. 1의 persistent keepalive를 25로 설정 추가 =>O
nano /etc/wireguard/wg0.conf
[Interface]
.
.
.
[Peer]
.
.
.
PersistentKeepalive = 25
PersistentKeepalive : 25초마다 커넥션 연결을 위해 패킷을 보내는 옵션
옵션을 추가 후 정상적 작동
'Read | Write > Tech' 카테고리의 다른 글
[react-native] mac m1 환경 - 기본 설치(2) (0) 2023.10.19 [react-native] mac m1 환경 - 기본 설치 (0) 2023.10.19 react-native pod install "iphoneos" cannot be located (0) 2023.09.22 vscode platformIO Serial moniter not working (0) 2023.09.09 [react native] npm run android - SDK location not found. (0) 2023.08.24