store and proxy accounting packets

Waqas Toor waqasnasirtoor at gmail.com
Fri Feb 25 12:01:06 CET 2011


Hi,

On Thu, Feb 24, 2011 at 11:33 AM, Alan DeKok <aland at deployingradius.com> wrote:
> Waqas Toor wrote:
>> but what to do to get accounting to other client, Also if that fails
>> is it going to create detail files ?
>
>  Did you bother *reading* the "robust-proxy-accounting" file?
>
I have configured the robust-proxy-accounting
below is the file
====================================
home_server home1.example.com {
	type = acct
	ipaddr = 10.1.67.41
	port = 1813
	secret = freerad


	status_check = request
	username = "test_user_status_check"

	response_window = 6
}

home_server home2.example.com {
	type = acct
	ipaddr = 10.1.67.42
	port = 1813
	secret = freerad

	response_window = 6
}

home_server acct_detail.example.com {
	virtual_server = acct_detail.example.com
}

home_server_pool acct_pool.example.com {

	home_server = home1.example.com
	home_server = home2.example.com
	fallback = acct_detail.example.com

	virtual_server = home.example.com
}

realm acct_realm.example.com {
	acct_pool = acct_pool.example.com
}

server acct_detail.example.com {
	accounting {
		detail.example.com
	}
}

server home.example.com {
	pre-proxy {
		#  Insert pre-proxy rules here
	}

	post-proxy {
		Post-Proxy-Type Fail {
			detail.example.com
		}
	}

	listen {
		type = detail
		filename = "${radacctdir}/detail.example.com/detail-*:*"
		load_factor = 10
	}
	accounting {
		# You may want accounting policies here...

		update control {
			Proxy-To-Realm := "acct_realm.example.com"
		}
	}

}
====================================
but it is not working neither its creating any file
here is the debug last lines
===================================

} # server
radiusd: #### Opening IP addresses and Ports ####
listen {
        type = "auth"
        ipaddr = *
        port = 0
}
listen {
        type = "acct"
        ipaddr = *
        port = 0
}
listen {
        type = "control"
 listen {
        socket = "/usr/local/var/run/radiusd/radiusd.sock"
        mode = "rw"
 }
}
listen {
        type = "detail"
  listen {
        filename =
"/usr/local/var/log/radius/radacct/detail.example.com/detail-*:*"
        load_factor = 10
        poll_interval = 1
        retry_interval = 30
  }
}
listen {
        type = "auth"
        ipaddr = 127.0.0.1
        port = 18120
}
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Listening on command file /usr/local/var/run/radiusd/radiusd.sock
Listening on detail file
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:* as
server home.example.com
Detail listener
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:* state
unopened signalled 0 waiting 1.000000 sec
Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel
Listening on proxy address * port 1814
Waking up in 0.9 seconds.
Polling for detail file
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:*
Detail listener
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:* state
unopened signalled 0 waiting 1.134651 sec
Waking up in 1.1 seconds.
Polling for detail file
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:*
Detail listener
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:* state
unopened signalled 0 waiting 1.011006 sec
Waking up in 1.0 seconds.
Polling for detail file
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:*
Detail listener
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:* state
unopened signalled 0 waiting 1.113558 sec
Waking up in 1.1 seconds.
Polling for detail file
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:*
Detail listener
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:* state
unopened signalled 0 waiting 0.903584 sec
Waking up in 0.9 seconds.
Polling for detail file
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:*
Detail listener
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:* state
unopened signalled 0 waiting 1.185763 sec
Waking up in 1.1 seconds.
Polling for detail file
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:*
Detail listener
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:* state
unopened signalled 0 waiting 0.916197 sec
Waking up in 0.9 seconds.
Polling for detail file
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:*
Detail listener
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:* state
unopened signalled 0 waiting 0.925224 sec
Waking up in 0.9 seconds.
Polling for detail file
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:*
Detail listener
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:* state
unopened signalled 0 waiting 1.160946 sec
Waking up in 1.1 seconds.
Polling for detail file
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:*
Detail listener
/usr/local/var/log/radius/radacct/detail.example.com/detail-*:* state
unopened signalled 0 waiting 0.817426 sec
Waking up in 0.8 seconds.

==================

I am missing something but could not figure it out what

regards.
Waqas




More information about the Freeradius-Users mailing list