ethack / docker-vpn

Conveniently connect to Cisco AnyConnect or OpenVPN endpoints using a docker container
96 stars 29 forks source link

Is there a way to read a AnyConnectProfile.xml? #5

Closed emailyc closed 2 years ago

emailyc commented 2 years ago

My organisation provides a .xml that contains all the configuration for running Cisco anyconnect client? Is there a way to read the .xml file?

iharshulhan commented 2 years ago

Hi @emailyc. Yes, there is an option --xmlconfig in openconnect

ethack commented 2 years ago

I just updated the vpn.sh script to handle this. I haven't tested it but you should be able to put your config file at ~/.vpn/profilename.xml, source vpn.sh, and then run openconnect profilename. Replace "profilename" with whatever you want but the filename has to match what you pass to openconnect.

giovannipizzi commented 2 years ago

Hi! Thanks @ethack for this very nice package! I confirm that I could connect via the config file as you mentioned! Just wanted to add that

Otherwise, it works! (I.e., I think this issue can be closed?)