Line 162: |
Line 162: |
| $uplink = $uplink * 1000; | | $uplink = $uplink * 1000; |
| $OUT =<<END; | | $OUT =<<END; |
− | guest NAS-Identify == "chilli", Auth-Type: = Local User-Password == 'guest' | + | guest NAS-Identify == "localhost", Auth-Type: = Local User-Password == 'guest' |
| WISPr-Bandwidth-Max-Down = $downlink, WISPr-Bandwidth-Max-Up = $uplink | | WISPr-Bandwidth-Max-Down = $downlink, WISPr-Bandwidth-Max-Up = $uplink |
| END | | END |
| if (($chilli{'status'} || 'disabled') eq' enabled ') { | | if (($chilli{'status'} || 'disabled') eq' enabled ') { |
| $OUT = <<END; | | $OUT = <<END; |
− | DEFAULT Group == "chilli", NAS-Identify == "chilli", Auth-Type: = unix | + | DEFAULT Group == "chilli", NAS-Identify == "localhost", Auth-Type: = unix |
| # WISPr-Bandwidth-Max-Down = 512000, WISPr-Bandwidth-Max-Up = 128000 | | # WISPr-Bandwidth-Max-Down = 512000, WISPr-Bandwidth-Max-Up = 128000 |
| | | |
− | DEFAULT Group! = "chilli", NAS-Identify == "chilli", Auth-Type: Reject = | + | DEFAULT Group! = "chilli", NAS-Identify == "localhost", Auth-Type: Reject = |
| Reply Message = "Your are not allowed member of the group" | | Reply Message = "Your are not allowed member of the group" |
| END | | END |
Line 186: |
Line 186: |
| $uplink = $uplink * 1000; | | $uplink = $uplink * 1000; |
| $OUT =<<END; | | $OUT =<<END; |
− | guest NAS-Identify == "chilli", Auth-Type: = Local User-Password == 'guest' | + | guest NAS-Identify == "localhost", Auth-Type: = Local User-Password == 'guest' |
| WISPr-Bandwidth-Max-Down = $downlink, WISPr-Bandwidth-Max-Up = $uplink | | WISPr-Bandwidth-Max-Down = $downlink, WISPr-Bandwidth-Max-Up = $uplink |
| END | | END |
| if (($chilli{'status'} || 'disabled') eq' enabled ') { | | if (($chilli{'status'} || 'disabled') eq' enabled ') { |
| $OUT = <<END; | | $OUT = <<END; |
− | DEFAULT Group == "'''wifi'''", NAS-Identify == "chilli", Auth-Type: = unix | + | DEFAULT Group == "'''wifi'''", NAS-Identify == "localhost", Auth-Type: = unix |
| # WISPr-Bandwidth-Max-Down = 512000, WISPr-Bandwidth-Max-Up = 128000 | | # WISPr-Bandwidth-Max-Down = 512000, WISPr-Bandwidth-Max-Up = 128000 |
− | DEFAULT Group! = "'''wifi'''", NAS-Identify == "chilli", Auth-Type: Reject = | + | DEFAULT Group! = "'''wifi'''", NAS-Identify == "localhost", Auth-Type: Reject = |
| Reply Message = "Your are not allowed member of the group" | | Reply Message = "Your are not allowed member of the group" |
| END | | END |