I have searched for this issue for a month. there are 100eds of solutions and since I am not really that good I dont know really what suites best. Is it a script? Is it routing issue, I dont know.
Nevertheles what I want is when I start my openvpn connection on my linux box via network-manager I map my drives on my work-windows machine.
This is surely very easy but with so many solutions on the net and all tried I am getting a bit desperate understanding what is what.
Right now as I mentioned above I connect to my work via OpenVPN via network-manager in Ubuntu. Then I manually mount:
Code: Select all
mount -t cifs //network/share /my/mountpoint username=winuser,password=winpass
I do it manually.
So, is there a way for me for those work directories to pop up?
Do I need a mounting auto-script?
Is it done via network-manager via routing?
Is it a bash script that I need to put in init.d directories?
Is it an autofs thing?
If automounting I need my system to unmount as well upon disconnecting VPN or logging out or shutting down otherwise the system stalls.
Bleh, I ran into so many solutions that my head is spinning. So I need a bit of help.
Thank you.