I am trying to share an OpenVPN connection via ethernet cable through a Mac but I am unable to share it due to the config not being able to be manually added as a VPN in the Mac settings. I found a script from El Capitan that should allow me to share the connection but I am wondering if I will be able to use my Mac as normal after entering these commands in terminal and if they are compatible with Catalina or if there have been some changes made. The commands are:
sysctl -w net.inet.ip.forwarding=1
sysctl -w net.inet.ip.fw.enable=1
pfctl -f ./nat-rules -e
sudo pfctl -d
nat on utun0 from en0:network to any -> (utun0)
Also in the case that this doesn't work for sharing the VPN connection, how would I revert the settings back without having to restore the Mac.
sysctl -w net.inet.ip.forwarding=1
sysctl -w net.inet.ip.fw.enable=1
pfctl -f ./nat-rules -e
sudo pfctl -d
nat on utun0 from en0:network to any -> (utun0)
Also in the case that this doesn't work for sharing the VPN connection, how would I revert the settings back without having to restore the Mac.