blob: a6de3c0789de8e2d776b32a5a520a33eb92a018b [file] [log] [blame]
Pau Espin Pedrolda2e31f2020-03-31 13:45:01 +02001/* ltemme configuration file
2 * version 2018-10-18
3 * Copyright (C) 2015-2018 Amarisoft
4 */
5{
6
Pau Espin Pedrolc04528c2020-04-01 13:55:51 +02007%if epc.license_server_addr != '0.0.0.0':
Pau Espin Pedrolda2e31f2020-03-31 13:45:01 +02008 license_server: {
9 server_addr: "${epc.license_server_addr}",
10 name: "amarisoft",
11 },
Pau Espin Pedrolc04528c2020-04-01 13:55:51 +020012%endif
Pau Espin Pedrolda2e31f2020-03-31 13:45:01 +020013
14 /* Log filter: syntax: layer.field=value[,...]
15
16 Possible layers are nas, ip, s1ap, gtpu and all. The 'all' layer
17 is used to address all the layers at the same time.
18
19 field values:
20
21 - 'level': the log level of each layer can be set to 'none',
22 'error', 'info' or 'debug'. Use 'debug' to log all the messages.
23
24 - 'max_size': set the maximum size of the hex dump. 0 means no
25 hex dump. -1 means no limit.
26 */
27 //log_options: "all.level=debug,all.max_size=32",
28 log_options: "all.level=error,all.max_size=0,nas.level=debug,nas.max_size=1,s1ap.level=debug,s1ap.max_size=1",
29 log_filename: "${epc.log_filename}",
30
31 /* Enable remote API and Web interface */
32 com_addr: "${epc.run_addr}:9000",
33
34 /* bind address for GTP-U. Normally = address of the PC, here bound
35 on local interface to be able to run ltemme on the same PC as
36 lteenb. By default, the S1AP SCTP connection is bound on the same
37 address. */
38 gtp_addr: "${epc.run_addr}",
39
40 s1ap_bind_addr: "${epc.run_addr}",
41
Andre Puschmann5c4c0522020-07-09 15:55:04 +020042 plmn: "${'{0:03}'.format(int(epc.mcc))}${'{0:02}'.format(int(epc.mnc))}",
Pau Espin Pedrolda2e31f2020-03-31 13:45:01 +020043 mme_group_id: 32769,
44 mme_code: 1,
45
46 /* network name and network short name sent in the EMM information
47 message to the UE */
48 network_name: "Amarisoft Network",
49 network_short_name: "Amarisoft",
50
51 /* Control Plane Cellular IoT EPS optimization support */
52 cp_ciot_opt: true,
53
54 /* Public Data Networks. The first one is the default. */
55 pdn_list: [
56 {
57 /* Some UE requires a specific PDN for data access */
58 pdn_type: "ipv4",
59 access_point_name: "internet",
60 first_ip_addr: "192.168.4.2",
61 last_ip_addr: "192.168.4.254",
62 ip_addr_shift: 2,
63 dns_addr: "8.8.8.8", /* Google DNS address */
64 erabs: [
65 {
Pau Espin Pedrol04ad3b52020-04-06 12:25:22 +020066 qci: ${epc.qci},
Pau Espin Pedrolda2e31f2020-03-31 13:45:01 +020067 priority_level: 15,
68 pre_emption_capability: "shall_not_trigger_pre_emption",
69 pre_emption_vulnerability: "not_pre_emptable",
70 },
Andre Puschmannd5a58d02020-06-17 15:43:43 +020071 {
72 qci: 1,
73 priority_level: 1,
74 pre_emption_capability: "shall_not_trigger_pre_emption",
75 pre_emption_vulnerability: "not_pre_emptable",
76 setup_type: "on_demand",
AlaiaL9e025a32021-03-25 16:37:02 +010077 gbr:
78 {
79 maximum_bitrate_dl: 2000000,
80 maximum_bitrate_ul: 2000000,
81 guaranteed_bitrate_dl: 1000000,
82 guaranteed_bitrate_ul: 1000000
83 },
Andre Puschmannd5a58d02020-06-17 15:43:43 +020084 filters: [
85 {
86 direction: "both",
87 id: 1,
88 precedence: 0,
89 components: [
90 {
91 type_of_service: 0xb8,
92 mask: 255
93 }
94 ]
95 }
96 ],
97 on_demand_timeout: 10000,
98 on_demand_ul_trigger: true,
99 transaction_identifier: 20,
100 radio_priority: 1,
101 packet_flow_identifier: 20
102 },
103 {
104 qci: 2,
105 priority_level: 1,
106 pre_emption_capability: "shall_not_trigger_pre_emption",
107 pre_emption_vulnerability: "not_pre_emptable",
108 setup_type: "on_demand",
AlaiaL9e025a32021-03-25 16:37:02 +0100109 gbr:
110 {
111 maximum_bitrate_dl: 2000000,
112 maximum_bitrate_ul: 2000000,
113 guaranteed_bitrate_dl: 1000000,
114 guaranteed_bitrate_ul: 1000000
115 },
Andre Puschmannd5a58d02020-06-17 15:43:43 +0200116 filters: [
117 {
118 direction: "both",
119 id: 2,
120 precedence: 1,
121 components: [
122 {
123 type_of_service: 0x60,
124 mask: 255
125 }
126 ]
127 }
128 ],
129 on_demand_timeout: 10000,
130 on_demand_ul_trigger: true,
131 transaction_identifier: 21,
132 radio_priority: 1,
133 packet_flow_identifier: 21
134 },
Pau Espin Pedrolda2e31f2020-03-31 13:45:01 +0200135 ],
136 },
137 ],
138 /* Setup script for the network interface.
139 If no script is given, no network interface is created.
140 Script is called for each PDN with following parameters:
141 1) Interface name
142 2) PDN index
143 3) Access Point Name
144 4) IP version: 'ipv4' or 'ipv6'
145 5) IP address: first IP address for ipv4 and link local address for IPv6
146 6) First IP address
147 7) Last IP address
148 */
149 tun_setup_script: "${epc.ifup_filename}",
150
151 /* If true, inter-UE routing is done inside the MME (hence no IP
152 packet is output to the virtual network interface in case of
153 inter-UE communication). Otherwise, it is done by the Linux IP
154 layer. */
155 ue_to_ue_forwarding: false,
156
157 /* NAS ciphering algorithm preference. EEA0 is always the last. */
158 nas_cipher_algo_pref: [ ],
159 /* NAS integrity algorithm preference. EIA0 is always the last. */
160 nas_integ_algo_pref: [ 2, 1 ],
161
162 /* user data base */
163 ue_db: [
164%for sub in epc.hss.subscribers:
165 {
166 sim_algo: "${sub.auth_algo}", /* USIM authentication algorithm: xor, milenage or tuak */
167 imsi: "${sub.imsi}", /* Anritsu Test USIM */
168 amf: 0x9001, /* Authentication Management Field */
169 sqn: "000000000000", /* Sequence Number */
170 K: "${sub.ki}", /* Anritsu Test USIM */
Pau Espin Pedrol0f7f2652020-07-13 12:01:10 +0200171% if sub.opc:
172 opc: "${sub.opc}",
173% endif
Pau Espin Pedrolda2e31f2020-03-31 13:45:01 +0200174 /* if true, allow several UEs to have the same IMSI (useful
175 with test SIM cards). They are distinguished with their
176 IMEI. default = false. */
Pau Espin Pedrol0f7f2652020-07-13 12:01:10 +0200177 multi_sim: false,
Andre Puschmann0e72f9d2021-01-28 21:22:01 +0100178 count: ${sub.count},
Pau Espin Pedrolda2e31f2020-03-31 13:45:01 +0200179 },
180%endfor
181 /* Add new entries for each IMSI/K */
182 ],
183
184 /* persistent user database */
185 //ue_db_filename: "lte_ue.db",
186}