Hello.
In programming language, the paket from the AP to Radius will encapsulated like:

RADIUS ( EAP ( MSCHAPv2 ) )
I think it will be like this: radius - eap - tls - peap - mschapv2

If anyone have set up this authentication method completely working, please post all relevant stuff, you will help me verry much! But please quote only the relevant text from my mail, i know what i have written

We use:
- Slackware linux 9.1
- openssl-0.9.7b-i486-2
- freeradius-snapshot-20040112
- patch from Mike Saywell (http://lists.cistron.nl/archives/freeradius-users/2004/01/msg00495.html)
- hostapd v0.2.0 (from CVS)
client:
- Windows XP SP1 + updates everyday
- AEGIS client (PEAP, MS-CHAPv2, username trl, identify trl)


authorize {
  preprocess
may be mschap here?
  eap
  files
}

authenticate {
  Auth-Type MS-CHAP {
      mschap
  }
eap - here
}

preacct {
  preprocess
}

accounting {
}


session { }


post-auth { }

pre-proxy {
}

post-proxy {
and eap here?

hope this will help you.

--
Best regards, Eugene Kandlen
Rubtsovsk, inc (http://firma.rubtsovsk.ru)
Phone/fax: +7 (38557) 4-44-74
prefix = /usr/local
exec_prefix = ${prefix}
sysconfdir = /etc
localstatedir = /var
sbindir = ${exec_prefix}/sbin
logdir = /var/log/radacct
raddbdir = ${sysconfdir}/raddb
radacctdir = ${logdir}/radacct
confdir = ${raddbdir}
run_dir = ${localstatedir}/run/radiusd

log_file = ${logdir}/radius.log

libdir = ${exec_prefix}/lib

pidfile = ${run_dir}/radiusd.pid

max_request_time = 30

delete_blocked_requests = no

cleanup_delay = 5

max_requests = 1024

bind_address = *

port = 0

hostname_lookups = no

allow_core_dumps = no

regular_expressions     = yes
extended_expressions    = yes

log_stripped_names = no

log_auth = yes

log_auth_badpass = yes
log_auth_goodpass = yes

usercollide = no

lower_user = no
lower_pass = no

nospace_user = no
nospace_pass = no

checkrad = ${sbindir}/checkrad

security {
        max_attributes = 200
        reject_delay = 1
        status_server = no
}

proxy_requests  = no

$INCLUDE  ${confdir}/clients.conf

snmp    = no

thread pool {
        start_servers = 5
        max_servers = 32

        min_spare_servers = 3
        max_spare_servers = 10

        max_requests_per_server = 0
}

modules {
        pap {
                encryption_scheme = crypt
        }
        chap {
                authtype = CHAP
        }
        pam {
                pam_auth = radiusd
        }
        unix {
                cache = no
                cache_reload = 600
                radwtmp = ${logdir}/radwtmp
        }
        eap {
                default_eap_type = md5
                timer_expire     = 60
                ignore_unknown_eap_types = no
                md5 {
                }
                tls {
                        private_key_password = whatever
                        private_key_file = /etc/raddb/cert/cert-srv.pem
                        certificate_file = /etc/raddb/cert/cert-srv.pem

                        CA_file = /etc/raddb/cert/root.pem

                        dh_file = /etc/raddb/cert/.dh
                        random_file = /etc/raddb/cert/.rnd

                        fragment_size = 1024
                        include_length = yes
                        check_crl = yes
                }
                peap {
                        default_eap_type = mschapv2
                }
                mschapv2 {
                }
        }

        mschap {
                authtype = MS-CHAP
        }
        realm IPASS {
                format = prefix
                delimiter = "/"
        }
        realm suffix {
                format = suffix
                delimiter = "@"
        }
        realm realmpercent {
                format = suffix
                delimiter = "%"
        }
        preprocess {
                huntgroups = ${confdir}/huntgroups
                hints = ${confdir}/hints

                with_ascend_hack = no
                ascend_channels_per_line = 23

                with_ntdomain_hack = no
                with_specialix_jetstream_hack = no
                with_cisco_vsa_hack = no
        }
        files {
                usersfile = ${confdir}/users
                acctusersfile = ${confdir}/acct_users
                compat = no
        }
        detail {
                detailfile = ${radacctdir}/%{NAS-IP-Address}/detail
                detailperm = 0600
        }
        detail auth_log {
                detailfile = ${radacctdir}/%{NAS-IP-Address}/auth-detail
                detailperm = 0600
        }
        detail reply_log {
                detailfile = ${radacctdir}/%{NAS-IP-Address}/reply-detail
                detailperm = 0600
        }
        acct_unique {
                key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, 
NAS-Port"
        }
        radutmp {
                filename = ${logdir}/radutmp
                username = %{User-Name}
                case_sensitive = yes
                check_with_nas = yes            
                perm = 0600
                callerid = "yes"
        }
        radutmp sradutmp {
                filename = ${logdir}/sradutmp
                perm = 0644
                callerid = "no"
        }
        attr_filter {
                attrsfile = ${confdir}/attrs
        }
        counter daily {
                filename = ${raddbdir}/db.daily
                key = User-Name
                count-attribute = Acct-Session-Time
                reset = daily
                counter-name = Daily-Session-Time
                check-name = Max-Daily-Session
                allowed-servicetype = Framed-User
                cache-size = 5000
        }
        always fail {
                rcode = fail
        }
        always reject {
                rcode = reject
        }
        always ok {
                rcode = ok
                simulcount = 0
                mpp = no
        }
        expr {
        }
        digest {
        }
        exec {
                wait = yes
                input_pairs = request
        }
        exec echo {
                wait = yes
                program = "/bin/echo %{User-Name}"
                input_pairs = request
                output_pairs = reply
        }
        ippool main_pool {
                range-start = 192.168.1.1
                range-stop = 192.168.3.254
                netmask = 255.255.255.0
                cache-size = 800
                session-db = ${raddbdir}/db.ippool
                ip-index = ${raddbdir}/db.ipindex
                override = no
        }
}
instantiate {
        expr
}
authorize {
        preprocess
        auth_log
        chap
        mschap

        eap

        files
}
authenticate {
        Auth-Type PAP {
                pap
        }
        Auth-Type CHAP {
                chap
        }
        unix
        eap
        mschap
}
preacct {
        preprocess
        files
}
accounting {
        acct_unique
        detail
        unix            # wtmp file
        radutmp
}
session {
        radutmp
}


post-auth {
        reply_log
}
pre-proxy {
}
post-proxy {
        eap
}
000d8889c809    Auth-Type := Local, Password == "000d8889c809"
            Fall-Through = Yes

trl     Password == "lll"
        Fall-Through = Yes

DEFAULT Auth-Type = Local
        Fall-Through = Yes

DEFAULT Service-Type == Framed-User
        Framed-IP-Address = 255.255.255.254,
        Framed-MTU = 576,
        Service-Type = Framed-User,
        Fall-Through = Yes

DEFAULT Framed-Protocol == PPP
        Framed-Protocol = PPP,
        Framed-Compression = Van-Jacobson-TCP-IP

Reply via email to