Spliting National & International
Hi, Is there an easy way to separate accounting for national and international traffic with freeradius? (National traffic is charged at a lower rate per GB than international). Any suggestions would be appreciated. Cheers Liam
On Wed 27 Jun 2007, Liam Farr wrote:
Hi, Is there an easy way to separate accounting for national and international traffic with freeradius? (National traffic is charged at a lower rate per GB than international).
National and International VoIP traffic.. yes.. just check for the country prefix in Called-Station-Id. If you are talking about some other type of national and internation trafic then you will need to be more specific. Cheers -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
Hi, All data / traffic, not just voip. I guess it would have to be done by the route somehow? Cheers Liam On 27/06/07, Peter Nixon <listuser@peternixon.net> wrote:
On Wed 27 Jun 2007, Liam Farr wrote:
Hi, Is there an easy way to separate accounting for national and international traffic with freeradius? (National traffic is charged at a lower rate per GB than international).
National and International VoIP traffic.. yes.. just check for the country prefix in Called-Station-Id. If you are talking about some other type of national and internation trafic then you will need to be more specific.
Cheers
--
Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc - List info/subscribe/unsubscribe? See http://www.freeradius.org/list /users.html
-- Kind Regards Liam Farr Director Farr Networks Limited Ph: +64 27 6664644 Em: liam@farr.net.nz Web: www.farr.net.nz
Liam Farr wrote:
Hi,
All data / traffic, not just voip. I guess it would have to be done by the route somehow?
Cheers
Liam
On 27/06/07, *Peter Nixon* <listuser@peternixon.net <mailto:listuser@peternixon.net>> wrote:
On Wed 27 Jun 2007, Liam Farr wrote: > Hi, > Is there an easy way to separate accounting for national and international > traffic with freeradius? (National traffic is charged at a lower rate per > GB than international).
National and International VoIP traffic.. yes.. just check for the country prefix in Called-Station-Id. If you are talking about some other type of national and internation trafic then you will need to be more specific.
Cheers
So you want to charge more for data transfered between clients, and servers outside your country ? -- Arran Cudbard-Bell (A.Cudbard-Bell@sussex.ac.uk) Authentication, Authorisation and Accounting Officer Infrastructure Services | ENG1 E1-1-08 University Of Sussex, Brighton EXT:01273 873900 | INT: 3900
On Wed 27 Jun 2007, Liam Farr wrote:
Hi, All data / traffic, not just voip. I guess it would have to be done by the route somehow?
This information is very unlikely to be available via RADIUS accounting. Your NAS (or your border routers or core switches) may however support netflow, sflow or jflow though in which case you should look at http://www.pmacct.net/ (An opensource project I am also involved with) or Traffic Sentinel http://www.inmon.com/products/trafficsentinel.php (Not open source but VERY powerfull) Cheers -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
Peter Nixon wrote:
On Wed 27 Jun 2007, Liam Farr wrote:
Hi, All data / traffic, not just voip. I guess it would have to be done by the route somehow?
It's still a really evil thing to do IMO, goes against the very nature of the interweb :\ -- Arran Cudbard-Bell (A.Cudbard-Bell@sussex.ac.uk) Authentication, Authorisation and Accounting Officer Infrastructure Services | ENG1 E1-1-08 University Of Sussex, Brighton EXT:01273 873900 | INT: 3900
It does, but then this is "New Zealand" where our upstream providers charge different rates for national and international.... If I didn't have to I wouldn't. On 27/06/07, Arran Cudbard-Bell <A.Cudbard-Bell@sussex.ac.uk> wrote:
Peter Nixon wrote:
On Wed 27 Jun 2007, Liam Farr wrote:
Hi, All data / traffic, not just voip. I guess it would have to be done by the route somehow?
It's still a really evil thing to do IMO, goes against the very nature of the interweb :\
-- Arran Cudbard-Bell (A.Cudbard-Bell@sussex.ac.uk) Authentication, Authorisation and Accounting Officer Infrastructure Services | ENG1 E1-1-08 University Of Sussex, Brighton EXT:01273 873900 | INT: 3900 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list /users.html
-- Kind Regards Liam Farr Director Farr Networks Limited Ph: +64 27 6664644 Em: liam@farr.net.nz Web: www.farr.net.nz
Hi, PMACCT seems interesting, I assume I could setup a Linux router that supports one of those protocols? My ISP just provides me with a single connection with both national and international piped down it. Cheers Liam On 27/06/07, Peter Nixon <listuser@peternixon.net> wrote:
On Wed 27 Jun 2007, Liam Farr wrote:
Hi, All data / traffic, not just voip. I guess it would have to be done by the route somehow?
This information is very unlikely to be available via RADIUS accounting.
Your NAS (or your border routers or core switches) may however support netflow, sflow or jflow though in which case you should look at http://www.pmacct.net/ (An opensource project I am also involved with) or Traffic Sentinel http://www.inmon.com/products/trafficsentinel.php (Not open source but VERY powerfull)
Cheers --
Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc - List info/subscribe/unsubscribe? See http://www.freeradius.org/list /users.html
-- Kind Regards Liam Farr Director Farr Networks Limited Ph: +64 27 6664644 Em: liam@farr.net.nz Web: www.farr.net.nz
pmacct is a package that contains a number of daemons capable of different things. pmacctd can listen in promiscuous mode (on a switch span/monitor port) or simply capture all traffic which passes through an interface (if the linux box is routing the traffic) and aggregate that traffic according to various rules and write to a sql database or text file. It uses libpcap style rules like tcpdump so it is very flexible. nfacctd and sfacctd take netflow data exported from ciscos and sflow data exported from HP and other devices respectively and give you similar functionality as pmacctd without your linux box having to see the traffic pass it's own interface. You can of course collect traffic data from multiple devices in different parts of your network. Basically none of this is related at all to RADIUS, so I suggest you join the pmacct list if you have any further questions. The only bit that may need to be integrated with radius is the source IP lookup if your users don't have static IP addresses... Cheers Peter On Wed 27 Jun 2007, Liam Farr wrote:
Hi, PMACCT seems interesting, I assume I could setup a Linux router that supports one of those protocols? My ISP just provides me with a single connection with both national and international piped down it.
Cheers
Liam
On 27/06/07, Peter Nixon <listuser@peternixon.net> wrote:
On Wed 27 Jun 2007, Liam Farr wrote:
Hi, All data / traffic, not just voip. I guess it would have to be done by
the
route somehow?
This information is very unlikely to be available via RADIUS accounting.
Your NAS (or your border routers or core switches) may however support netflow, sflow or jflow though in which case you should look at http://www.pmacct.net/ (An opensource project I am also involved with) or Traffic Sentinel http://www.inmon.com/products/trafficsentinel.php (Not open source but VERY powerfull)
Cheers --
Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc - List info/subscribe/unsubscribe? See http://www.freeradius.org/list /users.html
-- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
participants (3)
-
Arran Cudbard-Bell -
Liam Farr -
Peter Nixon