-
Notifications
You must be signed in to change notification settings - Fork 0
/
SNX_F33
88 lines (56 loc) · 2.87 KB
/
SNX_F33
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
### Necessary steps to install Check Point SNX on Fedora 33 (it was also tested on Fedora 32 and worked perfectly on both)
### https://gist.github.com/rkueny/301f7ead21ed2a0ee8bbe2d755bed90b
### https://l8group.freshdesk.com/support/solutions/articles/1000311472-vpn-client-via-linha-de-comando-no-linux
#Basic Configuration
sudo dnf check --all ou sudo dnf check all
sudo dnf config-manager --save --setopt="deltarpm=False"
sudo systemctl disable --now dnf-makecache.timer
sudo systemctl mask dnf-makecache.timer
sudo systemctl daemon-reload
sudo systemctl reset-failed
sudo dnf install --allowerasing vim-default-editor
sudo dnf remove nano
sudo dnf --refresh --best --allowerasing upgrade
#First, install dependencies:
$ sudo dnf install tmux compsize vim-enhanced expect tar bzip2 wget which bash-color-prompt bash-completion elfutils-libelf.i686 libX11.i686 libaudit.so.1 libcrack.so.2 libdb-5.3.so libselinux.so.1 libnsl.so.1 libpam.so.0
$ sudo dnf install https://kojipkgs.fedoraproject.org//vol/fedora_koji_archive01/packages/compat-gcc-32/3.2.3/68.16.fc26.1/i686/compat-libstdc++-33-3.2.3-68.16.fc26.1.i686.rpm
or
$ sudo dnf --disablerepo fedora-modular,updates-modular --releasever=30 install compat-libstdc++-33.i686
$ sudo dnf --disablerepo=* --enablerepo=fedora,updates --releasever=30 install compat-libstdc++-33.i686
#Download snx (version 800010003) installation script directly from Check Point:
#https://supportcenter.checkpoint.com/supportcenter/portal/user/anon/page/default.psml/media-type/html?action=portlets.DCFileAction&eventSubmit_doGetdcdetails=&fileid=22824
$ wget "https://dl3.checkpoint.com/paid/72/72c2c91791690927da0586ec873430cf/snx_install_linux30.sh?HashKey=1606410226_fc154a870571831a99712184df39e90f&xtn=.sh" -O snx_install_linux30_800010003.sh
$ wget --content-disposition https://l8group.freshdesk.com/helpdesk/attachments/1120409355 -O snx_install_linux30-sk90240.sh
#Check script + binary
$ tail -n +80 snx_install_linux30-sk90240.sh > snx.30
$ tar tf snx.30
$ tar xf snx.30
$ ./snx ver
#Make the script executable and install using sudo:
$ sudo chmod +x snx_install_linux30_800010003.sh; sudo ./snx_install_linux30_800010003.sh
$ sudo chmod +x snx_install_linux30-sk90240.sh; sudo ./snx_install_linux30-sk90240.sh
#Check if all libraries are resolved and execute snx binary to check version:
$ sudo ldd $(which snx)
$ snx ver
#Basic use of snx
- Connection:
$ snx -s server.url.net -u alfalco
- Disconnect:
$ snx -d
#Using snx config file, .snxrc:
tee -a ~/.snxrc <<-EOF
server server.url.net
username alfalco
reauth yes
EOF
$ snx
#Create a expect script with follow:
#!/usr/bin/expect
spawn -ignore HUP /bin/sh -c "snx"
expect "Please enter your password:"
send "yourpassword\n";
interact
#Make it executable before using
#Bonus
#Check which packages have installed libraries
$ for i in $(sudo ldd $(which snx) | awk '/ => / { print $3 }'); do rpm -qf $i; done