You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve managed to connect to my VPN on a CLI-only server, but the problem is that I have to authenticate every time I reconnect to the VPN. Here’s the process I’ve been following:
On the server, I run gpclient connect ..., which starts a local server accessible at 127.0.0.1:<port1>/<hash> and listens on another port <port2> for authentication data.
On my PC (with a GUI), I use ssh -L to bind <port1> to port 80 on my PC. I then complete the authentication process using a browser on my PC.
After step 2, I get the globalprotectcallback: <base64-string>. I return to the server and send the callback string using netcat: echo -n "globalprotectcallback: <base64-string>" | nc 127.0.0.1 <port2>
This method works, and I can connect to the VPN. However, every time I disconnect and reconnect starting from step 1, I have to repeat the entire authentication process. On the other hand, the GUI version of the VPN client automatically saves the authentication data, so it connects seamlessly without requiring me to authenticate again.
Q: Is there a way to save the authentication data or session cookies on the CLI-only server so that I don’t have to go through the authentication process every time I reconnect to the VPN?
The text was updated successfully, but these errors were encountered:
I’ve managed to connect to my VPN on a CLI-only server, but the problem is that I have to authenticate every time I reconnect to the VPN. Here’s the process I’ve been following:
gpclient connect ...
, which starts a local server accessible at127.0.0.1:<port1>/<hash>
and listens on another port<port2>
for authentication data.ssh -L
to bind<port1>
to port80
on my PC. I then complete the authentication process using a browser on my PC.globalprotectcallback: <base64-string>
. I return to the server and send the callback string using netcat:echo -n "globalprotectcallback: <base64-string>" | nc 127.0.0.1 <port2>
This method works, and I can connect to the VPN. However, every time I disconnect and reconnect starting from step 1, I have to repeat the entire authentication process. On the other hand, the GUI version of the VPN client automatically saves the authentication data, so it connects seamlessly without requiring me to authenticate again.
Q: Is there a way to save the authentication data or session cookies on the CLI-only server so that I don’t have to go through the authentication process every time I reconnect to the VPN?
The text was updated successfully, but these errors were encountered: