Disable IPv6 on ueransim and open5gs
Opened this issue · 0 comments
kvescovi commented
In a secure environment, it is not desirable to run IPv6 if it is not needed. Can IPv6 be disabled at the system level?
My attempt was the following:
- Comment out all /etc/open5gs/*.yaml config lines referencing IPv6 on open5gs host.
- On open5gs host, comment out /etc/systemd/network/99-open5gs.network/ 99-open5gs.network line with Address=2001:db8:cafe::1/48
- Removed # to disable IPv6 in /etc/defaults/grub on both ueransim and open5gs
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"
commented out
#GRUB_CMDLINE_LINUX=""
update-grub - Rebooted ueransim and open5gs hosts.
After this, the gNb failed to initialize when starting.
Can IPv6 be disabled?
Leaving the IPv6 config lines commented out and re-enabling IPv6 at the system level pretty much shuts off IPv6, but would like to disable at the system level.