"Internal sanity check failed" After adding second Home Server

absenthe160 andranik.h89 at gmail.com
Tue Feb 28 08:12:05 CET 2012


Good day.

I configured Eduroam Federation level server and 2 Institutionals. 
Everything works fine before I added the second Federation level server.

The first problem is, that Institutional servers can not fail over the
request on the second Federation level server if the first one is dead. it
dosen't even reject the request normally and just give this error *"Internal
sanity check failed in event handler for request 0: Discarding the
request!"*

After this I tried to comment out all the configuration I had made in
proxy.conf for the second FRL,  but it gives the same error again if its
Home server (first FRL) is dead.
Sometimes I get this error even if all servers are alive.

I really don't understand now what is the matter.

Can anyone help me please ??

Here is the debug of institutional server, which gives the error:

/FreeRADIUS Version 2.1.10, for host x86_64-redhat-linux-gnu, built on May
21 2011 at 09:23:43
Copyright (C) 1999-2009 The FreeRADIUS server project and contributors. 
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE. 
You may redistribute copies of FreeRADIUS under the terms of the 
GNU General Public License v2. 
Starting - reading configuration files ...
including configuration file /etc/raddb/radiusd.conf
including configuration file /etc/raddb/proxy.conf
including configuration file /etc/raddb/clients.conf
including files in directory /etc/raddb/modules/
including configuration file /etc/raddb/modules/pam
including configuration file /etc/raddb/modules/sql_log
including configuration file /etc/raddb/modules/always
including configuration file /etc/raddb/modules/sradutmp
including configuration file /etc/raddb/modules/files
including configuration file /etc/raddb/modules/policy
including configuration file /etc/raddb/modules/perl
including configuration file /etc/raddb/modules/attr_rewrite
including configuration file /etc/raddb/modules/expr
including configuration file /etc/raddb/modules/mac2ip
including configuration file /etc/raddb/modules/linelog
including configuration file /etc/raddb/modules/smsotp
including configuration file /etc/raddb/modules/detail
including configuration file /etc/raddb/modules/ldap
including configuration file /etc/raddb/modules/pap
including configuration file /etc/raddb/modules/echo
including configuration file /etc/raddb/modules/realm
including configuration file /etc/raddb/modules/etc_group
including configuration file /etc/raddb/modules/exec
including configuration file /etc/raddb/modules/logintime
including configuration file /etc/raddb/modules/acct_unique
including configuration file /etc/raddb/modules/ippool
including configuration file /etc/raddb/modules/passwd
including configuration file /etc/raddb/modules/opendirectory
including configuration file /etc/raddb/modules/chap
including configuration file /etc/raddb/modules/dynamic_clients
including configuration file /etc/raddb/modules/inner-eap
including configuration file /etc/raddb/modules/wimax
including configuration file /etc/raddb/modules/mac2vlan
including configuration file /etc/raddb/modules/ntlm_auth
including configuration file /etc/raddb/modules/digest
including configuration file /etc/raddb/modules/preprocess
including configuration file /etc/raddb/modules/unix
including configuration file /etc/raddb/modules/detail.example.com
including configuration file /etc/raddb/modules/detail.log
including configuration file /etc/raddb/modules/f_ticks
including configuration file /etc/raddb/modules/attr_filter
including configuration file /etc/raddb/modules/expiration
including configuration file /etc/raddb/modules/counter
including configuration file /etc/raddb/modules/cui
including configuration file /etc/raddb/modules/sqlcounter_expire_on_login
including configuration file /etc/raddb/modules/checkval
including configuration file /etc/raddb/modules/radutmp
including configuration file /etc/raddb/modules/smbpasswd
including configuration file /etc/raddb/modules/mschap
including configuration file /etc/raddb/modules/otp
including configuration file /etc/raddb/eap.conf
including configuration file /etc/raddb/policy.conf
including files in directory /etc/raddb/sites-enabled/
including configuration file /etc/raddb/sites-enabled/eduroam
including configuration file /etc/raddb/sites-enabled/control-socket
including configuration file /etc/raddb/sites-enabled/eduroam-inner-tunnel
main {
	allow_core_dumps = no
}
including dictionary file /etc/raddb/dictionary
main {
	prefix = "/usr"
	localstatedir = "/var"
	logdir = "/var/log/radius"
	libdir = "/usr/lib64/freeradius"
	radacctdir = "/var/log/radius/radacct"
	hostname_lookups = no
	max_request_time = 30
	cleanup_delay = 5
	max_requests = 2048
	pidfile = "/var/run/radiusd/radiusd.pid"
	checkrad = "/usr/sbin/checkrad"
	debug_level = 0
	proxy_requests = yes
 log {
	stripped_names = no
	auth = yes
	auth_badpass = no
	auth_goodpass = no
 }
 security {
	max_attributes = 200
	reject_delay = 0
	status_server = yes
 }
}
radiusd: #### Loading Realms and Home Servers ####
 proxy server {
	retry_delay = 5
	retry_count = 3
	default_fallback = yes
	dead_time = 120
	wake_all_if_all_dead = no
 }
 realm LOCAL {
 }
 realm NULL {
 }
 realm iiap.sci.am {
	nostrip
 }
 home_server ArmFRL {
	ipaddr = 127.0.0.1
	port = 1812
	type = "auth+acct"
	secret = "XXXXXXXXXXXXXXXXX"
	response_window = 60
	max_outstanding = 65536
	require_message_authenticator = no
	zombie_period = 10
	status_check = "none"
	ping_interval = 30
	check_interval = 30
	num_answers_to_alive = 3
	num_pings_to_alive = 3
	revive_interval = 10
	status_check_timeout = 4
	irt = 2
	mrt = 16
	mrc = 5
	mrd = 30
 }
 home_server ArmFRL_2 {
	ipaddr = 93.187.162.70
	port = 1812
	type = "auth+acct"
	secret = "XXXXXXXXXXXXXX"
	response_window = 60
	max_outstanding = 65536
	require_message_authenticator = no
	zombie_period = 10
	status_check = "none"
	ping_interval = 30
	check_interval = 30
	num_answers_to_alive = 3
	num_pings_to_alive = 3
	revive_interval = 10
	status_check_timeout = 4
	irt = 2
	mrt = 16
	mrc = 5
	mrd = 30
 }
 home_server_pool EDUROAM {
	type = fail-over
	home_server = ArmFRL
	home_server = ArmFRL_2
 }
 realm DEFAULT {
	pool = EDUROAM
	nostrip
 }
radiusd: #### Loading Clients ####
 client ArmFRL {
	ipaddr = 127.0.0.1
	netmask = 32
	require_message_authenticator = yes
	secret = "XXXXXXXXXXXXX"
	shortname = "ArmFRL"
	nastype = "other"
	virtual_server = "eduroam"
 }
 client ArmFRL_2 {
	ipaddr = 93.187.162.70
	netmask = 32
	require_message_authenticator = yes
	secret = "XXXXXXXXXXXXXXXX"
	shortname = "ArmFRL_2"
	nastype = "other"
	virtual_server = "eduroam"
 }
 client IIAP-AP_1 {
	ipaddr = 93.187.165.113
	netmask = 32
	require_message_authenticator = yes
	secret = "XXXXXXXXXXXXXXXXXXX"
	shortname = "IIAP-AP_1"
	nastype = "other"
	virtual_server = "eduroam"
 }
 client IIAP-AP_0 {
	ipaddr = 93.187.161.106
	netmask = 32
	require_message_authenticator = no
	secret = "XXXXXXXXXXXXXXXXXXX"
	shortname = "IIAP-AP_0"
	nastype = "other"
	virtual_server = "eduroam"
 }
 client IIAP-AP_2 {
	ipaddr = 10.1.11.51
	netmask = 32
	require_message_authenticator = no
	secret = "XXXXXXXXXXXXXXXXXXXXX"
	shortname = "IIAP-AP_2"
	nastype = "other"
	virtual_server = "eduroam"
 }
 client IIAP-AP_4 {
	ipaddr = 10.1.11.52
	netmask = 32
	require_message_authenticator = no
	secret = "XXXXXXXXXXXXXXXXXXXXXX"
	shortname = "IIAP-AP_4"
	nastype = "other"
	virtual_server = "eduroam"
 }
 client IIAP-AP_3 {
	ipaddr = 10.1.11.53
	netmask = 32
	require_message_authenticator = no
	secret = "XXXXXXXXXXXXXXXXXXXXXXXXXX"
	shortname = "IIAP-AP_3"
	nastype = "other"
	virtual_server = "eduroam"
 }
radiusd: #### Instantiating modules ####
 instantiate {
 Module: Linked to module rlm_exec
 Module: Instantiating module "exec" from file /etc/raddb/modules/exec
  exec {
	wait = no
	input_pairs = "request"
	shell_escape = yes
  }
 Module: Linked to module rlm_expr
 Module: Instantiating module "expr" from file /etc/raddb/modules/expr
 Module: Linked to module rlm_expiration
 Module: Instantiating module "expiration" from file
/etc/raddb/modules/expiration
  expiration {
	reply-message = "Password Has Expired  "
  }
 Module: Linked to module rlm_logintime
 Module: Instantiating module "logintime" from file
/etc/raddb/modules/logintime
  logintime {
	reply-message = "You are calling outside your allowed timespan  "
	minimum-timeout = 60
  }
 }
radiusd: #### Loading Virtual Servers ####
server eduroam { # from file /etc/raddb/sites-enabled/eduroam
 modules {
 Module: Checking authenticate {...} for more modules to load
 Module: Linked to module rlm_eap
 Module: Instantiating module "eap" from file /etc/raddb/eap.conf
  eap {
	default_eap_type = "peap"
	timer_expire = 60
	ignore_unknown_eap_types = no
	cisco_accounting_username_bug = no
	max_sessions = 2048
  }
 Module: Linked to sub-module rlm_eap_tls
 Module: Instantiating eap-tls
   tls {
	rsa_key_exchange = no
	dh_key_exchange = yes
	rsa_key_length = 512
	dh_key_length = 512
	verify_depth = 0
	pem_file_type = yes
	private_key_file = "/etc/raddb/certs/server.key"
	certificate_file = "/etc/raddb/certs/server.pem"
	CA_file = "/etc/raddb/certs/ca.pem"
	private_key_password = "Eduroam_111"
	dh_file = "/etc/raddb/certs/dh"
	random_file = "/dev/urandom"
	fragment_size = 1024
	include_length = yes
	check_crl = no
	cipher_list = "DEFAULT"
   }
 Module: Linked to sub-module rlm_eap_ttls
 Module: Instantiating eap-ttls
   ttls {
	default_eap_type = "mschapv2"
	copy_request_to_tunnel = yes
	use_tunneled_reply = yes
	virtual_server = "eduroam-inner-tunnel"
	include_length = yes
   }
 Module: Linked to sub-module rlm_eap_peap
 Module: Instantiating eap-peap
   peap {
	default_eap_type = "mschapv2"
	copy_request_to_tunnel = yes
	use_tunneled_reply = yes
	proxy_tunneled_request_as_eap = yes
	virtual_server = "eduroam-inner-tunnel"
   }
 Module: Linked to sub-module rlm_eap_mschapv2
 Module: Instantiating eap-mschapv2
   mschapv2 {
	with_ntdomain_hack = no
   }
 Module: Checking authorize {...} for more modules to load
 Module: Linked to module rlm_detail
 Module: Instantiating module "auth_log" from file
/etc/raddb/modules/detail.log
  detail auth_log {
	detailfile =
"/var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d"
	header = "%t"
	detailperm = 384
	dirperm = 493
	locking = no
	log_packet_header = no
  }
 Module: Linked to module rlm_realm
 Module: Instantiating module "suffix" from file /etc/raddb/modules/realm
  realm suffix {
	format = "suffix"
	delimiter = "@"
	ignore_default = no
	ignore_null = no
  }
 Module: Linked to module rlm_always
 Module: Instantiating module "reject" from file /etc/raddb/modules/always
  always reject {
	rcode = "reject"
	simulcount = 0
	mpp = no
  }
 Module: Checking preacct {...} for more modules to load
 Module: Checking pre-proxy {...} for more modules to load
 Module: Instantiating module "pre_proxy_log" from file
/etc/raddb/modules/detail.log
  detail pre_proxy_log {
	detailfile =
"/var/log/radius/radacct/%{Client-IP-Address}/pre-proxy-detail-%Y%m%d"
	header = "%t"
	detailperm = 384
	dirperm = 493
	locking = no
	log_packet_header = no
  }
 Module: Linked to module rlm_attr_filter
 Module: Instantiating module "attr_filter.pre-proxy" from file
/etc/raddb/modules/attr_filter
  attr_filter attr_filter.pre-proxy {
	attrsfile = "/etc/raddb/attrs.pre-proxy"
	key = "%{Realm}"
  }
 Module: Checking post-proxy {...} for more modules to load
 Module: Instantiating module "attr_filter.post-proxy" from file
/etc/raddb/modules/attr_filter
  attr_filter attr_filter.post-proxy {
	attrsfile = "/etc/raddb/attrs"
	key = "%{Realm}"
  }
 Module: Instantiating module "post_proxy_log" from file
/etc/raddb/modules/detail.log
  detail post_proxy_log {
	detailfile =
"/var/log/radius/radacct/%{Client-IP-Address}/post-proxy-detail-%Y%m%d"
	header = "%t"
	detailperm = 384
	dirperm = 493
	locking = no
	log_packet_header = no
  }
 Module: Checking post-auth {...} for more modules to load
 Module: Instantiating module "reply_log" from file
/etc/raddb/modules/detail.log
  detail reply_log {
	detailfile =
"/var/log/radius/radacct/%{Client-IP-Address}/reply-detail-%Y%m%d"
	header = "%t"
	detailperm = 384
	dirperm = 493
	locking = no
	log_packet_header = no
  }
 } # modules
} # server
server eduroam-inner-tunnel { # from file
/etc/raddb/sites-enabled/eduroam-inner-tunnel
 modules {
 Module: Checking authenticate {...} for more modules to load
 Module: Linked to module rlm_pap
 Module: Instantiating module "pap" from file /etc/raddb/modules/pap
  pap {
	encryption_scheme = "auto"
	auto_header = no
  }
 Module: Linked to module rlm_mschap
 Module: Instantiating module "mschap" from file /etc/raddb/modules/mschap
  mschap {
	use_mppe = yes
	require_encryption = no
	require_strong = no
	with_ntdomain_hack = no
  }
 Module: Checking authorize {...} for more modules to load
 Module: Linked to module rlm_files
 Module: Instantiating module "files" from file /etc/raddb/modules/files
  files {
	usersfile = "/etc/raddb/users"
	acctusersfile = "/etc/raddb/acct_users"
	preproxy_usersfile = "/etc/raddb/preproxy_users"
	compat = "no"
  }
 Module: Checking post-auth {...} for more modules to load
 } # modules
} # server
server { # from file /etc/raddb/radiusd.conf
 modules {
 } # modules
} # server
radiusd: #### Opening IP addresses and Ports ####
listen {
	type = "auth"
	ipaddr = *
	port = 31812
}
listen {
	type = "acct"
	ipaddr = *
	port = 31813
}
listen {
	type = "control"
 listen {
	socket = "/var/run/radiusd/radiusd.sock"
 }
}
Listening on authentication address * port 31812
Listening on accounting address * port 31813
Listening on command file /var/run/radiusd/radiusd.sock
Listening on proxy address * port 31814
Ready to process requests.
/

--
View this message in context: http://freeradius.1045715.n5.nabble.com/Internal-sanity-check-failed-After-adding-second-Home-Server-tp5521049p5521049.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.



More information about the Freeradius-Users mailing list