On Thu, Dec 15, 2011 at 3:52 PM, KatsuroKurosaki <joaquims...@gmail.com> wrote:
> realm radrelay { > acct_pool = radrelay > } ... so that is your realm > server copy-acct-to-home-server { > modules { > Module: Checking preacct {...} for more modules to load > Module: Linked to module rlm_preprocess > Module: Instantiating preprocess > preprocess { > huntgroups = "/etc/freeradius/huntgroups" > hints = "/etc/freeradius/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 > } > Module: Checking accounting {...} for more modules to load > } # modules > } # server ... and that is your copy-acct-to-home-server > Polling for detail file /var/log/freeradius/radacct/detail > Detail - Renaming /var/log/freeradius/radacct/detail -> > /var/log/freeradius/radacct/detail.work > detail_recv: Read packet from /var/log/freeradius/radacct/detail.work > Acct-Status-Type = Start > NAS-Port-Type = Wireless-802.11 > Calling-Station-Id = "90:4C:E5:A2:D0:4E" > Called-Station-Id = "hotspot1" > NAS-Port-Id = "Puente" > User-Name = "pruebas" ... which has successfully read the detail file. So far seems so good. > server copy-acct-to-home-server { > +- entering group preacct {...} > ++[preprocess] returns ok > [suffix] No '@' in User-Name = "pruebas", looking up realm NULL > [suffix] No such realm "NULL" > ++[suffix] returns noop > ++[files] returns noop > +- entering group accounting {...} > ++[ok] returns ok > } # server copy-acct-to-home-server That's it? Try using something like this on copy-acct-to-home-server's accounting section accounting { if ("%{Packet-Src-IP-Address}" != "put-ip-address-of-server-B-here") { update control { Proxy-To-Realm := "whatever-realm-you've-setup-for-server-B-on-proxy.conf" } } } -- Fajar - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html