LPIC-3 303オリジナル問題オリジナルバーチャルプライベートネットワーク(VPN)
バーチャルプライベートネットワーク(VPN) 問3(LPIC-3 303 Security オリジナル問題)strongSwan 全体の設定の置き場所
strongSwan の全体の動きを決める設定ファイルと、その設定ファイルが部品ごとの設定を読み込むディレクトリとして、正しいものはどれか。2 つ選べ。
2 つ選んでください(0 / 2)
わからない・答えと解説を見る
結論全体の設定は /etc/strongswan.conf、部品ごとの設定は /etc/strongswan.d/ です。
$ cat /etc/strongswan.confcharon { load_modular = yes plugins { include strongswan.d/charon/*.confプラグインごとの設定
}}include strongswan.d/*.conf部品ごとの設定を読む
選択肢ごとの解説
○ア/etc/strongswan.conf全体の設定ファイル
strongswan.conf は strongSwan の部品(charon・swanctl など)の動きを決める全体の設定ファイルです。
○ウ/etc/strongswan.d/部品ごとの設定
strongswan.d/ には部品やプラグインごとの設定が分けて置かれ、strongswan.conf の include で読み込まれます。
×イ/var/run/strongSwan/実行中の一時的な場所
/var/run(/run)は動いている間の一時的なファイルを置く場所で、設定ファイルは置きません。
×エ/opt/strongSwan.d/既定の場所ではない
/opt は追加のソフトを入れる場所で、strongSwan の設定のディレクトリではありません。
×オ/etc/strongSWN.conf名前が違う
strongSWN.conf というファイルはありません。名前は strongswan.conf(すべて小文字)です。

strongswan.conf は「目次」で、中身の多くは strongswan.d/ の「各章のファイル」に分けてあります。目次の最後にある include の行が「各章を読み込む」の合図です。
ひっかけ注意/etc/strongSWN.conf のように一部の字が違うものに注意します。名前は全部小文字の strongswan です。
📚 一緒に覚える:2 つの設定の系統
- /etc/strongswan.conf と /etc/strongswan.d/:strongSwan 全体と各プラグインの動き。
- /etc/swanctl/swanctl.conf:つなぐ相手(接続)や鍵の設定。
- /etc/swanctl/ の下:証明書・を種類ごとのディレクトリに置く。
- 配布物によって置き場所が変わることがあるので、実機では man strongswan.conf で確かめる。
覚え方目次は strongswan.conf、章は strongswan.d/。
LPI LPIC-3 303 Security(303-300)の出題範囲をもとにした、うごわかのオリジナル問題です。解説・図解もすべてオリジナルで、本試験の問題ではありません。