mirror of
https://github.com/open5gs/open5gs.git
synced 2026-04-28 03:19:31 +00:00
[SCTP] Support setting local address (#3344)
Added support for binding to local IP addresses in ogs_sctp_client and ogs_sctp_server, and correct SGsAP configuration Implemented the ability to bind to one or multiple local IP addresses using `sctp_bindx()` in both the `ogs_sctp_client()` and `ogs_sctp_server()` APIs. Users can now specify local addresses in the configuration files under the new `local_addresses` field, reducing unnecessary complexity and signaling caused by binding to `ANY_ADDR`. This update addresses issue https://osmocom.org/issues/6509 by ensuring correct operation in multi-interface and complex networking setups. Additionally, corrected the `sgsap` configuration by changing it from `server` to `client`, and added support for specifying `local_addresses` for local binding as follows: ``` sgsap: client: - address: msc.open5gs.org # SCTP server address configured on the MSC/VL local_address: 127.0.0.2 # SCTP local IP addresses to be bound in the M ```
This commit is contained in:
parent
b44d159c7b
commit
b0bfd35c63
10 changed files with 427 additions and 153 deletions
|
|
@ -59,7 +59,7 @@ mme:
|
|||
smf:
|
||||
- address: 127.0.0.4
|
||||
sgsap:
|
||||
server:
|
||||
client:
|
||||
- address: 127.0.0.2
|
||||
map:
|
||||
tai:
|
||||
|
|
|
|||
|
|
@ -164,8 +164,9 @@ mme:
|
|||
################################################################################
|
||||
# o MSC/VLR
|
||||
# sgsap:
|
||||
# server:
|
||||
# - address: 127.0.0.2
|
||||
# client:
|
||||
# - address: msc.open5gs.org # SCTP server address configured on the MSC/VLR
|
||||
# local_address: 127.0.0.2 # SCTP local IP addresses to be bound in the MME
|
||||
# map:
|
||||
# tai:
|
||||
# plmn_id:
|
||||
|
|
@ -188,7 +189,15 @@ mme:
|
|||
# mcc: 002
|
||||
# mnc: 02
|
||||
# lac: 43692
|
||||
# - address: msc.open5gs.org
|
||||
# - address: # SCTP server address configured on the MSC/VLR
|
||||
# - 127.0.0.88
|
||||
# - 10.0.0.88
|
||||
# - 172.16.0.88
|
||||
# - 2001:db8:babe::88
|
||||
# local_address: # SCTP local IP addresses to be bound in the MME
|
||||
# - 127.0.0.2
|
||||
# - 192.168.1.4
|
||||
# - 2001:db8:cafe::2
|
||||
# map:
|
||||
# tai:
|
||||
# plmn_id:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue