Skip to content

Commit f0a340e

Browse files
authored
Merge pull request #127 from blackcat-118/feat/TNGF
fix: changing tngf network mode to host
2 parents 1c5f021 + 693f7cf commit f0a340e

File tree

3 files changed

+8
-22
lines changed

3 files changed

+8
-22
lines changed

config/tngfcfg.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ configuration:
2626

2727
AMFSCTPAddresses: # the IP list of N2 interfaces (SCTP) on AMF when using NGAP
2828
- IP:
29-
- amf.free5gc.org
29+
- 10.100.200.16
3030
Port: 38412
3131
NASTCPPort: 20000 # TCP port which the NAS listens on
3232

3333
# --- Bind Interfaces ---
34-
IKEBindAddress: 10.100.200.16 # IP address of Nwu interface (IKE) on this TNGF
35-
RadiusBindAddress: 10.100.200.16 # IP address of Nwu interface (IKE) on this TNGF
34+
IKEBindAddress: 192.168.1.103 # IP address of Nwu interface (IKE) on this TNGF
35+
RadiusBindAddress: 192.168.1.103 # IP address of Nwu interface (IKE) on this TNGF
3636
IPSecInterfaceAddress: 10.0.0.1 # IP address of IPSec virtual interface (IPsec tunnel enpoint on this TNGF)
3737
IPSecTunnelAddress: 10.0.0.1 # Tunnel IP address of XFRM interface on this TNGF
3838
UEIPAddressRange: 10.0.0.0/24 # IP address allocated to UE in IPSec tunnel
3939
XFRMInterfaceName: xfrmi # Prefix of XFRM interface name created by TNGF
4040
XFRMInterfaceID: 1 # XFRM interface if_id for IPSec routing (Any value except to 0, default value is 7 if not defined)
4141

4242
# --- N3 Interfaces ---
43-
GTPBindAddress: 10.100.200.16 # IP address of N3 interface (GTP) on this TNGF
43+
GTPBindAddress: 192.168.1.103 # IP address of N3 interface (GTP) on this TNGF
4444

4545
FQDN: tngf.free5gc.org # FQDN of this TNGF
4646

docker-compose-build.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ services:
6969
GIN_MODE: release
7070
networks:
7171
privnet:
72+
ipv4_address: 10.100.200.16
7273
aliases:
7374
- amf.free5gc.org
7475
depends_on:
@@ -268,15 +269,7 @@ services:
268269
GIN_MODE: release
269270
cap_add:
270271
- NET_ADMIN
271-
networks:
272-
privnet:
273-
ipv4_address: 10.100.200.16
274-
aliases:
275-
- tngf.free5gc.org
276-
ports:
277-
- "1812:1812/udp"
278-
- "500:500/udp"
279-
- "4500:4500/udp"
272+
network_mode: host
280273
depends_on:
281274
- free5gc-amf
282275
- free5gc-smf

docker-compose.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ services:
6060
GIN_MODE: release
6161
networks:
6262
privnet:
63+
ipv4_address: 10.100.200.16
6364
aliases:
6465
- amf.free5gc.org
6566
depends_on:
@@ -231,15 +232,7 @@ services:
231232
GIN_MODE: release
232233
cap_add:
233234
- NET_ADMIN
234-
networks:
235-
privnet:
236-
ipv4_address: 10.100.200.16
237-
aliases:
238-
- tngf.free5gc.org
239-
ports:
240-
- "1812:1812/udp"
241-
- "500:500/udp"
242-
- "4500:4500/udp"
235+
network_mode: host
243236
depends_on:
244237
- free5gc-amf
245238
- free5gc-smf

0 commit comments

Comments
 (0)