{"id":733,"date":"2017-08-06T07:39:43","date_gmt":"2017-08-06T00:39:43","guid":{"rendered":"http:\/\/blog.trichev.com\/?p=733"},"modified":"2017-08-10T09:03:30","modified_gmt":"2017-08-10T02:03:30","slug":"juniper-pulse-vpn-client-for-linux","status":"publish","type":"post","link":"https:\/\/trichev.com\/blog\/2017\/08\/06\/juniper-pulse-vpn-client-for-linux\/","title":{"rendered":"Juniper Pulse VPN client for linux"},"content":{"rendered":"<p>yum install glibc.i686 zlib.i686 nss-mdns.i686<\/p>\n<p>Get realm name:<br \/>\nwget -q &#8211;no-check-certificate -O &#8211; &#8216;https:\/\/some.site.com\/dana-na\/auth\/url_0\/welcome.cgi&#8217; | sed -n &#8216;s\/.*]*name=&#8221;realm&#8221; [^&gt;]*\\)&gt;.*\/\\1\/p&#8217; | sed -n &#8216;s\/.* value=&#8221;\\([^&#8221;]*\\)&#8221;.*\/\\1\/p&#8217;<\/p>\n<p>wget https:\/\/some.site.com\/dana-cached\/nc\/ncLinuxApp.jar<br \/>\nunzip ncLinuxApp.jar<\/p>\n<p>sudo chown root:root ncsvc<br \/>\nsudo chmod 6711 ncsvc<br \/>\nchmod 744 ncdiag<br \/>\nchmod +x getx509certificate.sh<\/p>\n<p>.\/getx509certificate.sh some.site.com company.cert<\/p>\n<p>.\/ncsvc -h some.site.com -u username -p password -r REALM -f .\/company.cert -U &#8216;https:\/\/some.site.com\/dana-na\/auth\/url_default\/welcome.cgi&#8217;<\/p>\n<p><strong>Radius 2nd factor configured realm:<\/strong><br \/>\ndnf install openconnect NetworkManager-openconnect NetworkManager-openconnect-gnome<\/p>\n<p>GNOME NetworkManager:<br \/>\nAdd VPN -&gt; Cisco AnyConnect Compatible VPN (openconnect)<\/p>\n<p>In &#8220;Identity General&#8221; tab:<br \/>\nVPN Protocol &#8220;Juniper\/Pulse Network Connect&#8221;<br \/>\nGateway pulse.domain.com\/name<br \/>\nIn &#8220;IPV4&#8221; tab:<br \/>\n&#8220;Use this connection only for resources on its network&#8221;<\/p>\n<p>After a new VPN connection was created you need to switch it on. A new &#8220;Connect to VPN X&#8221; window with &#8220;frmLogin&#8221; label shows login\/password prompt. Next, click &#8220;Login&#8221; and another window with &#8220;frmDefender&#8221; requests &#8220;password&#8221;, which is actually OTP. You could get it from your pre-configured OTP app like google authenticator, SecureAuth, etc. Click &#8220;Login&#8221; after you typed random OTP and you should be all set.<\/p>\n<p>Links:<br \/>\n<a href=\"https:\/\/serverfault.com\/questions\/363061\/how-to-connect-to-a-juniper-vpn-from-linux\">https:\/\/serverfault.com\/questions\/363061\/how-to-connect-to-a-juniper-vpn-from-linux<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>yum install glibc.i686 zlib.i686 nss-mdns.i686 Get realm name: wget -q &#8211;no-check-certificate -O &#8211; &#8216;https:\/\/some.site.com\/dana-na\/auth\/url_0\/welcome.cgi&#8217; | sed -n &#8216;s\/.*]*name=&#8221;realm&#8221; [^&gt;]*\\)&gt;.*\/\\1\/p&#8217; | sed -n &#8216;s\/.* value=&#8221;\\([^&#8221;]*\\)&#8221;.*\/\\1\/p&#8217; wget https:\/\/some.site.com\/dana-cached\/nc\/ncLinuxApp.jar unzip ncLinuxApp.jar sudo chown root:root ncsvc sudo chmod 6711 ncsvc chmod 744 ncdiag chmod +x getx509certificate.sh .\/getx509certificate.sh some.site.com company.cert .\/ncsvc -h some.site.com -u username -p password -r REALM -f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[231],"tags":[32,230,28,14,11],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/733"}],"collection":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/comments?post=733"}],"version-history":[{"count":7,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/733\/revisions"}],"predecessor-version":[{"id":740,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/733\/revisions\/740"}],"wp:attachment":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/media?parent=733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/categories?post=733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/tags?post=733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}