server inner-tunnel {
listen {
	ipaddr = 127.0.0.1
	$INCLUDE /usr/local/synoradius/rad_port_inner
	type = auth
}

authorize {
	chap
	mschap
	suffix
	update control {
	       Proxy-To-Realm := LOCAL
	}
	eap {
		ok = return
	}
	files
	smbpasswd
	expiration
	logintime
	pap
	if (!control:Auth-Type) {
		update control {
			Auth-Type = "ntlm_auth"
		}
	}
}

authenticate {
	Auth-Type PAP {
		pap
	}
	Auth-Type CHAP {
		chap
	}
	Auth-Type MS-CHAP {
		mschap {
			reject = 2
		}
		if (reject) {
			mschap_ad
		}
	}
	unix
	eap
	ntlm_auth
}

session {
	radutmp
}

post-auth {
#	ldap
	Post-Auth-Type REJECT {
		attr_filter.access_reject
	}
}

pre-proxy {
}

post-proxy {
	eap
}

} # inner-tunnel server block
