$ apt-get install -y \ ca-certificates \ ssl-cert \ openssl \ iproute2 \ iputils-ping \ libgmp10
$ VERSION="5.9.8" && \ DEV_PACKAGES="wget bzip2 make gcc libssl-dev libgmp-dev" && \ apt-get install -y $DEV_PACKAGES && \ mkdir -p strongswan-build && \ cd strongswan-build && \ wget --no-check-certificate https://download.strongswan.org/strongswan-$VERSION.tar.bz2 && \ tar -xjf strongswan-$VERSION.tar.bz2 && \ cd strongswan-$VERSION && \ ./configure --prefix=/usr --sysconfdir=/etc \ --enable-charon --enable-ikev2 --enable-nonce --enable-random \ --enable-openssl --enable-pem --enable-x509 --enable-pubkey \ --enable-constraints --enable-pki --enable-socket-default \ --enable-kernel-netlink --enable-swanctl --enable-resolve \ --enable-eap-identity --enable-eap-md5 --enable-eap-mschapv2 --enable-eap-dynamic \ --enable-eap-tls --enable-updown --enable-vici \ --enable-silent-rules && \ make -j4 all && make install && \ ln -s /usr/libexec/ipsec/charon charon
$ ipsec version Linux strongSwan U5.9.8/K5.15.0-53-generic University of Applied Sciences Rapperswil, Switzerland => 이후 "/etc/strongswan.d/charon.conf" (기본 값 사용해도 무관), "/etc/ipsec.secrets" (IKE ID에 따른 Pre-shared key 등), "/etc/ipsec.conf" (SA1, SA2설정) 을 적절히 수정 => 다음과 같은 명령으로 debug 실행할 수 있음. $ /usr/sbin/ipsec start --nofork --debug-all => 일반 데몬 실행은 다음과 같이 실행할 수 있음. $ /usr/sbin/ipsec start => 재시작 명령 $ /usr/sbin/ipsec restart => 종료 명령 $ /usr/sbin/ipsec stop
Initiator(행위의 시작) Responder(행위를 받는 입장) TASK->build_i =====================message===================> TASK->process_r TASK->build_r <====================message==================== TASK->process_i