Pau Espin Pedrol | da2e31f | 2020-03-31 13:45:01 +0200 | [diff] [blame] | 1 | /* ltemme configuration file |
| 2 | * version 2018-10-18 |
| 3 | * Copyright (C) 2015-2018 Amarisoft |
| 4 | */ |
| 5 | { |
| 6 | |
Pau Espin Pedrol | c04528c | 2020-04-01 13:55:51 +0200 | [diff] [blame] | 7 | %if epc.license_server_addr != '0.0.0.0': |
Pau Espin Pedrol | da2e31f | 2020-03-31 13:45:01 +0200 | [diff] [blame] | 8 | license_server: { |
| 9 | server_addr: "${epc.license_server_addr}", |
| 10 | name: "amarisoft", |
| 11 | }, |
Pau Espin Pedrol | c04528c | 2020-04-01 13:55:51 +0200 | [diff] [blame] | 12 | %endif |
Pau Espin Pedrol | da2e31f | 2020-03-31 13:45:01 +0200 | [diff] [blame] | 13 | |
| 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 | |
| 42 | plmn: "${epc.mcc}${epc.mnc}", |
| 43 | 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 Pedrol | 04ad3b5 | 2020-04-06 12:25:22 +0200 | [diff] [blame] | 66 | qci: ${epc.qci}, |
Pau Espin Pedrol | da2e31f | 2020-03-31 13:45:01 +0200 | [diff] [blame] | 67 | priority_level: 15, |
| 68 | pre_emption_capability: "shall_not_trigger_pre_emption", |
| 69 | pre_emption_vulnerability: "not_pre_emptable", |
| 70 | }, |
| 71 | ], |
| 72 | }, |
| 73 | ], |
| 74 | /* Setup script for the network interface. |
| 75 | If no script is given, no network interface is created. |
| 76 | Script is called for each PDN with following parameters: |
| 77 | 1) Interface name |
| 78 | 2) PDN index |
| 79 | 3) Access Point Name |
| 80 | 4) IP version: 'ipv4' or 'ipv6' |
| 81 | 5) IP address: first IP address for ipv4 and link local address for IPv6 |
| 82 | 6) First IP address |
| 83 | 7) Last IP address |
| 84 | */ |
| 85 | tun_setup_script: "${epc.ifup_filename}", |
| 86 | |
| 87 | /* If true, inter-UE routing is done inside the MME (hence no IP |
| 88 | packet is output to the virtual network interface in case of |
| 89 | inter-UE communication). Otherwise, it is done by the Linux IP |
| 90 | layer. */ |
| 91 | ue_to_ue_forwarding: false, |
| 92 | |
| 93 | /* NAS ciphering algorithm preference. EEA0 is always the last. */ |
| 94 | nas_cipher_algo_pref: [ ], |
| 95 | /* NAS integrity algorithm preference. EIA0 is always the last. */ |
| 96 | nas_integ_algo_pref: [ 2, 1 ], |
| 97 | |
| 98 | /* user data base */ |
| 99 | ue_db: [ |
| 100 | %for sub in epc.hss.subscribers: |
| 101 | { |
| 102 | sim_algo: "${sub.auth_algo}", /* USIM authentication algorithm: xor, milenage or tuak */ |
| 103 | imsi: "${sub.imsi}", /* Anritsu Test USIM */ |
| 104 | amf: 0x9001, /* Authentication Management Field */ |
| 105 | sqn: "000000000000", /* Sequence Number */ |
| 106 | K: "${sub.ki}", /* Anritsu Test USIM */ |
| 107 | /* if true, allow several UEs to have the same IMSI (useful |
| 108 | with test SIM cards). They are distinguished with their |
| 109 | IMEI. default = false. */ |
| 110 | multi_sim: true, |
| 111 | }, |
| 112 | %endfor |
| 113 | /* Add new entries for each IMSI/K */ |
| 114 | ], |
| 115 | |
| 116 | /* persistent user database */ |
| 117 | //ue_db_filename: "lte_ue.db", |
| 118 | } |