linux-ppp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pppd with radius-plugin seems to have troubles with traffic counter
@ 2004-06-22 15:46 Philipp Kolmann
  2004-07-07 11:37 ` Philipp Kolmann
  2004-07-08  2:52 ` pppd with radius-plugin seems to have troubles with traffic Clive Nicolson
  0 siblings, 2 replies; 3+ messages in thread
From: Philipp Kolmann @ 2004-06-22 15:46 UTC (permalink / raw)
  To: linux-ppp

Hi!

I seems to have found a bug in pppd 2.4.2. I am running a pptp-pppd VPN
server to authenticate Users coming in with laptops (at my university).

We authenticate the Users using the radius plugin and do also traffic
accounting with radius. Everything seems to be fine, but when a user
reaches over 4GB the traffic goes down to 0 again. I believe that this
could be a problem with an integer value running over.

Here is the relevant part of my mysql log file (I use a radiusd that
logs the acct-requests into a mysql db, interim accounting is done every
10 minutes):

040622 14:30:14   17953 Query       UPDATE calls SET
		acct_session_time\x16203,acct_input_octets’129211,
		acct_output_octetsB58766205,
		framed_ip_address='193.170.XX.XX',timestamp=NOW() 
		WHERE user_name='eXXXXXXX@student.tuwien.ac.at' AND 
		status= 1 AND acct_session_id='40D7E70949C7'
040622 14:40:14   17953 Query       UPDATE calls SET
		acct_session_time\x16803,acct_input_octets•118037,
		acct_output_octets\x110195513,
		framed_ip_address='193.170.XX.XX',timestamp=NOW() 
		WHERE user_name='eXXXXXXX@student.tuwien.ac.at' AND
		status= 1 AND acct_session_id='40D7E70949C7'

As you can see in theis session the acct_output_octets drops from over
4GB to around 100MB within 10 minutes (possible in our local lan).

I hope you can fix this,
thanks in advance
Philipp Kolmann
IT Dept.
Technical University of Vienna



-- 
Life is not fair,
but the root password helps!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pppd with radius-plugin seems to have troubles with traffic counter
  2004-06-22 15:46 pppd with radius-plugin seems to have troubles with traffic counter Philipp Kolmann
@ 2004-07-07 11:37 ` Philipp Kolmann
  2004-07-08  2:52 ` pppd with radius-plugin seems to have troubles with traffic Clive Nicolson
  1 sibling, 0 replies; 3+ messages in thread
From: Philipp Kolmann @ 2004-07-07 11:37 UTC (permalink / raw)
  To: linux-ppp

No reply at all.... 

Maybe someone could point out where to look at.
Or if more information is needed, please ask.

On Tue, Jun 22, 2004 at 05:46:45PM +0200, Philipp Kolmann wrote:
> Here is the relevant part of my mysql log file (I use a radiusd that
> logs the acct-requests into a mysql db, interim accounting is done every
> 10 minutes):
> 
> 040622 14:30:14   17953 Query       UPDATE calls SET
> 		acct_session_time\x16203,acct_input_octets’129211,
> 		acct_output_octetsB58766205,
> 		framed_ip_address='193.170.XX.XX',timestamp=NOW() 
> 		WHERE user_name='eXXXXXXX@student.tuwien.ac.at' AND 
> 		status= 1 AND acct_session_id='40D7E70949C7'
> 040622 14:40:14   17953 Query       UPDATE calls SET
> 		acct_session_time\x16803,acct_input_octets•118037,
> 		acct_output_octets\x110195513,
> 		framed_ip_address='193.170.XX.XX',timestamp=NOW() 
> 		WHERE user_name='eXXXXXXX@student.tuwien.ac.at' AND
> 		status= 1 AND acct_session_id='40D7E70949C7'
> 
> As you can see in theis session the acct_output_octets drops from over
> 4GB to around 100MB within 10 minutes (possible in our local lan).

Thanks
Philipp

-- 
Life is not fair,
but the root password helps!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pppd with radius-plugin seems to have troubles with traffic
  2004-06-22 15:46 pppd with radius-plugin seems to have troubles with traffic counter Philipp Kolmann
  2004-07-07 11:37 ` Philipp Kolmann
@ 2004-07-08  2:52 ` Clive Nicolson
  1 sibling, 0 replies; 3+ messages in thread
From: Clive Nicolson @ 2004-07-08  2:52 UTC (permalink / raw)
  To: linux-ppp

This is no bug, the counter is unsigned 32 bit, so can only count upto
4294967295. You have to watch out for roll over your self and correct for 
the situation. There maybe useful tricks in doing that.

Clive


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-07-08  2:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-22 15:46 pppd with radius-plugin seems to have troubles with traffic counter Philipp Kolmann
2004-07-07 11:37 ` Philipp Kolmann
2004-07-08  2:52 ` pppd with radius-plugin seems to have troubles with traffic Clive Nicolson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).