Skip to content

Instantly share code, notes, and snippets.

@ikurni
Last active February 19, 2025 06:34
Show Gist options
  • Save ikurni/b88b8f32eacd2e39c11cb52b6f0b5ba2 to your computer and use it in GitHub Desktop.
Save ikurni/b88b8f32eacd2e39c11cb52b6f0b5ba2 to your computer and use it in GitHub Desktop.
How to install SNX Checkpoint VPN client in Fedora 33
### Install few required packages to run SNX
sudo dnf install -y java-1.8.0-openjdk.x86_64 icedtea-web.x86_64 libstdc++.i686 libX11.i686 libpamtest.i686 libnsl.i686
### Download compat-libstdc++ driver and install it
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/compat-libstdc++-33-3.2.3-72.el7.i686.rpm
sudo dnf -y install compat-libstdc++-33-3.2.3-72.el7.i686.rpm
### Install snx_linux.sh
### Download snx_linux_30.sh file from Checkpoint
### Active URL : https://supportcenter.checkpoint.com/supportcenter/portal/user/anon/page/default.psml/media-type/html?action=portlets.DCFileAction&eventSubmit_doGetdcdetails&fileid=22824
### or Alternative URL: wget https://vpnportal.aktifbank.com.tr/SNX/INSTALL/snx_install.sh
sh snx_install_linux30.sh
### Connect to VPN
snx -s <servername> -u <username>
## Input for prompted password
@ruyrybeyro
Copy link

ruyrybeyro commented Nov 29, 2022 via email

@ruyrybeyro
Copy link

ruyrybeyro commented Nov 29, 2022

@pfcouto , I answered reading the email and not the edited version.

It seems DNS is not being resolved. I would recommend detailing the Linux distro, sending me a vpn.sh status, and a ls -la /etc/resolv.conf + a cat /etc/resolv.conf with the vpn on. please open an issue in my github or send me an email

As it is a DNS isssue, you can reach VMs via IP address. As for the site, it might depend on routing too.

@makehate96
Copy link

makehate96 commented Feb 19, 2025

sudo dnf install -y java-1.8.0-openjdk.x86_64 icedtea-web.x86_64 libstdc++.i686 libX11.i686 libpamtest.i686 libnsl.i686
sudo wget https://linuxsoft.cern.ch/cern/centos/7/updates/x86_64/Packages/Packages/compat-libstdc++-33-3.2.3-72.el7.i686.rpm
sudo dnf -y compat-libstdc++-33-3.2.3-72.el7.i686.rpm

Now it's::

https://support.checkpoint.com/results/download/22824

Now it's::

sudo ./snx_install_linux30.sh

Now it's:

snx -s servername -u username

Or we'll do automation. The problem with sns is that there is no place for a password in its configuration and it must be entered regularly by yourself. I solved this problem this way: create a production file in the home directory.sh and fill it out. Don't forget to create the .snxrc configuration file.

cd
touch ~/production.sh

Then put this in file:

spawn snx
expect "Please enter your password:"
sleep 2
send "HERE YOU PASSWORD"
interact

Then:

sudo dnf install expect
chmod +x ./production.sh

Create links for easy connection:

If bash.

echo "alias csnx='sudo ~/production.sh'" >> ~/.bashrc
echo "alias esnx='sudo snx -d'" >> ~/.bashrc

If zsh.

echo "alias csnx='sudo ~/production.sh'" >> ~/.zshrc
echo "alias esnx='sudo snx -d'" >> ~/.zshrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment