| 1 |
# This is a sample configuration file for freeDiameter daemon. |
| 2 |
|
| 3 |
# Most of the options can be omitted, as they default to reasonable values. |
| 4 |
# Only TLS-related options must be configured properly in usual setups. |
| 5 |
|
| 6 |
# It is possible to use "include" keyword to import additional files |
| 7 |
# e.g.: include "/etc/freeDiameter.d/*.conf" |
| 8 |
# This is exactly equivalent as copy & paste the content of the included file(s) |
| 9 |
# where the "include" keyword is found. |
| 10 |
|
| 11 |
|
| 12 |
############################################################## |
| 13 |
## Peer identity and realm |
| 14 |
|
| 15 |
# The Diameter Identity of this daemon. |
| 16 |
# This must be a valid FQDN that resolves to the local host. |
| 17 |
# Default: hostname's FQDN |
| 18 |
#Identity = "aaa.koganei.freediameter.net"; |
| 19 |
Identity = "hss.localdomain"; |
| 20 |
|
| 21 |
# The Diameter Realm of this daemon. |
| 22 |
# Default: the domain part of Identity (after the first dot). |
| 23 |
#Realm = "koganei.freediameter.net"; |
| 24 |
Realm = "localdomain"; |
| 25 |
|
| 26 |
############################################################## |
| 27 |
## Transport protocol configuration |
| 28 |
|
| 29 |
# The port this peer is listening on for incoming connections (TCP and SCTP). |
| 30 |
# Default: 3868. Use 0 to disable. |
| 31 |
#Port = 3868; |
| 32 |
|
| 33 |
# The port this peer is listening on for incoming TLS-protected connections (TCP and SCTP). |
| 34 |
# See TLS_old_method for more information about TLS flavours. |
| 35 |
# Note: we use TLS/SCTP instead of DTLS/SCTP at the moment. This will change in future version of freeDiameter. |
| 36 |
# Default: 5868. Use 0 to disable. |
| 37 |
#SecPort = 5868; |
| 38 |
|
| 39 |
# Use RFC3588 method for TLS protection, where TLS is negociated after CER/CEA exchange is completed |
| 40 |
# on the unsecure connection. The alternative is RFC6733 mechanism, where TLS protects also the |
| 41 |
# CER/CEA exchange on a dedicated secure port. |
| 42 |
# This parameter only affects outgoing connections. |
| 43 |
# The setting can be also defined per-peer (see Peers configuration section). |
| 44 |
# Default: use RFC6733 method with separate port for TLS. |
| 45 |
#TLS_old_method; |
| 46 |
|
| 47 |
# Disable use of TCP protocol (only listen and connect over SCTP) |
| 48 |
# Default : TCP enabled |
| 49 |
#No_TCP; |
| 50 |
|
| 51 |
# Disable use of SCTP protocol (only listen and connect over TCP) |
| 52 |
# Default : SCTP enabled |
| 53 |
#No_SCTP; |
| 54 |
No_SCTP; |
| 55 |
# This option is ignored if freeDiameter is compiled with DISABLE_SCTP option. |
| 56 |
|
| 57 |
# Prefer TCP instead of SCTP for establishing new connections. |
| 58 |
# This setting may be overwritten per peer in peer configuration blocs. |
| 59 |
# Default : SCTP is attempted first. |
| 60 |
#Prefer_TCP; |
| 61 |
|
| 62 |
# Default number of streams per SCTP associations. |
| 63 |
# This setting may be overwritten per peer basis. |
| 64 |
# Default : 30 streams |
| 65 |
#SCTP_streams = 30; |
| 66 |
|
| 67 |
############################################################## |
| 68 |
## Endpoint configuration |
| 69 |
|
| 70 |
# Disable use of IP addresses (only IPv6) |
| 71 |
# Default : IP enabled |
| 72 |
#No_IP; |
| 73 |
|
| 74 |
# Disable use of IPv6 addresses (only IP) |
| 75 |
# Default : IPv6 enabled |
| 76 |
#No_IPv6; |
| 77 |
|
| 78 |
# Specify local addresses the server must bind to |
| 79 |
# Default : listen on all addresses available. |
| 80 |
#ListenOn = "202.249.37.5"; |
| 81 |
#ListenOn = "2001:200:903:2::202:1"; |
| 82 |
#ListenOn = "fe80::21c:5ff:fe98:7d62%eth0"; |
| 83 |
ListenOn = "127.0.0.4"; |
| 84 |
|
| 85 |
|
| 86 |
############################################################## |
| 87 |
## Server configuration |
| 88 |
|
| 89 |
# How many Diameter peers are allowed to be connecting at the same time ? |
| 90 |
# This parameter limits the number of incoming connections from the time |
| 91 |
# the connection is accepted until the first CER is received. |
| 92 |
# Default: 5 unidentified clients in paralel. |
| 93 |
#ThreadsPerServer = 5; |
| 94 |
|
| 95 |
############################################################## |
| 96 |
## TLS Configuration |
| 97 |
|
| 98 |
# TLS is managed by the GNUTLS library in the freeDiameter daemon. |
| 99 |
# You may find more information about parameters and special behaviors |
| 100 |
# in the relevant documentation. |
| 101 |
# http://www.gnu.org/software/gnutls/manual/ |
| 102 |
|
| 103 |
# Credentials of the local peer |
| 104 |
# The X509 certificate and private key file to use for the local peer. |
| 105 |
# The files must contain PKCS-1 encoded RSA key, in PEM format. |
| 106 |
# (These parameters are passed to gnutls_certificate_set_x509_key_file function) |
| 107 |
# Default : NO DEFAULT |
| 108 |
#TLS_Cred = "<x509 certif file.PEM>" , "<x509 private key file.PEM>"; |
| 109 |
#TLS_Cred = "/etc/ssl/certs/freeDiameter.pem", "/etc/ssl/private/freeDiameter.key"; |
| 110 |
TLS_Cred = "/etc/nextepc/freeDiameter/hss.cert.pem", "/etc/nextepc/freeDiameter/hss.key.pem"; |
| 111 |
|
| 112 |
# Certificate authority / trust anchors |
| 113 |
# The file containing the list of trusted Certificate Authorities (PEM list) |
| 114 |
# (This parameter is passed to gnutls_certificate_set_x509_trust_file function) |
| 115 |
# The directive can appear several times to specify several files. |
| 116 |
# Default : GNUTLS default behavior |
| 117 |
#TLS_CA = "<file.PEM>"; |
| 118 |
TLS_CA = "/etc/nextepc/freeDiameter/cacert.pem"; |
| 119 |
|
| 120 |
# Certificate Revocation List file |
| 121 |
# The information about revoked certificates. |
| 122 |
# The file contains a list of trusted CRLs in PEM format. They should have been verified before. |
| 123 |
# (This parameter is passed to gnutls_certificate_set_x509_crl_file function) |
| 124 |
# Note: openssl CRL format might have interoperability issue with GNUTLS format. |
| 125 |
# Default : GNUTLS default behavior |
| 126 |
#TLS_CRL = "<file.PEM>"; |
| 127 |
|
| 128 |
# GNU TLS Priority string |
| 129 |
# This string allows to configure the behavior of GNUTLS key exchanges |
| 130 |
# algorithms. See gnutls_priority_init function documentation for information. |
| 131 |
# You should also refer to the Diameter required TLS support here: |
| 132 |
# http://tools.ietf.org/html/rfc6733#section-13.1 |
| 133 |
# Default : "NORMAL" |
| 134 |
# Example: TLS_Prio = "NONE:+VERS-TLS1.1:+AES-128-CBC:+RSA:+SHA1:+COMP-NULL"; |
| 135 |
#TLS_Prio = "NORMAL"; |
| 136 |
|
| 137 |
# Diffie-Hellman parameters size |
| 138 |
# Set the number of bits for generated DH parameters |
| 139 |
# Valid value should be 768, 1024, 2048, 3072 or 4096. |
| 140 |
# (This parameter is passed to gnutls_dh_params_generate2 function, |
| 141 |
# it usually should match RSA key size) |
| 142 |
# Default : 1024 |
| 143 |
#TLS_DH_Bits = 1024; |
| 144 |
|
| 145 |
# Alternatively, you can specify a file to load the PKCS#3 encoded |
| 146 |
# DH parameters directly from. This accelerates the daemon start |
| 147 |
# but is slightly less secure. If this file is provided, the |
| 148 |
# TLS_DH_Bits parameters has no effect. |
| 149 |
# Default : no default. |
| 150 |
#TLS_DH_File = "<file.PEM>"; |
| 151 |
|
| 152 |
|
| 153 |
############################################################## |
| 154 |
## Timers configuration |
| 155 |
|
| 156 |
# The Tc timer of this peer. |
| 157 |
# It is the delay before a new attempt is made to reconnect a disconnected peer. |
| 158 |
# The value is expressed in seconds. The recommended value is 30 seconds. |
| 159 |
# Default: 30 |
| 160 |
#TcTimer = 30; |
| 161 |
|
| 162 |
# The Tw timer of this peer. |
| 163 |
# It is the delay before a watchdog message is sent, as described in RFC 3539. |
| 164 |
# The value is expressed in seconds. The default value is 30 seconds. Value must |
| 165 |
# be greater or equal to 6 seconds. See details in the RFC. |
| 166 |
# Default: 30 |
| 167 |
#TwTimer = 30; |
| 168 |
|
| 169 |
############################################################## |
| 170 |
## Applications configuration |
| 171 |
|
| 172 |
# Disable the relaying of Diameter messages? |
| 173 |
# For messages not handled locally, the default behavior is to forward the |
| 174 |
# message to another peer if any is available, according to the routing |
| 175 |
# algorithms. In addition the "0xffffff" application is advertised in CER/CEA |
| 176 |
# exchanges. |
| 177 |
# Default: Relaying is enabled. |
| 178 |
#NoRelay; |
| 179 |
|
| 180 |
# Number of server threads that can handle incoming messages at the same time. |
| 181 |
# Default: 4 |
| 182 |
#AppServThreads = 4; |
| 183 |
|
| 184 |
# Other applications are configured by loaded extensions. |
| 185 |
|
| 186 |
############################################################## |
| 187 |
## Extensions configuration |
| 188 |
|
| 189 |
# The freeDiameter framework merely provides support for |
| 190 |
# Diameter Base Protocol. The specific application behaviors, |
| 191 |
# as well as advanced functions, are provided |
| 192 |
# by loadable extensions (plug-ins). |
| 193 |
# These extensions may in addition receive the name of a |
| 194 |
# configuration file, the format of which is extension-specific. |
| 195 |
# |
| 196 |
# Format: |
| 197 |
#LoadExtension = "/path/to/extension" [ : "/optional/configuration/file" ] ; |
| 198 |
# |
| 199 |
# Examples: |
| 200 |
#LoadExtension = "extensions/sample.fdx"; |
| 201 |
#LoadExtension = "extensions/sample.fdx":"conf/sample.conf"; |
| 202 |
|
| 203 |
# Extensions are named as follow: |
| 204 |
# dict_* for extensions that add content to the dictionary definitions. |
| 205 |
# dbg_* for extensions useful only to retrieve more information on the framework execution. |
| 206 |
# acl_* : Access control list, to control which peers are allowed to connect. |
| 207 |
# rt_* : routing extensions that impact how messages are forwarded to other peers. |
| 208 |
# app_* : applications, these extensions usually register callbacks to handle specific messages. |
| 209 |
# test_* : dummy extensions that are useful only in testing environments. |
| 210 |
|
| 211 |
|
| 212 |
# The dbg_msg_dump.fdx extension allows you to tweak the way freeDiameter displays some |
| 213 |
# information about some events. This extension does not actually use a configuration file |
| 214 |
# but receives directly a parameter in the string passed to the extension. Here are some examples: |
| 215 |
## LoadExtension = "dbg_msg_dumps.fdx" : "0x1111"; # Removes all default hooks, very quiet even in case of errors. |
| 216 |
## LoadExtension = "dbg_msg_dumps.fdx" : "0x2222"; # Display all events with few details. |
| 217 |
## LoadExtension = "dbg_msg_dumps.fdx" : "0x0080"; # Dump complete information about sent and received messages. |
| 218 |
# The four digits respectively control: connections, routing decisions, sent/received messages, errors. |
| 219 |
# The values for each digit are: |
| 220 |
# 0 - default - keep the default behavior |
| 221 |
# 1 - quiet - remove any specific log |
| 222 |
# 2 - compact - display only a summary of the information |
| 223 |
# 4 - full - display the complete information on a single long line |
| 224 |
# 8 - tree - display the complete information in an easier to read format spanning several lines. |
| 225 |
|
| 226 |
LoadExtension = "dbg_msg_dumps.so" : "0x8888"; |
| 227 |
LoadExtension = "dict_rfc5777.so"; |
| 228 |
LoadExtension = "dict_mip6i.so"; |
| 229 |
LoadExtension = "dict_nasreq.so"; |
| 230 |
LoadExtension = "dict_nas_mipv6.so"; |
| 231 |
LoadExtension = "dict_dcca.so"; |
| 232 |
LoadExtension = "dict_dcca_3gpp.so"; |
| 233 |
LoadExtension = "dict_s6a.so"; |
| 234 |
|
| 235 |
|
| 236 |
############################################################## |
| 237 |
## Peers configuration |
| 238 |
|
| 239 |
# The local server listens for incoming connections. By default, |
| 240 |
# all unknown connecting peers are rejected. Extensions can override this behavior (e.g., acl_wl). |
| 241 |
# |
| 242 |
# In addition to incoming connections, the local peer can |
| 243 |
# be configured to establish and maintain connections to some |
| 244 |
# Diameter nodes and allow connections from these nodes. |
| 245 |
# This is achieved with the ConnectPeer directive described below. |
| 246 |
# |
| 247 |
# Note that the configured Diameter Identity MUST match |
| 248 |
# the information received inside CEA, or the connection will be aborted. |
| 249 |
# |
| 250 |
# Format: |
| 251 |
#ConnectPeer = "diameterid" [ { parameter1; parameter2; ...} ] ; |
| 252 |
# Parameters that can be specified in the peer's parameter list: |
| 253 |
# No_TCP; No_SCTP; No_IP; No_IPv6; Prefer_TCP; TLS_old_method; |
| 254 |
# No_TLS; # assume transparent security instead of TLS. DTLS is not supported yet (will change in future versions). |
| 255 |
# Port = 5868; # The port to connect to |
| 256 |
# TcTimer = 30; |
| 257 |
# TwTimer = 30; |
| 258 |
# ConnectTo = "202.249.37.5"; |
| 259 |
# ConnectTo = "2001:200:903:2::202:1"; |
| 260 |
# TLS_Prio = "NORMAL"; |
| 261 |
# Realm = "realm.net"; # Reject the peer if it does not advertise this realm. |
| 262 |
# Examples: |
| 263 |
#ConnectPeer = "aaa.wide.ad.jp"; |
| 264 |
#ConnectPeer = "old.diameter.serv" { TcTimer = 60; TLS_old_method; No_SCTP; Port=3868; } ; |
| 265 |
ConnectPeer = "mme.localdomain" { ConnectTo = "127.0.0.2"; No_TLS; }; |
| 266 |
|
| 267 |
############################################################## |