[strongSwan] Accounting Tickets

Gerd v. Egidy lists at egidy.de
Fri Feb 24 10:36:01 CET 2012


> > I've noticed though that the tickets do not contain information about
> > the tunnel outer ip address, typically in the "Calling-Station-Id" field.
> > Is there a precise reason that this field is missing, or would it be
> > possible to add it in a future release ?
> 
> No, there is no specific reason, I just forgot to add it. And it crossed
> my mind just this morning that it would be useful.
> 
> Calling-Station-Id is probably the best choice to include the outer
> address. Please try the attached patch. It encodes the IP as a string,
> as we SHOULD in Calling-Station-Id.

while you are at it: wouldn't it make sense to store the port number too, like 
<ip>:<port>?

When the user is behind a NAT gateway you'd need the port number too to 
identify the local ip behind the NAT gateway (given that you have access to 
logs on the NAT gateway).

Kind regards,

Gerd

-- 
Address (better: trap) for people I really don't want to get mail from:
jonas at cactusamerica.com




More information about the Users mailing list