<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello Noel,<div><br></div><div>Thank you very much for your detailed answer. I started looking into ulogd2. Tutorials and documentation seem a bit scarce, but I'm sure I will find my way around it eventually. If you have a good recommendation please let me know.</div><div><br></div><div>Do you recommend keeping ulogd2's logs locally or rather feed them into a local LogStash? I wonder which one is faster and less resource hungry.</div><div><br></div><div>Many Thanks,</div><div>Houman</div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 15 Apr 2019 at 19:26, Noel Kuntze <noel.kuntze+strongswan-users-ml@thermi.consulting> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hello Houman,<br>
<br>
No, that is not a layer that strongSwan or freeradius does have access to. You need to log (and account) the user's traffic using, for example, a netflow collector or ulogd2 (which can use Linux's native conntrack connection tracking system) to capture the relevant data. Using ulogd2 is advised, because unless you disabled conntrack for the relevant connections, you are basically guaranteed to get all information from conntrack (unless ulogd2 can't keep up, but then you don't have enough resources, so you have another issue already).<br>
<br>
Kind regards<br>
<br>
Noel<br>
<br>
Am 15.04.19 um 20:13 schrieb Houman:<br>
> Hello,<br>
><br>
> We got a notification from the German Federal Office for Information Security that one of our users has been using a website with malware to steal personal information and commit online-banking fraud. To cover their tracks they have been using our StrongSwan VPN.<br>
><br>
><br>
> We have now blocked the IPs that resolve to the given website to prevent this from happening. Unfortunately, The freeRadius logs and syslog we have in place are not enough to pinpoint it to the exact culprit.<br>
><br>
><br>
> Is there a way to run strongswan with maximum verbose logs to see which EAP-Radius user has been accessing which IP address at what time? We would like to ban users like this in future.<br>
><br>
><br>
> From Freeradius we get to see the acctstartdate, acctupdatedate and acctstopdate but there is no way to relate this to their activities.<br>
><br>
><br>
><br>
> Many Thanks,<br>
><br>
> Houman<br>
<br>
</blockquote></div>