testing: Migrated ikev2 scenarios to swanctl
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
eap {
|
||||
default_eap_type = tls
|
||||
|
||||
tls-config tls-common {
|
||||
private_key_file = ${certdir}/aaaKey.pem
|
||||
certificate_file = ${certdir}/aaaCert.pem
|
||||
ca_file = ${cadir}/strongswanCert.pem
|
||||
cipher_list = "DEFAULT"
|
||||
dh_file = ${certdir}/dh
|
||||
random_file = ${certdir}/random
|
||||
}
|
||||
|
||||
tls {
|
||||
tls = tls-common
|
||||
}
|
||||
}
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
server default {
|
||||
|
||||
listen {
|
||||
type = auth
|
||||
ipaddr = 10.1.0.10
|
||||
port = 0
|
||||
}
|
||||
|
||||
authorize {
|
||||
preprocess
|
||||
eap {
|
||||
ok = return
|
||||
}
|
||||
expiration
|
||||
logintime
|
||||
}
|
||||
|
||||
authenticate {
|
||||
eap
|
||||
}
|
||||
|
||||
preacct {
|
||||
preprocess
|
||||
acct_unique
|
||||
}
|
||||
|
||||
accounting {
|
||||
detail
|
||||
unix
|
||||
radutmp
|
||||
exec
|
||||
attr_filter.accounting_response
|
||||
}
|
||||
|
||||
session {
|
||||
radutmp
|
||||
}
|
||||
|
||||
post-auth {
|
||||
exec
|
||||
Post-Auth-Type REJECT {
|
||||
attr_filter.access_reject
|
||||
eap
|
||||
remove_reply_message_if_eap
|
||||
}
|
||||
}
|
||||
|
||||
pre-proxy {
|
||||
}
|
||||
|
||||
post-proxy {
|
||||
eap
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
eap {
|
||||
default_eap_type = tls
|
||||
tls {
|
||||
certdir = /etc/raddb/certs
|
||||
cadir = /etc/raddb/certs
|
||||
private_key_file = /etc/raddb/certs/aaaKey.pem
|
||||
certificate_file = /etc/raddb/certs/aaaCert.pem
|
||||
CA_file = /etc/raddb/certs/strongswanCert.pem
|
||||
cipher_list = "DEFAULT"
|
||||
dh_file = /etc/raddb/certs/dh
|
||||
random_file = /etc/raddb/certs/random
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
realm strongswan.org {
|
||||
type = radius
|
||||
authhost = LOCAL
|
||||
accthost = LOCAL
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
authorize {
|
||||
eap {
|
||||
ok = return
|
||||
}
|
||||
}
|
||||
|
||||
authenticate {
|
||||
eap
|
||||
}
|
||||
|
||||
preacct {
|
||||
preprocess
|
||||
acct_unique
|
||||
suffix
|
||||
files
|
||||
}
|
||||
|
||||
accounting {
|
||||
detail
|
||||
unix
|
||||
radutmp
|
||||
attr_filter.accounting_response
|
||||
}
|
||||
|
||||
session {
|
||||
radutmp
|
||||
}
|
||||
|
||||
post-auth {
|
||||
exec
|
||||
Post-Auth-Type REJECT {
|
||||
attr_filter.access_reject
|
||||
}
|
||||
}
|
||||
|
||||
pre-proxy {
|
||||
}
|
||||
|
||||
post-proxy {
|
||||
eap
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
carol Cleartext-Password := "Ar3etTnp"
|
||||
Reference in New Issue
Block a user