<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<blockquote type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<pre style="white-space: pre-wrap; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"> For every session you have mac+vlan + all you need for the specific
subscriber ( needed info for CoA processing ).
When you have the subscriber active if the mac is unknown you may
set to him redirect radius profile , here is the example redirect and
active.</pre>
</blockquote>
<br>
I don't know how this can solve my problem.<br>
<br>
<br>
What I have is:<br>
<br>
Sending Access-Accept of id 136 to x.x.x.x port 1812<br>
Ip-Address-Pool-Name = "DHCP-Pool-CLIPS-Unknown"<br>
IP-Interface-Name = "CLIENTS-IPoE-Unknown"<br>
Forward-Policy = "in:REDIRECT-Unknown"<br>
HTTP-Redirect-Profile-Name = "KOMUNIKAT-Unknown"<br>
Service-Type = Outbound-User<br>
Acct-Interim-Interval == 300<br>
Service-Type == Outbound-User<br>
Port-Limit == 1<br>
DHCP_Max_Leases == 1<br>
Context-Name == "CLIPS"<br>
<br>
rad_recv: Accounting-Request packet from host x.x.x.x port 1812,
id=78, length=434<br>
User-Name = "00:17:08:2e:76:00"<br>
Acct-Status-Type = Start<br>
Acct-Session-Id = "0101FFFF7800041F-5149BC46"<br>
Service-Type = Outbound-User<br>
Acct-Update-Reason = AAA_LOAD_ACCT_SESSION_UP<br>
NAS-Identifier = "ALFASYSTEM"<br>
NAS-Port = 33685504<br>
NAS-Real-Port = 570426344<br>
NAS-Port-Type = Virtual<br>
NAS-Port-Id = "2/2 vlan-id 1000 clips 132127"<br>
Medium-Type = DSL<br>
Mac-Addr = "00-17-08-2e-76-00"<br>
Platform-Type = SE-100<br>
OS-Version = "6.5.1.5"<br>
Acct-Authentic = RADIUS<br>
IP-Interface-Name = "CLIENTS-IPoE-Unknown"<br>
Port-Limit = 1<br>
DHCP-Max-Leases = 1<br>
Ip-Address-Pool-Name = "DHCP-Pool-CLIPS-Unknown"<br>
Source-Validation = Enabled<br>
DHCP-Option = "\014\014\004alfa"<br>
Forward-Policy = "in:REDIRECT-Unknown"<br>
HTTP-Redirect-Profile-Name = "KOMUNIKAT-Unknown"<br>
Acct-Interim-Interval = 600<br>
Qos-Policing-Profile-Name = "customer-out"<br>
Qos-Metering-Profile-Name = "customer-in"<br>
Event-Timestamp = "Mar 20 2013 14:40:23 CET"<br>
<br>
<br>
<br>
What I want is:<br>
<br>
Add some missing code in site-availble/default: <br>
<br>
Expect sth like:<br>
update reply { <br>
switch magic("{%{NAS-Port-Id}") { <== magic some code
which will extract vlan id from e.g. NAS-Port-Id = "2/2 vlan-id 1000
clips 132127"<br>
case 1000 { <br>
IP-Address-Pool-Name :=
"DHCP-Pool-CLIPS-Unknown-v1000"<br>
IP-Interface-Name := "CLIENTS-IPoE-Unknown-v1000"<br>
Forward-Policy = "in:REDIRECT-Unknown-v1000"<br>
HTTP-Redirect-Profile-Name =
"KOMUNIKAT-Unknown-v1000"<br>
}<br>
case 1001 { <br>
IP-Address-Pool-Name :=
"DHCP-Pool-CLIPS-Unknown-v1001"<br>
IP-Interface-Name := "CLIENTS-IPoE-Unknown-v1001"<br>
Forward-Policy = "in:REDIRECT-Unknown-v1000"<br>
HTTP-Redirect-Profile-Name =
"KOMUNIKAT-Unknown-v1000"<br>
}<br>
case etc { etc }<br>
}<br>
}<br>
<br>
<br>
Get in freeradius -X for user in vlan ID 1000 sth like:<br>
<br>
Sending Access-Accept of id 136 to x.x.x.x port 1812<br>
Ip-Address-Pool-Name = "DHCP-Pool-CLIPS-Unknown-v1000"<br>
IP-Interface-Name = "CLIENTS-IPoE-Unknown-v1000"<br>
Forward-Policy = "in:REDIRECT-Unknown-v1000"<br>
HTTP-Redirect-Profile-Name = "KOMUNIKAT-Unknown-v1000"<br>
Service-Type = Outbound-User<br>
Acct-Interim-Interval == 300<br>
Service-Type == Outbound-User<br>
Port-Limit == 1<br>
DHCP_Max_Leases == 1<br>
Context-Name == "CLIPS"<br>
<br>
rad_recv: Accounting-Request packet from host x.x.x.x port 1812,
id=78, length=434<br>
User-Name = "00:17:08:2e:76:00"<br>
Acct-Status-Type = Start<br>
Acct-Session-Id = "0101FFFF7800041F-5149BC46"<br>
Service-Type = Outbound-User<br>
Acct-Update-Reason = AAA_LOAD_ACCT_SESSION_UP<br>
NAS-Identifier = "ALFASYSTEM"<br>
NAS-Port = 33685504<br>
NAS-Real-Port = 570426344<br>
NAS-Port-Type = Virtual<br>
NAS-Port-Id = "2/2 vlan-id 1000 clips 132127"<br>
Medium-Type = DSL<br>
Mac-Addr = "00-17-08-2e-76-00"<br>
Platform-Type = SE-100<br>
OS-Version = "6.5.1.5"<br>
Acct-Authentic = RADIUS<br>
IP-Interface-Name = "CLIENTS-IPoE-Unknown-v1000"<br>
Port-Limit = 1<br>
DHCP-Max-Leases = 1<br>
Ip-Address-Pool-Name = "DHCP-Pool-CLIPS-Unknown-v1000"<br>
Source-Validation = Enabled<br>
DHCP-Option = "\014\014\004alfa"<br>
Forward-Policy = "in:REDIRECT-Unknown-v1000"<br>
HTTP-Redirect-Profile-Name = "KOMUNIKAT-Unknown-v1000"<br>
Acct-Interim-Interval = 600<br>
Qos-Policing-Profile-Name = "customer-out"<br>
Qos-Metering-Profile-Name = "customer-in"<br>
Event-Timestamp = "Mar 20 2013 14:40:23 CET"<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Pozdrawiam,
Łukasz Kopiszka
<a class="moz-txt-link-abbreviated" href="http://www.alfa-system.pl">www.alfa-system.pl</a></pre>
</body>
</html>