Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for openconnect (to connect to Cisco AnyConnect) #58

Open
one7two99 opened this issue Nov 2, 2020 · 0 comments
Open

Support for openconnect (to connect to Cisco AnyConnect) #58

one7two99 opened this issue Nov 2, 2020 · 0 comments

Comments

@one7two99
Copy link

one7two99 commented Nov 2, 2020

Hello tasket,

thank you for your excellent script, which made it super easy to setup ExpressVPN in Qubes.
All traffic from my corporate AppVMs should go through a VPN-Proxy-VM which connects to our Cisco VPN Router (AnyConnect).
Connecting to our corporate VPN router is easy using openconnect (dnf install openconnect).
Can you made a second Qubes-VPN-Support script which will allow users to connect via openvpn (which includes AnyConnect for corporate users)?
My idea was to have one config file (/rw/config/vpn/openconnect.conf) which includes the basic information:

vpn.mycorporation.com
demousername
supersecretpassword

Then it would be sufficiant to run the following command to establish the connection:

cat openconnect.conf | sed -n '3p' | openconnect --protocol=anyconnect --user=`cat openconnect.conf | sed -n '2p'` --disable-ipv6 --no-dtls  --passwd-on-stdin --background `cat openconnect.conf | sed -n '1p'`

or for better readability

cat openconnect.conf | sed -n '3p' | openconnect \
  --protocol=anyconnect \
  --user=`cat openconnect.conf | sed -n '2p'` \
  --disable-ipv6 \
  --no-dtls\
  --passwd-on-stdin 
  --background 
  `cat openconnect.conf | sed -n '1p'`

I had to add the following option after getting a fingerprint warning because the VPN router is not using a public certificate:
--servercert pin-sha256:eG..........8=

I tried to look into your script and make it work myself but didn't succeeded.
If you can take the above commands in consideration, I would love seeing a 2nd qubes-vpn-support-script which is able to use openconnect.

one7two99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant