Showing posts with label vpn. Show all posts
Showing posts with label vpn. Show all posts

Monday, February 23, 2009

Accessing a Juniper SSL-VPN via Ubuntu Intrepid (Easy Peasy on my EeePC)

Well I've spent the last two days hacking and whacking trying to figure out how to access my offices Juniper VPN via my EeePC which I've replaced the OS with Easy Peasy (Ubuntu). Well it turns out that the problem relates to two things.... 1. Juniper wrote their "Network Connect" applications under the assumption that RedHat (RPM) is the only version of Linux in the world, and 2. the web security settings on Intrepid in some cases are higher than that of Windows......(okay not that bad).

Well while their are many 'solutions' to get Network Connect to work on Ubuntu... I couldn't manage to get any of them two work... what bothers me is that I had no problem on my desktop (now dead) with Ubuntu 8.04... but 8.10 (Intrepid) its a no go for me. Besides that since my office prefers that we use the JSAM application rather than the Network Connect app. So the problem there.... well.... the applet (yes JSAM is a java applet) requires root access to run. On Windows and on my Mac, this is no problem, the OS simply pops up a message box asking for an administrative password, but on Intrepid, from looking at the logs, it looks like Intrepid just kills the applet. solution... run firefox as root... well that turned out to be another surprising issue. You can set the password to root all you want... you can 'su -' or even login as root... so how do you run as root.... 99% of the time, you type 'sudo ', but while it starts an applications with root access... surprisingly, running anything inside that app does not necessarily have the same access. Solution:
sudo su
this will actually give you a terminal shell (of course you have to run it from the terminal) in which you can launch Firefox with complete root access... with this access, you can easily run the JSAM applet (assuming you have the Java plugin installed)

update: you can also do this same feature using
gksu firefox http://vpn_url &
 I think I'll be adding a simple desktop shortcut or cli alias for this....

update 2: using 'gksu' even lets the "Network Connect" app work  (assuming you've followed one of the many posts on the web about making it work with Ubuntu).... damn security crap.