The simplest level would to add what settings you want to Prefs.js file.
http://kb.mozillazine.org/Prefs.js_file
If you want the preferences locked the application level and not be overridden or be unchangeable at profile level. Mainly important if you are managing a lot systems. http://kb.mozillazine.org/Locking_preferences
Re:VPN leaks users’ IPs via WebRTC
by UnrealIncident on Wednesday March 28, 2018 @09:52PM
(#16703922)
Look into vendor.js for patching about:config. I know Arch has one for sure in their package.
There is an extension [1] that'll at least disable the IP address gathering (it doesn't look to disable all of the above settings but may have a similar effect if browser.privacy.network.peerConnectionEnabled disables everything):
[1] https://github.com/ChrisAntaki/disable-webrtc-firefox