I try with your new version in a clean installation of ubuntu 22 and in other clean installation of ubuntu 20 with the same result.
I execute "sudo vpn.sh -i --vpn=urlvpn"
The result is:
Start Check Point Mobile Access Portal Agent installation
Extracting Mobile Access Portal Agent... Done
Installing Mobile Access Portal Agent... /root/cshell_install.sh: 178: [: Cannot: unexpected operator
Installing certificate... /root/cshell_install.sh: 178: [: Cannot: unexpected operator
Starting Mobile Access Portal Agent... Done
Added graphical auto-start
For it to run, modify your /etc/sudoers for not asking for password
%sudo ALL=(ALL:ALL) NOPASSWD:ALL
%sudo ALL=(ALL:ALL) NOPASSWD: /usr/local/bin/vpn.sh
osboxes ALL=(ALL:ALL) NOPASSWD:ALL
osboxes ALL=(ALL:ALL) NOPASSWD: /usr/local/bin/vpn.sh
chroot setup done.
/home/osboxes/Downloads/vpn.sh copied to /usr/local/bin/vpn.sh
open browser with https://localhost:14186/id to accept new localhost certificate
afterwards open browser at https://urlvpn to login into VPN
If it does not work, launch vpn.sh in a terminal from the X11 console
If I execute "sudo vpn.sh status" it is running
I open firefox, and go to https://localhost:14186/id and accept the security warning
Open urlvpn and click in connect button, The status is "initializing", after "connecting", after status is "connected" a few seconds and the windows closed automatically and I am not connected to the vpn.
I try it also with chromium.
I dont know if I can send you a log or any file for it revision.
Thank you so much Ruy. If you can think of something I can try, I'm here for it.