Currently I connect to a VPN before I start work. Then at some point I notice I need access to a network resource. So I need to open file manager and attempt to access the mount point and it will get mounted and I have access.
There is a line in fstab for the mount allowing it to get mounted when I try to access it, but I need to load the directory in file manager to get access to it, and this only works once I have connected to VPN. Ideally I would connect to VPN and the drive would get mounted.
Currently fstab has this line to mount the drive
//files.host/directory /media/directory cifs credentials=/home/path/.smbcredentials,iocharset=utf8,users,sec=ntlmssp,uid=1000,gid=1000,file_mode=0755,dir_mode=0755 0 0
I am using openconnect to connect to vpn via gnome networkmanager vpn settings.