[Openswan Users] For l2tp/ipsec, linux gateway how to know the logon user name

顏宏愷 yhkai at cht.com.tw
Fri Oct 23 04:45:05 EDT 2009


Hi Frank,
I copy the /usr/share/doc/sample/auth-up and auth-down  to /etc/ppp/, then I can check the /var/log/pppstats file to get connected peer-name and other more information.

Thanks a lot
 jimmy

-----Original Message-----
From: users-bounces at openswan.org [mailto:users-bounces at openswan.org] On Behalf Of Frank Schmirler
Sent: Friday, October 23, 2009 2:50 PM
To: users at openswan.org
Subject: Re: [Openswan Users] For l2tp/ipsec, linux gateway how to know the logon user name

On Fri, 23 Oct 2009 14:05:06 +0800, [UTF-8?]顏宏愷 wrote
> By the way, to Frank:
> I have test ip-up , but it does not get anything about  peername.

It's actually /etc/ppp/auth-up which gets the peername in $2 (see "man pppd").

Cheers,
an other Frank ;)
_______________________________________________
Users at openswan.org
http://lists.openswan.org/mailman/listinfo/users
Building and Integrating Virtual Private Networks with Openswan: 
http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155


More information about the Users mailing list