Closed scott-dunt closed 3 years ago
I had this problem too, but I found on https://www.infradead.org/openconnect/globalprotect.html that you can try
--authgroup=GatewayName
(I used this in conjunction with --portal). That didn't work for me, but in the end I just directly connected to the gateway with something that looks like this:
gp-saml-gui -P --gateway campus.vpn.berkeley.edu
How do I specific the gateway on teh command line, I have tried --gateway="US Centrral"
The --gateway
argument here means "do SAML authentication via the gateway, not the portal.”
It does not mean, “choose the gateway named XYZ after doing SAML authentication via the portal.” That would be option #2 below.
The GlobalProtect authentication handoff between portal/gateway is an incoherent mess, and I don't have access to enough combinations of servers to figure out how to automate them all fully. :man_shrugging:
Depending on what your particular server(s) accept, you might want one of the following…
gp-saml-gui -S --clientos=Windows --gateway us-central-g-precisio.gp2j22jyc2c.gw.gpcloudservice.com
openconnect
(did you read --help
?) which seems to be what you are trying to do…
gp-saml-gui -S --clientos=Windows remote.precisionplanting.com -- --authgroup="US Central"
IMPORTANT:
warning into account, and modify the output to deliver the cookie straight to a gateway instead of resubmitting the cookie to the portal interface:
echo R/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxl |
sudo openconnect --protocol=gp --user=SDxxx@xxxxxxxxxxxxxxxxx.com --os=win --usergroup=gateway:prelogin-cookie --passwd-on-stdin us-central-g-precisio.gp2j22jyc2c.gw.gpcloudservice.com
What @qups is suggesting is my “option 1.”
Skipping the portal entirely is always the sanest option, assuming your VPN's authentication is set up in such a way that it's possible.
Your VPN appears to be such a VPN, because https://us-central-g-precisio.gp2j22jyc2c.gw.gpcloudservice.com/ssl-vpn/prelogin.esp contains SAML tags. So that's the sane choice here.
I had this problem too, but I found on https://www.infradead.org/openconnect/globalprotect.html that you can try
--authgroup=GatewayName
(I used this in conjunction with --portal). That didn't work for me, but in the end I just directly connected to the gateway with something that looks like this:
You can use this in conjuction with gp-saml-gui --portal
. Simply add -- --authgroup=Whatever
to the end of the gp-saml-gui
CLI, and it'll pass along that argument to openconnect
.
Thanks to @qups that solved it.. Connecting to the gateway directly does the trick
gp-saml-gui -S --gateway us-central-g-xxxxxxxxxxxxxxxxxxxxxxxxervice.com
The install - start up works great. I get a pop up and get logged in, then Global Protect responds with a list of 'Gateway servers" and errors out with: "Resource temporarily unavailable"
How do I specific the gateway on teh command line, I have tried --gateway="US Centrral"
Log of connection attempt: