apiVersion: v1
kind: ConfigMap
metadata:
  name: free5gc-n3iwf-ipsec-conf
  namespace: 5gcore
data:
  n3iwf-ipsec.sh: |
    #!/bin/sh

    ### N3iwf IPSec tunnel configuration

    ip l add name ipsec0 type vti local $(hostname -i | awk '{print $1}') remote 0.0.0.0 key 5
    ip a add 10.0.0.1/24 dev ipsec0
    ip l set dev ipsec0 up
