Skip to content

Commit

Permalink
Merge pull request #127 from blackcat-118/feat/TNGF
Browse files Browse the repository at this point in the history
fix: changing tngf network mode to host
  • Loading branch information
ianchen0119 authored Sep 5, 2024
2 parents 1c5f021 + 693f7cf commit f0a340e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 22 deletions.
8 changes: 4 additions & 4 deletions config/tngfcfg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ configuration:

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

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

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

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

Expand Down
11 changes: 2 additions & 9 deletions docker-compose-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ services:
GIN_MODE: release
networks:
privnet:
ipv4_address: 10.100.200.16
aliases:
- amf.free5gc.org
depends_on:
Expand Down Expand Up @@ -268,15 +269,7 @@ services:
GIN_MODE: release
cap_add:
- NET_ADMIN
networks:
privnet:
ipv4_address: 10.100.200.16
aliases:
- tngf.free5gc.org
ports:
- "1812:1812/udp"
- "500:500/udp"
- "4500:4500/udp"
network_mode: host
depends_on:
- free5gc-amf
- free5gc-smf
Expand Down
11 changes: 2 additions & 9 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ services:
GIN_MODE: release
networks:
privnet:
ipv4_address: 10.100.200.16
aliases:
- amf.free5gc.org
depends_on:
Expand Down Expand Up @@ -231,15 +232,7 @@ services:
GIN_MODE: release
cap_add:
- NET_ADMIN
networks:
privnet:
ipv4_address: 10.100.200.16
aliases:
- tngf.free5gc.org
ports:
- "1812:1812/udp"
- "500:500/udp"
- "4500:4500/udp"
network_mode: host
depends_on:
- free5gc-amf
- free5gc-smf
Expand Down

0 comments on commit f0a340e

Please sign in to comment.