linux – check point web vpn client

in my opinion, check point vpn client not “friendly” with linux user. you must login or have subscription to see documentation, or solution. while the other vendor open his documentation or support.

i am using bunsenlab linux distro, it based debian 8, so its not to old for development or support.

the point key to connect web based check point vpn client,

  • firefox version, under 52, i am using 45 version
  • oracle java version 6, becouse 7 and 8 commonly get you error
  • snx build version 800007107

and then the step command

sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"
sudo apt-get update
sudo apt-get install oracle-java6-installer
java -version
sudo dpkg --add-architecture i386 
sudo apt-get update
sudo apt-get install libc6:i386 
sudo apt-get install lib32ncurses5
sudo apt-get install libx11-6:i386
sudo apt-get install libstdc++5:i386 libpam0g:i386
sudo apt-get install lib32z1

wget https://github.com/g3n1k/linux-check-point-web-based-client/raw/master/snx_install.sh
sudo sh ./snx_install.sh
# debug all dependency
sudo ldd /usr/bin/snx

mkdir -p ~/bin && cd ~/bin
wget https://ftp.mozilla.org/pub/firefox/releases/45.0esr/linux-x86_64/en-US/firefox-45.0esr.tar.bz2

# extract firefox 45esr
chmod +x ~/bin/firefox/firefox

# if your default browser is firefox you must set another profile
~/bin/firefox/firefox -P

# set firefox 45esr option for not update
# debug if still not connect
sudo apt-get install gcc
sudo apt-get install libstdc++5
sudo apt-get install lib32gcc1 lib32stdc++6
sudo reboot

using bunsenlab linux (debian 8), oracle java 1.6, firefox 45esr, snx 800007107

connect - 05122017 - 04:31:35 PM.png

https://github.com/g3n1k/linux-check-point-web-based-client

http://kenfallon.com/checkpoint-snx-install-instructions-for-major-linux-distributions/

https://gist.github.com/veysiertekin/4a7950167744fa556ae3

debian linux – using two browser firefox version

in firefox version 52, this version limit NPAPI support, this technology required for Java applets, which my vpn client using java applet ūüė¶

and how to solve ? using older version firefox just for open vpn applet

i am using debian 8, from crunchbang++ distro

# i am using firefox 50 version, the reason it not to old,
wget -cv https://ftp.mozilla.org/pub/firefox/releases/50.0/linux-x86_64/en-US/firefox-50.0.tar.bz2 

# extract file, move to bin folder, rename folder to firefox50
tar xvjf firefox-50.0.tar.bz2
mv firefox ~/bin/firefox-50

# set another profile user
~/bin/firefox-50/firefox -ProfileManager

# create new profile
# and lauch the firefox

# you can create with link for launcher

sshfs mount remote folder linux and samba shared windows

using sshfs to mount another space linux and shared it to other windows os with samba

background problem
==================
we have big storage computer with linux debian os, lets say 192.168.0.77
and we have another ubuntu linux for manage service like ftp, samba etc, let say 192.168.0.81
the other computer have windows os, which will need the share storage

solution
==================

using sshfs for mounting storage from 192.168.1.77,
and using samba for shared it from 192.168.1.81

+- Р-+                     +- Р-+
| 77|                    | 81|                       +- Р-+ +- Р-+
|¬† ¬† ¬† |— sshfs —|¬†¬†¬†¬†¬† |— samba —| win win|
|      |                    |      |                       |  7   8  10 |
+- Р-+                     +- Р-+                       +- Р-+ +- Р-+
/mnt/backup        /home/user/backup    \\192.168.1.81\u2backup

how to

# user@ubuntu81:
# ==============
# create keygen for less password

ssh-keygen -t rsa

# root@debian77:
# ==============
# create new user ub for access folder for shared

useradd ub
passwd ub
su ub
mkdir ~/.ssh && cd ~/.ssh
scp user@ubuntu81:/home/user/.ssh/id_rsa.pub .
mv id_rsa.pub authorized_keys
exit

# create folder to shared
mkdir /mnt/backup
chown ub.ub /mnt/backup

# user@ubuntu81:
# ==============

# install sshfs
sudo apt-get install sshfs
sudo modprobe fuse
sudo adduser $USER fuse
sudo chown root:fuse /dev/fuse

# enable non root for mounting sshfs
sudo nano /etc/fuse.conf
# change
#user_allow_other
# to
user_allow_other
# save

# create folder to mount
mkdir ~/backup

# mounting remote folder
sshfs ub@debian77:/mnt/backup /home/user/backup -o allow_other

# check with write file and folder 
mkdir test-dir && touch test-file
ls -al

# do ls -al in root@debian77:/mnt/backup

# install samba
sudo apt-get install samba -y

# set password user for samba,
# you can set diferent password to login shell linux
sudo pdbedit -a user

# add new share in samba config
sudo nano /etc/samba/smb.conf
# add lines
[u2backup]
path = /home/user/backup
available = yes
valid users = user
read only = no
browseable = yes
public = yes
writable = yes

#save and restart samba
sudo /etc/init.d/samba restart

# now check from windows computer
# open explorer and type \\192.168.0.81\u2backup
# input user name and password samba
# and add some test file

sshfs-samba