CentOS 8でのVPN(L2TP/IPsec)構築のメモ

CentOS 8の記事が少なめで、ややハマったのでメモ

エラー

initial Main Mode message received but no connection has been authorized with policy PSK  

が出る。

解決策

デフォルトで/etc/ipsec.conf内にて

include /etc/crypto-policies/back-ends/libreswan.config

をしており、これが悪さをしていた模様。コメントアウトすることで解消(中身未確認)

その他

L2TP kernel support not detected (try modprobing l2tp_ppp and pppol2tp) 

については、xl2tpd.service内のmodprobe l2tp_pppをコメントアウトすることで対応した。