Ahaan, Ok below is an accounting packet and and its response also please tell me if the the lines that i get while in debug mode are normal ?
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.159171 sec Waking up in 1.1 seconds. ================================================= Waking up in 0.8 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.058084 sec Waking up in 1.0 seconds. rad_recv: Accounting-Request packet from host 2.2.2.2 port 10044, id=248, length=248 Acct-Status-Type = Start WiMAX-Beginning-Of-Session = 1 WiMAX-IP-Technology = Reserved-0 WiMAX-Prepaid-Indicator = 0 Acct-Session-Id = "12033268" Acct-Multi-Session-Id = "9a7f45c70eb9cfc263d4b7f5db740d25" non-hw-flow-info = "\000\000\000" Framed-IP-Address = 175.110.77.76 User-Name = "002682D1A232@test_cpe.com" Calling-Station-Id = "002682d1a232" NAS-Identifier = "WASN" WiMAX-hHA-IP-MIP4 = 0.0.0.0 NAS-IP-Address = 2.2.2.2 WiMAX-BS-Id = 0x303030303066303030663130 WiMAX-GMT-Timezone-offset = 18000 Event-Timestamp = "Feb 25 2011 18:36:49 PKT" Huawei-Attr-218 = 0x00000000 NAS-Port-Type = Wireless-802.16 # Executing section preacct from file /usr/local/etc/raddb/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 ',Client-IP-Address = 2.2.2.2,NAS-IP-Address = 2.2.2.2,Acct-Session-Id = "12033268",User-Name = "002682D1A232@test_cpe.com"' [acct_unique] Acct-Unique-Session-ID = "8b9e32f20020add2". ++[acct_unique] returns ok [suffix] Looking up realm "test_cpe.com" for User-Name = "002682D1A232@test_cpe.com" [suffix] No such realm "test_cpe.com" ++[suffix] returns noop ++[files] returns noop # Executing section accounting from file /usr/local/etc/raddb/sites-enabled/default +- entering group accounting {...} [detail] expand: /usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d -> /usr/local/var/log/radius/radacct/2.2.2.2/detail-20110225 [detail] /usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d expands to /usr/local/var/log/radius/radacct/2.2.2.2/detail-20110225 [detail] expand: %t -> Fri Feb 25 18:35:11 2011 ++[detail] returns ok ++[unix] returns noop [radutmp] expand: /usr/local/var/log/radius/radutmp -> /usr/local/var/log/radius/radutmp [radutmp] expand: %{User-Name} -> 002682D1A232@test_cpe.com rlm_radutmp: No NAS-Port seen. Cannot do anything. rlm_radumtp: WARNING: checkrad will probably not work! ++[radutmp] returns noop [sql] expand: %{User-Name} -> 002682D1A232@test_cpe.com [sql] sql_set_user escaped user --> '002682D1A232@test_cpe.com' [sql] expand: INSERT into accounting (RadAcctId, AcctSessionId, AcctUniqueId, UserName, Realm, NASIPAddress, NASPortId, NASPortType, AcctStartTime, AcctStopTime, AcctSessionTime, AcctAuthentic, ConnectInfo_start, ConnectInfo_stop, AcctInputOctets, AcctOutputOctets, CalledStationId, CallingStationId, AcctTerminateCause, ServiceType, FramedProtocol, FramedIPAddress, AcctStartDelay, AcctStopDelay, XAscendSessionSvrKey, AcctStatusType) VALUES('', '%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}', '%{Realm}', '%{NAS-IP-Address}', '%{NAS-Port-Id}', '%{NAS-Port-Type}', TO_DATE('%S','yyyy-mm-dd hh24:mi:ss'), NULL, '0', '%{Acct-Authentic}', '%{Connect-Info}', '', '0', '0', '%{Called-Station-Id}', '%{Calling-Station-Id}', '', '%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', '%{Acct-Delay-Time}', '0', '%{X-Ascend-Session-Svr-Key}', '%{Acct-Status-Type}') -> INSERT into accounting (RadAcctId, AcctSessionId, AcctUniqueId, UserName, Realm, NASIPAddress, NASPortId, NASPortType, AcctSta rlm_sql (sql): Reserving sql socket id: 0 rlm_sql (sql): Released sql socket id: 0 ++[sql] returns ok ++[exec] returns noop [attr_filter.accounting_response] expand: %{User-Name} -> 002682D1A232@test_cpe.com attr_filter: Matched entry DEFAULT at line 12 ++[attr_filter.accounting_response] returns updated Sending Accounting-Response of id 248 to 2.2.2.2 port 10044 Finished request 9. Cleaning up request 9 ID 248 with timestamp +20 Going to the next request Waking up in 0.7 seconds. ======================================================= On Fri, Feb 25, 2011 at 6:53 PM, Alan DeKok <al...@deployingradius.com> wrote: > Waqas Toor wrote: >> Thank you Alan for you help, >> But please can you point out where I am wrong or a line may be which >> is a bad config, I am having trouble understanding why the packets are >> not being forwarded while being in site-enabled directory. > > As I said, the debug log you posted shows *no* packets being received. > > How can it forward packets it doesn't receive? > > How can you debug the failure to proxy packets, when it doesn't > receive any packets? > >> I read the file I am still struggling to understand FreeRadius proxy >> and virtual servers, treat me as a noob > > I'm asking you to read the documents, and the messages on this list. > Nothing more. > > Alan DeKok. > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html > - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html