You are on page 1of 7

Connect IMSc OpenVPN using Network Manager in UBUNTU

Step 1 Install the following packages sudo apt-get install network-manager-openvpn openvpn ssh Step 2 Generate the Key Pair

ssh-keygen -t rsa Hint: You should Put non-trivial passphrase when you are prompted for one. This will produce two files: $HOME/.ssh/id_rsa Your private key file $HOME/.ssh/id_rsa.pub Your public key file Keep the private key very safely. Step 3 Certificate Signing Request From OpenSSH private key

openssl req -new -extensions v3_req \ -key $HOME/.ssh/id_rsa -out $HOME/.ssh/id_rsa.csr Send the generated certificate signing request fie id_rsa.csr to IMSc sysadmin for signing the key by mail. After signing the key IMSc SysAdmin will send back the user certificate file client.crt, the CA certificate file imsc_openvpn_ca.crt and openvpn configuration files imsc_wan.conf and imsc_lan.conf. Usually IMSc SysAdmin will send the all file in one compressed tar file as username.tgz Store all the files sent by IMSc SysAdmin to $HOME/.openvpn/ and the private key file $HOME/.ssh/id_rsa to $HOME/.openvpn/ as client.key tar -zxvf $USERNAME.tgz cp $HOME/.ssh/id_rsa $HOME/.openvpn/client.key

Step 4

Configuring OpenVPN on Network Manager


Step-1 Click at Network Manager icon

Step-2 Click at VPN Connections

Step-3 Click at Configure VPN...

Step-4 Click at Import

Step-5 Select and open the file $HOME/.openvpn/imsc_wan.conf

Step-7 Click at Ipv4 Settings

Step-6 Verify all the all the arrow marked entries are same as like the figure

Step-8 Select Automatic (VPN) Addtess Only

Step-9 Add 172.16.1.71 Step-10 Add imsc.res.in Step-11 Click at Routers

Step-12 Put tick mark at Use the connection only for resources on its network

Step-13 Click Ok

Step-14 Click Apply

Step-15 Click Close

Now Your machine is ready to connect VPN Server Before that, it is better to re-login and use the VPN connection

Step 5

Starting the VPN Connection imsc_wan

Step-1 Click at Network Manager icon

Step-2 Click at VPN Connections

Step-3 Click at imsc_wan

Step-4 Give your Passprase

Step-5 Click Ok

Step-6 Verify that the Lock icon is added in Network Manager icon

Now the VPN connection to IMSc network is established. Appendix 1 Browsing the Journals subscribed by IMSc Library

For Browsing the Journals which are subscribed by IMSc: * You need to connect to imsc_wan using VPN connection explained in step 5 * Add the IP address 172.16.1.71 and the port 3128 to your browser proxy settings Now You can Browse all journals subscribed by imsc Note: Once you have disconnected the imsc_wan VPN Connection then you have to revoke back the browser proxy setting to old one. Hint: for switching between multiple proxy, firefox providing many addons ( plugins ). You can try any one of that sample https://addons.mozilla.org/en-US/firefox/addon/125/

You might also like