strongswan.conf 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # /etc/strongswan.conf - strongSwan configuration file
  2. charon-systemd {
  3. load = random nonce pem pkcs1 x509 openssl revocation constraints curl vici socket-default kernel-netlink tnc-pdp tnc-imv tnc-tnccs tnccs-20 sqlite
  4. syslog {
  5. daemon {
  6. tls = 2
  7. tnc = 2
  8. imv = 3
  9. }
  10. }
  11. plugins {
  12. tnc-pdp {
  13. server = aaa.strongswan.org
  14. radius {
  15. secret = gv6URkSs
  16. }
  17. }
  18. tnc-imv {
  19. dlclose = no
  20. }
  21. }
  22. }
  23. libtls {
  24. suites = TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
  25. }
  26. libimcv {
  27. database = sqlite:///etc/db.d/config.db
  28. policy_script = /usr/local/libexec/ipsec/imv_policy_manager
  29. plugins {
  30. imv-swima {
  31. rest_api {
  32. uri = http://admin-user:strongSwan@tnc.strongswan.org/api/
  33. }
  34. }
  35. }
  36. }
  37. imv_policy_manager {
  38. command_allow = ssh root@moon 'logger -t charon-systemd -p auth.alert "\"host with IP address %s is allowed\""'
  39. command_block = ssh root@moon 'logger -t charon-systemd -p auth.alert "\"host with IP address %s is blocked\""'
  40. }