Article 6R26E Why does NetworkManager not allow this?

Why does NetworkManager not allow this?

by
nuxy
from LinuxQuestions.org on (#6R26E)
Hi everyone!

I would like to change the file Code:/etc/NetworkManager/system-connections/vpn before or right after it is generated with a script.

This file is created when I first connect to the vpn.

These are the default values in it
Code:[connection]
id=<<VPNName>>
uuid=<<UUID>>
type=vpn
autoconnect=false
permissions=
secondaries=
zone=I want to change these three:
Code:autoconnect=true
permissions=user
zone=workThere seems to be no event like pre-down.d or pre-up.d that allows for a hook script to do this. I also don't see any way to modify whatever creates this file in the first place.

Is this even possible?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments