The parts need to check after modification :
(They are in the folded area below, here just for final confirmation and not for check list)
cd NFs/amf
go get github.com/free5gc/util/mongoapi@v1.0.5-0.20230306071612-a52909216bd2
go get github.com/free5gc/amf/internal/sbi/consumer
var client *mongo.Client
var err error
client, err = mongo.Connect(context.TODO(), options.Client().ApplyURI("mongodb://localhost:27017"))
if err != nil {
log.Fatal(err)
}
// 檢查連接
err = client.Ping(context.TODO(), nil)
if err != nil {
log.Fatal(err)
}
V
V
V
V
V
The parts need to check after modification :
(They are in the folded area below, here just for final confirmation and not for check list)
V
sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables -t nat -A POSTROUTING -o ens18 -j MASQUERADE
sudo iptables -A FORWARD -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1400
sudo systemctl stop ufw
sudo iptables -I FORWARD 1 -j ACCEPT