Strongswan.conf filelog: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 4: Zeile 4:
 
         load_modular = yes
 
         load_modular = yes
 
         filelog {
 
         filelog {
         /var/log/strongswan/charon.log {
+
         /var/log/charon.log {
 
             time_format = %b %e %T
 
             time_format = %b %e %T
 
             append = yes
 
             append = yes
Zeile 24: Zeile 24:
 
}
 
}
 
include strongswan.d/*.conf
 
include strongswan.d/*.conf
 +
 +
 +
</pre>
 +
=in /etc/strongswan.conf=
 +
<pre>
 +
charon {
 +
        load_modular = yes
 +
        filelog {
 +
        charon {
 +
          path = /var/log/charon.log
 +
          time_format = %b %e %T
 +
          append = yes
 +
          ike_name = yes
 +
          ike = 1
 +
          enc = 1
 +
          cfg = 2
 +
          default = 0
 +
          flush_line = yes
 +
      }
 +
        stderr {
 +
            ike = 2
 +
            knl = 3
 +
        }
 +
        }
 +
      plugins {
 +
                include strongswan.d/charon/*.conf
 +
        }
 +
}
 +
include strongswan.d/*.conf
 +
 +
 
</pre>
 
</pre>

Aktuelle Version vom 15. Dezember 2022, 12:42 Uhr

  • mkdir /var/log/strongswan
charon { 
        load_modular = yes
        filelog {
        /var/log/charon.log {
            time_format = %b %e %T
            append = yes
            ike_name = yes
            ike = 1
            enc = 1
            cfg = 2
            default = 0
            flush_line = yes
       }
        stderr {
            ike = 2
            knl = 3
        }
        }
      plugins {
                include strongswan.d/charon/*.conf
        }
}
include strongswan.d/*.conf


in /etc/strongswan.conf

charon {
        load_modular = yes
        filelog {
        charon {
           path = /var/log/charon.log
           time_format = %b %e %T
           append = yes
           ike_name = yes
           ike = 1
           enc = 1
           cfg = 2
           default = 0
           flush_line = yes
       }
        stderr {
            ike = 2
            knl = 3
        }
        }
      plugins {
                include strongswan.d/charon/*.conf
        }
}
include strongswan.d/*.conf