[strongSwan] Strongswan5 logging possibilities?

Azfar Hashmi azfar.hashmi at cloudways.com
Tue Mar 12 17:06:28 CET 2013


Okay I have compiled v5.0.2 with following options.

./configure --prefix=/root/strongswan5 --enable-eap-radius
--enable-xauth-eap --enable-curl --enable-eap-md5 --enable-mysql
--enable-sql

Then put below in strongswan.conf

charon {

load = sql mysql ...............................................

plugins {
 
eap-radius {
      secret = xxxxxx
      server = 127.0.0.1
    }
              
                sql {
                        loglevel = 1
                         database =
mysql://strongswanuser:StrongSwanpassword@localhost/strongswandb
                }
        }
}

Created above mysql db and put mysql schema

http://wiki.strongswan.org/projects/strongswan/repository/revisions/master/raw/src/libcharon/plugins/sql/mysql.sql

Left ipsec.conf as previously which include connection and client
credentials properties (certificates, xauth etc .....).

I can connect as I was before (via RSA and xauth-eap) but I can not see
any thing in mysql "logs" table!

What I am missing?

On 3/12/2013 2:42 PM, Azfar Hashmi wrote:
> Hi,
>
> I am using 5.0.2 with radius-eap auth. In 4.5 (Pluto) I was able to
> get which private ip is assigned to which public ip like below.
> "xx.48.49.xxx:4500 #141345: assigning virtual IP 10.0.0.68 to peer"
>
> But In v5 (Charon) I am getting only private ip.
> "assigning virtual IP 10.0.0.2 to peer 'test'"
>
> Is there a way I can get this value even by modifying code etc.
> Similarly I want to put logs only in sql and keep configuration,
> certificates etc in files, is it possible?
>
> -- 
>
> AzfarHashmi
>
> Cloudways
>
> Your Managed Cloud
>
>  
>
> e: azfar.hashmi at cloudways.com
>
> w: www.cloudways.com <http://www.cloudways.com>
>
>  
>
> PGP keyid: 0xF42034B0F915D729
>
> http://keyserver.pgp.com
>
>  
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.strongswan.org
> https://lists.strongswan.org/mailman/listinfo/users


-- 

AzfarHashmi

Cloudways

Your Managed Cloud

 

e: azfar.hashmi at cloudways.com

w: www.cloudways.com <http://www.cloudways.com>

 

PGP keyid: 0xF42034B0F915D729

http://keyserver.pgp.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20130312/16fb3c01/attachment.html>


More information about the Users mailing list