preproxy_users

BALSIANOK, Peter Peter.Balsianok at orange.sk
Thu Nov 29 08:17:43 CET 2012


Yes, I am.

Configuration file:

[radiusd at tdrad1 ggsn-acct]$ cat preproxy_users 
#
#  Configuration file for the rlm_files module.
#  Please see rlm_files(5) manpage for more information.
#
#  $Id$
#
#  This file is similar to the "users" file.  The check items
#  are compared against the request, but the "reply" items are
#  used to update the proxied packet, not the reply to the NAS.
#
#  You can use this file to re-write requests which are about to
#  be sent to a home server.
#

#
#  Requests destinated to realm "extisp" are sent to a RADIUS
#  home server hosted by an other company which doesn't know about
#  the IP addresses of our NASes. Therefore we replace the value of
#  the NAS-IP-Address attribute by a unique value we communicated
#  to them.
#
#DEFAULT Realm == "extisp"
#	NAS-IP-Address := 10.1.2.3

#
#  For all proxied packets, set the User-Name in the proxied packet
#  to the Stripped-User-Name, if it exists.  If not, set it to the
#  User-Name from the original request.
#
#DEFAULT
#	User-Name := `%{Stripped-User-Name:-%{User-Name}}`

DEFAULT Called-Station-Id == "orangewap" 
        Called-Station-Id := "%{Called-Station-Id}.%{3GPP-SGSN-Address}"

Server logs:

[radiusd at tdrad1 ggsn-acct]$ /app/radius/freeradius-2.2.0/sbin/radiusd -X -d /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct/
FreeRADIUS Version 2.2.0, for host i686-pc-linux-gnu, built on Nov 27 2012 at 13:30:37
Copyright (C) 1999-2012 The FreeRADIUS server project and contributors. 
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE. 
You may redistribute copies of FreeRADIUS under the terms of the 
GNU General Public License v2. 
Starting - reading configuration files ...
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//radiusd.conf
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//proxy.conf
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//clients.conf
including files in directory /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/ntlm_auth
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/mac2ip
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/unix
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/detail.example.com
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/dhcp_sqlippool
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//sql/mysql/ippool-dhcp.conf
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/files
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/smsotp
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/digest
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/replicate
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/expr
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/wimax
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/ippool
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/inner-eap
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/policy
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/preprocess
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/chap
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/acct_unique
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/echo
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/rediswho
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/dynamic_clients
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/attr_filter
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/always
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/soh
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/radrelay
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/expiration
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/mschap
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/linelog
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/detail
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/pam
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/radutmp
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/perl
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/sqlcounter_expire_on_login
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/cui
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/opendirectory
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/etc_group
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/ldap
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/exec
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/krb5
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/sql_log
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/smbpasswd
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/logintime
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/attr_rewrite
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/redis
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/mac2vlan
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/cache
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/checkval
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/otp
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/realm
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/sradutmp
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/counter
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/pap
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/passwd
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//eap.conf
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//policy.conf
including files in directory /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//sites-enabled/
including configuration file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//sites-enabled/default
including dictionary file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//dictionary
main {
	name = "radiusd"
	prefix = "/app/radius/freeradius-2.2.0"
	localstatedir = "/app_log/radius/ggsn-acct"
	sbindir = "/app/radius/freeradius-2.2.0/sbin"
	logdir = "/app_log/radius/ggsn-acct"
	run_dir = "/app_log/radius/ggsn-acct/run/radiusd"
	libdir = "/app/radius/freeradius-2.2.0/lib"
	radacctdir = "/app_log/radius/ggsn-acct/radacct"
	hostname_lookups = no
	max_request_time = 30
	cleanup_delay = 5
	max_requests = 25600
	pidfile = "/app_log/radius/ggsn-acct/run/radiusd/radiusd.pid"
	checkrad = "/app/radius/freeradius-2.2.0/sbin/checkrad"
	debug_level = 0
	proxy_requests = yes
 log {
	stripped_names = no
	auth = no
	auth_badpass = no
	auth_goodpass = no
 }
 security {
	max_attributes = 200
	reject_delay = 1
	status_server = no
 }
}
radiusd: #### Loading Realms and Home Servers ####
 proxy server {
	retry_delay = 5
	retry_count = 3
	default_fallback = no
	dead_time = 120
	wake_all_if_all_dead = no
 }
 home_server localhost {
	ipaddr = 127.0.0.1
	port = 1812
	type = "auth"
	secret = "testing123"
	response_window = 20
	max_outstanding = 65536
	require_message_authenticator = yes
	zombie_period = 40
	status_check = "status-server"
	ping_interval = 30
	check_interval = 30
	num_answers_to_alive = 3
	num_pings_to_alive = 3
	revive_interval = 120
	status_check_timeout = 4
  coa {
	irt = 2
	mrt = 16
	mrc = 5
	mrd = 30
  }
 }
 home_server_pool my_auth_failover {
	type = fail-over
	home_server = localhost
 }
 realm example.com {
	auth_pool = my_auth_failover
 }
 realm LOCAL {
 }
 realm realm_orangewap {
	accthost = 213.151.250.21:1813
	secret = testing123
 }
 realm realm_orangewap_csd {
	authhost = 213.151.208.181:1645
	accthost = 213.151.208.181:1646
	secret = testing123
 }
 realm realm_orangewapdis {
	authhost = 85.237.225.46:1745
	accthost = 85.237.225.46:1746
	secret = testing123
 }
 realm realm_orangewapdis_csd {
	authhost = 85.237.225.47:1645
	accthost = 85.237.225.47:1646
	secret = testing123
 }
 realm realm_testwap {
	authhost = 213.151.208.133:1745
	accthost = 213.151.208.133:1746
	secret = testing123
 }
 realm realm_testwap_csd {
	authhost = 213.151.208.182:1645
	accthost = 213.151.208.182:1646
	secret = testing123
 }
 realm realm_mvaswap {
	accthost = 213.151.250.21:1813
	secret = testing123
 }
 realm realm_orangewap_ng {
	accthost = 213.151.250.21:1813
	secret = testing123
 }
 realm realm_mvaswapsite {
	accthost = 213.151.250.149:1813
	secret = testing123
 }
radiusd: #### Loading Clients ####
 client localhost {
	ipaddr = 127.0.0.1
	require_message_authenticator = no
	secret = "testing123"
	nastype = "other"
 }
 client 10.64.192.1 {
	require_message_authenticator = no
	secret = "$ko6J!4p&a"
	shortname = "ggsn_flexi01BB1"
 }
 client 10.64.64.1 {
	require_message_authenticator = no
	secret = "$ko6J!4p&a"
	shortname = "ggsn_flexi01BA1"
 }
 client 10.64.64.3 {
	require_message_authenticator = no
	secret = "$ko6J!4p&a"
	shortname = "ggsn_flexi03BA2"
 }
 client 10.13.224.3 {
	require_message_authenticator = no
	secret = "$ko6J!4p&a"
	shortname = "ggsn_flexi03BB2"
 }
 client 10.8.251.131 {
	require_message_authenticator = no
	secret = "testing123"
	shortname = "ggsn_ng03ba2"
 }
 client 10.8.251.132 {
	require_message_authenticator = no
	secret = "testing123"
	shortname = "ggsn_ng03ba2"
 }
 client 10.8.251.147 {
	require_message_authenticator = no
	secret = "testing123"
	shortname = "ggsn_ng03bb1"
 }
 client 10.8.251.148 {
	require_message_authenticator = no
	secret = "testing123"
	shortname = "ggsn_ng03bb1"
 }
radiusd: #### Instantiating modules ####
 instantiate {
 Module: Linked to module rlm_perl
 Module: Instantiating module "perl" from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/perl
  perl {
	module = "/app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//CheckCompose.pm"
	func_authorize = "authorize"
	func_authenticate = "authenticate"
	func_accounting = "accounting"
	func_preacct = "preacct"
	func_checksimul = "checksimul"
	func_detach = "detach"
	func_xlat = "xlat"
	func_pre_proxy = "pre_proxy"
	func_post_proxy = "post_proxy"
	func_post_auth = "post_auth"
	func_recv_coa = "recv_coa"
	func_send_coa = "send_coa"
  }
Info: Cache file (/app_log/radius/cache/ldap_cache.db) too old, ignoring
Starting with empty cache
 }
radiusd: #### Loading Virtual Servers ####
server { # from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//radiusd.conf
 modules {
  Module: Creating Acct-Type = ACCT_ACCEPT
  Module: Creating Acct-Type = WAPGTW
  Module: Creating Post-Auth-Type = REJECT
 Module: Checking authenticate {...} for more modules to load
 Module: Linked to module rlm_pap
 Module: Instantiating module "pap" from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/pap
  pap {
	encryption_scheme = "auto"
	auto_header = no
  }
 Module: Linked to module rlm_chap
 Module: Instantiating module "chap" from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/chap
 Module: Checking authorize {...} for more modules to load
 Module: Linked to module rlm_preprocess
 Module: Instantiating module "preprocess" from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/preprocess
  preprocess {
	huntgroups = "/app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//huntgroups"
	hints = "/app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//hints"
	with_ascend_hack = no
	ascend_channels_per_line = 23
	with_ntdomain_hack = no
	with_specialix_jetstream_hack = no
	with_cisco_vsa_hack = no
	with_alvarion_vsa_hack = no
  }
reading pairlist file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//huntgroups
reading pairlist file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//hints
 Module: Linked to module rlm_realm
 Module: Instantiating module "suffix" from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/realm
  realm suffix {
	format = "suffix"
	delimiter = "@"
	ignore_default = no
	ignore_null = no
  }
 Module: Linked to module rlm_files
 Module: Instantiating module "files" from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/files
  files {
	usersfile = "/app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//users"
	acctusersfile = "/app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//acct_users"
	preproxy_usersfile = "/app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//preproxy_users"
	compat = "no"
  }
reading pairlist file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//users
reading pairlist file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//acct_users
reading pairlist file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//preproxy_users
 Module: Checking preacct {...} for more modules to load
 Module: Linked to module rlm_acct_unique
 Module: Instantiating module "acct_unique" from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/acct_unique
  acct_unique {
	key = "User-Name, Acct-Session-Id, NAS-IP-Address, NAS-Identifier, NAS-Port"
  }
 Module: Checking accounting {...} for more modules to load
 Module: Linked to module rlm_attr_filter
 Module: Instantiating module "attr_filter.accounting_response" from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/attr_filter
  attr_filter attr_filter.accounting_response {
	attrsfile = "/app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//attrs.accounting_response"
	key = "%{User-Name}"
	relaxed = no
  }
reading pairlist file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//attrs.accounting_response
 Module: Linked to module rlm_always
 Module: Instantiating module "ok" from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/always
  always ok {
	rcode = "ok"
	simulcount = 0
	mpp = no
  }
 Module: Checking pre-proxy {...} for more modules to load
 Module: Linked to module rlm_detail
 Module: Instantiating module "pre_proxy_log" from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/detail
  detail pre_proxy_log {
	detailfile = "/app_log/radius/ggsn-acct/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
	header = "%t"
	detailperm = 384
	dirperm = 493
	locking = no
	log_packet_header = no
  }
 Module: Checking post-proxy {...} for more modules to load
 Module: Instantiating module "attr_filter.post-proxy" from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/attr_filter
  attr_filter attr_filter.post-proxy {
	attrsfile = "/app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//attrs"
	key = "%{Realm}"
	relaxed = no
  }
reading pairlist file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//attrs
 Module: Checking post-auth {...} for more modules to load
 Module: Instantiating module "attr_filter.access_reject" from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//modules/attr_filter
  attr_filter attr_filter.access_reject {
	attrsfile = "/app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//attrs.access_reject"
	key = "%{User-Name}"
	relaxed = no
  }
reading pairlist file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//attrs.access_reject
 } # modules
} # server
radiusd: #### Opening IP addresses and Ports ####
listen {
	type = "acct"
	ipaddr = *
	port = 2813
}
listen {
	type = "acct"
	ipaddr = *
	port = 2646
}
 ... adding new socket proxy address * port 36561
Listening on accounting address * port 2813
Listening on accounting address * port 2646
Listening on proxy address * port 1278
Ready to process requests.
rad_recv: Accounting-Request packet from host 127.0.0.1 port 40444, id=142, length=213
	NAS-Port-Type = Virtual
	X-Ascend-Dial-Number = "<U+0557>\331\025"
	Acct-Session-Id = "d597d91572f51ab3"
	Proxy-State = 0x323036
	Service-Type = Framed-User
	Called-Station-Id = "orangewap"
	Acct-Link-Count = 1
	X-Ascend-Metric = 1928665779
	Acct-Authentic = Local
	Acct-Status-Type = Start
	NAS-IP-Address = 10.64.192.1
	X-Ascend-PRI-Number-Type = 8
	3GPP-SGSN-Address = 213.151.252.35
	Calling-Station-Id = "421905012405"
	X-Ascend-IPX-Alias = 4294967295
	Framed-Protocol = GPRS-PDP-Context
	User-Name = "421908503371"
	NAS-Identifier = "ggsn-01-bb1.orange.sk"
	Acct-Multi-Session-Id = "d597d9153962de6b"
	Framed-IP-Address = 10.64.210.141
# Executing section preacct from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//sites-enabled/default
+- entering group preacct {...}
++[preprocess] returns ok
[acct_unique] WARNING: Attribute NAS-Port was not found in request, unique ID MAY be inconsistent
[acct_unique] Hashing ',NAS-Identifier = "ggsn-01-bb1.orange.sk",NAS-IP-Address = 10.64.192.1,Acct-Session-Id = "d597d91572f51ab3",User-Name = "421908503371"'
[acct_unique] Acct-Unique-Session-ID = "d73f8ab694f5d12e".
++[acct_unique] returns ok
[suffix] No '@' in User-Name = "421908503371", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[files] acct_users: Matched entry DEFAULT at line 25
++[files] returns ok
  Found Acct-Type WAPGTW
# Executing group from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//sites-enabled/default
+- entering group WAPGTW {...}
++- group WAPGTW returns noop
# Executing section pre-proxy from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//sites-enabled/default
+- entering group pre-proxy {...}
[pre_proxy_log] 	expand: %{Packet-Src-IP-Address} -> 127.0.0.1
[pre_proxy_log] 	expand: /app_log/radius/ggsn-acct/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d -> /app_log/radius/ggsn-acct/radacct/127.0.0.1/pre-proxy-detail-20121129
[pre_proxy_log] /app_log/radius/ggsn-acct/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d expands to /app_log/radius/ggsn-acct/radacct/127.0.0.1/pre-proxy-detail-20121129
[pre_proxy_log] 	expand: %t -> Thu Nov 29 08:14:54 2012
++[pre_proxy_log] returns ok
[files] preproxy_users: Matched entry DEFAULT at line 39
[files] WARNING: Unknown module "3GPP-SGSN-Address" in string expansion "%"
++[files] returns ok
Sending Accounting-Request of id 252 to 213.151.250.21 port 1813
	NAS-Port-Type = Virtual
	X-Ascend-Dial-Number = "<U+0557>\331\025"
	Acct-Session-Id = "d597d91572f51ab3"
	Proxy-State = 0x323036
	Service-Type = Framed-User
	Called-Station-Id := "orangewap."
	Acct-Link-Count = 1
	X-Ascend-Metric = 1928665779
	Acct-Authentic = Local
	Acct-Status-Type = Start
	NAS-IP-Address = 10.64.192.1
	X-Ascend-PRI-Number-Type = 8
	3GPP-SGSN-Address = 213.151.252.35
	Calling-Station-Id = "421905012405"
	X-Ascend-IPX-Alias = 4294967295
	Framed-Protocol = GPRS-PDP-Context
	User-Name = "421908503371"
	NAS-Identifier = "ggsn-01-bb1.orange.sk"
	Acct-Multi-Session-Id = "d597d9153962de6b"
	Framed-IP-Address = 10.64.210.141
	Proxy-State = 0x313432
Proxying request 0 to home server 213.151.250.21 port 1813
Sending Accounting-Request of id 252 to 213.151.250.21 port 1813
	NAS-Port-Type = Virtual
	X-Ascend-Dial-Number = "<U+0557>\331\025"
	Acct-Session-Id = "d597d91572f51ab3"
	Proxy-State = 0x323036
	Service-Type = Framed-User
	Called-Station-Id := "orangewap."
	Acct-Link-Count = 1
	X-Ascend-Metric = 1928665779
	Acct-Authentic = Local
	Acct-Status-Type = Start
	NAS-IP-Address = 10.64.192.1
	X-Ascend-PRI-Number-Type = 8
	3GPP-SGSN-Address = 213.151.252.35
	Calling-Station-Id = "421905012405"
	X-Ascend-IPX-Alias = 4294967295
	Framed-Protocol = GPRS-PDP-Context
	User-Name = "421908503371"
	NAS-Identifier = "ggsn-01-bb1.orange.sk"
	Acct-Multi-Session-Id = "d597d9153962de6b"
	Framed-IP-Address = 10.64.210.141
	Proxy-State = 0x313432
Going to the next request
Waking up in 0.9 seconds.
rad_recv: Accounting-Response packet from host 213.151.250.21 port 1813, id=252, length=30
	Proxy-State = 0x323036
	Proxy-State = 0x313432
# Executing section post-proxy from file /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct//sites-enabled/default
+- entering group post-proxy {...}
[attr_filter.post-proxy] 	expand: %{Realm} -> realm_orangewap
attr_filter: Matched entry DEFAULT at line 103
++[attr_filter.post-proxy] returns updated
Sending Accounting-Response of id 142 to 127.0.0.1 port 40444
	Proxy-State = 0x323036
Finished request 0.
Cleaning up request 0 ID 142 with timestamp +36
Going to the next request
Ready to process requests.

Request:
[radiusd at tdrad1 test]$ /app/radius/freeradius-2.2.0/bin/radclient -x -t 10 -r 1 -f wapgtw/acct.req -d /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct/ localhost:2813 acct testing123
Sending Accounting-Request of id 142 to 127.0.0.1 port 2813
	NAS-Port-Type = Virtual
	X-Ascend-Dial-Number = "<U+0557>\331\025"
	Acct-Session-Id = "d597d91572f51ab3"
	Proxy-State = 0x323036
	Service-Type = Framed-User
	Called-Station-Id = "orangewap"
	Acct-Link-Count = 1
	X-Ascend-Metric = 1928665779
	Acct-Authentic = Local
	Acct-Status-Type = Start
	NAS-IP-Address = 10.64.192.1
	X-Ascend-PRI-Number-Type = 8
	3GPP-SGSN-Address = 213.151.252.35
	Calling-Station-Id = "421905012405"
	X-Ascend-IPX-Alias = 4294967295
	Framed-Protocol = GPRS-PDP-Context
	User-Name = "421908503371"
	NAS-Identifier = "ggsn-01-bb1.orange.sk"
	Acct-Multi-Session-Id = "d597d9153962de6b"
	Framed-IP-Address = 10.64.210.141
rad_recv: Accounting-Response packet from host 127.0.0.1 port 2813, id=142, length=25
	Proxy-State = 0x323036

-----Original Message-----
From: freeradius-users-bounces+peter.balsianok=orange.sk at lists.freeradius.org [mailto:freeradius-users-bounces+peter.balsianok=orange.sk at lists.freeradius.org] On Behalf Of Alan DeKok
Sent: Wednesday, November 28, 2012 4:09 PM
To: FreeRadius users mailing list
Cc: Alan Buxey
Subject: Re: preproxy_users

BALSIANOK, Peter wrote:
> I use standard dictionary attribute 3GPP-SGSN-Address, which is 
> located in ( in old and new one version of freeradius )
...
> [radiusd at tdrad1 test]$ /app/radius/freeradius-2.2.0/bin/radclient -x 
> -t
> 10 -r 1 -f wapgtw/acct.req -d
> /app/radius/freeradius-2.2.0/etc/raddb/ggsn-acct/ localhost:2813 acct
> testing123
...
> [files] WARNING: Unknown module "3GPP-SGSN-Address" in string expansion "%"

  Are you running 2.2.0 on the server side?  Older versions of the server had issues where they didn't like a number as the first character of an attribute expansion.

  2.2.0 fixed that.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list