教學: 用 Ubuntu Linux (64bit) 環境使用 Juniper SSL VPN (免裝 32bit Java) (zh_TW)

BlueT’s LikeCoin donate button

概要

# 安裝函式庫
sudo apt-get install libc6:i386 zlib1g:i386 libgtk2-perl libwww-perl
# 取得檔案
wget https://raw.github.com/madscientist/msjnc/master/msjnc
wget http://mad-scientist.net/junipernc
chmod +x msjnc junipernc
# 瀏覽器開 SSLVPN 網站並下載 jar 檔# 解出檔案
./msjnc
# 啟動 VPN
junipernc --nojava

SSL VPN 是什麼

VPN

SSL VPN


工具

sudo apt-get install libc6:i386 zlib1g:i386
sudo apt-get install libgtk2-perl libwww-perl
wget https://raw.github.com/madscientist/msjnc/master/msjnc
wget http://mad-scientist.net/junipernc
chmod +x msjnc junipernc

流程

準備所需資訊

TWAREN’s Juniper SSLVPN Login page
bluet@clean:~$ ls -al .juniper_networks
總計 2032
drwxrwxr-x 2 bluet bluet 4096 3月 29 01:01 .
drwxr-xr-x 20 bluet bluet 4096 3月 29 01:00 ..
-rw-rw-r-- 1 bluet bluet 2065489 6月 25 2014 ncLinuxApp.jar
-rw-rw-r-- 1 bluet bluet 19 3月 29 01:01 whitelist.txt
./msjnc
bluet@Zorya:~$ find ~/.juniper_networks/
/home/bluet/.juniper_networks/
/home/bluet/.juniper_networks/networkconnect.gif
/home/bluet/.juniper_networks/network_connect
/home/bluet/.juniper_networks/network_connect/version.txt
/home/bluet/.juniper_networks/network_connect/libncui.so
/home/bluet/.juniper_networks/network_connect/xlaunchNC.sh
/home/bluet/.juniper_networks/network_connect/ncsvc
/home/bluet/.juniper_networks/network_connect/ncdiag
/home/bluet/.juniper_networks/network_connect/NC.jar
/home/bluet/.juniper_networks/network_connect/META-INF
/home/bluet/.juniper_networks/network_connect/META-INF/IMPORTED.RSA
/home/bluet/.juniper_networks/network_connect/META-INF/IMPORTED.SF
/home/bluet/.juniper_networks/network_connect/META-INF/MANIFEST.MF
/home/bluet/.juniper_networks/network_connect/installNC.sh
/home/bluet/.juniper_networks/network_connect/ncsvc.log
/home/bluet/.juniper_networks/network_connect/getx509certificate.sh
/home/bluet/.juniper_networks/getx509certificate.sh
/home/bluet/.juniper_networks/ncLinuxApp.jar
sudo apt-get install openjdk-7-jdk:i386

啟動 VPN,開始享受

設定 VPN

echo 0 | sudo tee /proc/sys/net/ipv6/conf/default/router_solicitations
junipernc --nojava
bluet@clean:~$ ifconfig tun0
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.99.1.30 P-t-P:10.99.1.30 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1
RX packets:16363 errors:0 dropped:0 overruns:0 frame:0
TX packets:11128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:20952021 (20.9 MB) TX bytes:777393 (777.3 KB)

啟動 VPN

junipernc --nojava

停止 VPN

sudo killall ncsvc

後記


GeekyLog

BlueT’s LoGeeks, Logics of Geeky Thoughts.

BlueT / Matthew Lien 練喆明

Written by

Just another Perl / OpenSource / Security Hacker. CTO / Co-founder @Imonology, Leader @Ubuntu_TW, Founder @OSSPlanet. Promote Ubuntu Linux, Networking, Privacy.

GeekyLog

GeekyLog

BlueT’s LoGeeks, Logics of Geeky Thoughts.