VPN터널이 Up되지 않습니다.
721
작성한 질문수 1
[root@ip-10-4-1-112 log]# service ipsec status
Redirecting to /bin/systemctl status ipsec.service
● ipsec.service - Internet Key Exchange (IKE) Protocol Daemon for IPsec
Loaded: loaded (/usr/lib/systemd/system/ipsec.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2022-07-31 06:39:52 UTC; 2s ago
Docs: man:ipsec(8)
man:pluto(8)
man:ipsec.conf(5)
Process: 7837 ExecStopPost=/usr/sbin/ipsec --stopnflog (code=exited, status=0/SUCCESS)
Process: 7834 ExecStopPost=/sbin/ip xfrm state flush (code=exited, status=0/SUCCESS)
Process: 7832 ExecStopPost=/sbin/ip xfrm policy flush (code=exited, status=0/SUCCESS)
Process: 7830 ExecStop=/usr/libexec/ipsec/whack --shutdown (code=exited, status=0/SUCCESS)
Process: 8092 ExecStartPre=/usr/sbin/ipsec --checknflog (code=exited, status=0/SUCCESS)
Process: 8089 ExecStartPre=/usr/sbin/ipsec --checknss (code=exited, status=0/SUCCESS)
Process: 7849 ExecStartPre=/usr/libexec/ipsec/_stackmanager start (code=exited, status=0/SUCCESS)
Process: 7845 ExecStartPre=/usr/libexec/ipsec/addconn --config /etc/ipsec.conf --checkconfig (code=exited, status=0/SUCCESS)
Main PID: 8105 (pluto)
Status: "Startup completed."
CGroup: /system.slice/ipsec.service
└─8105 /usr/libexec/ipsec/pluto --leak-detective --config /etc/ipsec.conf --nofork
Jul 31 06:39:52 ip-10-4-1-112.ap-northeast-1.compute.internal pluto[8105]: adding interface lo/lo ::1:500
Jul 31 06:39:52 ip-10-4-1-112.ap-northeast-1.compute.internal pluto[8105]: | setup callback for interface lo:500 fd 19
Jul 31 06:39:52 ip-10-4-1-112.ap-northeast-1.compute.internal pluto[8105]: | setup callback for interface lo:4500 fd 18
Jul 31 06:39:52 ip-10-4-1-112.ap-northeast-1.compute.internal pluto[8105]: | setup callback for interface lo:500 fd 17
Jul 31 06:39:52 ip-10-4-1-112.ap-northeast-1.compute.internal pluto[8105]: | setup callback for interface eth0:4500 fd 16
Jul 31 06:39:52 ip-10-4-1-112.ap-northeast-1.compute.internal pluto[8105]: | setup callback for interface eth0:500 fd 15
Jul 31 06:39:52 ip-10-4-1-112.ap-northeast-1.compute.internal pluto[8105]: loading secrets from "/etc/ipsec.secrets"
Jul 31 06:39:52 ip-10-4-1-112.ap-northeast-1.compute.internal pluto[8105]: loading secrets from "/etc/ipsec.d/aws.secrets"
Jul 31 06:39:52 ip-10-4-1-112.ap-northeast-1.compute.internal pluto[8105]: initiating all conns with alias='Tunnel1'
Jul 31 06:39:52 ip-10-4-1-112.ap-northeast-1.compute.internal pluto[8105]: initiating all conns with alias='Tunnel2'
답변 1
0
문제가 해결되어 공유드립니다.
/etc/ipsec.conf에서 pluto 디버그 모드를 실행하고 /var/log/openswan.log를 확인하니 아래와 같은 로그가 있었습니다.
Error: Failed to add connection "Tunnel1", esp="aes128-sha1;modp1024" is invalid: ESP encryption algorithm 'aes' is not supported.
위 로그를 검색해보니 유사한 사례가 있어서서 /etc/ipsec.d/aws.conf 의 phase2alg를 아래와 같이 수정하니 정상적으로 터널이 연결 되었습니다.
phase2alg=aes_gcm
0
안녕하세요 안데스라마님,
동일한 방법으로 phase2alg를 수정하여 문제를 해결하였는데, 해결 방법을 먼저 공유해주셔서 대단히 감사드립니다. :)
aws와 openswan이 업데이트 되는 과정에서 발생한 문제로 추측되는데 자세한 내용을 찾게 되면 이 답변에 이어서 공유드리겠습니다.
수업기간 연장 부탁드립니다.
0
21
2
6번 질문
0
40
2
강의 자료
1
29
2
현재 시점 기준으로 최신 시험 출제 범위가 반영되었다고보면 될까요?
0
40
2
섹션 17퀴즈 1번 답 오류 확인
0
30
1
1번 질문
0
51
2
안녕하세요
0
48
1
[수강 연장 문의] 직장 병행으로 인한 기간 연장 요청드립니다.
0
39
2
Readiness Probe 관련 질문드립니다.
0
34
1
강의 외 개념 및 시험 관련 질문
0
60
3
구매후 바로 질문 하나만요..
0
61
1
수강기간 연장 부탁드립니다.
0
50
2
라우트테이블문의
0
256
1
타 강의도 듣고 싶습니다. 문의 드립니다.
0
222
1
cloudformation 확인시
0
872
2
Openswan 및 Site-to-Site VPN 관련부분에서 overlapip 사용 없이 하는 방법은 어떻게 되나요 ?
0
385
2
ping 관련해서 질문드립니다.
0
374
3
6:23 초 부근 질문 드립니다.
0
281
3
nat gateway 과금 관련 문의
0
237
1
attachment routes 삭제시
0
179
1
peering 연결시 cidr
0
219
1
가용영역이 다르면 어떻게 되나요?
0
1071
2
route tables 관련문의
0
228
1
서브넷 CIDR 설정
0
258
1





