8/6/2019 Openvpn Howto Ubuntu Using Network Manager
1/7
Connect IMSc OpenVPN using Network Manager in UBUNTU
Step 1 Install the following packages
Step 2 Generate the Key Pair
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
Send the generated certificate signing request fie id_rsa.csrto 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.confand 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
sudo apt-get install network-manager-openvpn openvpn ssh
ssh-keygen -t rsa
openssl req -new -extensions v3_req \-key $HOME/.ssh/id_rsa -out $HOME/.ssh/id_rsa.csr
tar -zxvf $USERNAME.tgz
cp $HOME/.ssh/id_rsa $HOME/.openvpn/client.key
8/6/2019 Openvpn Howto Ubuntu Using Network Manager
2/7
Step 4 Configuring OpenVPN on Network Manager
Step-1Click at Network
Manager icon
Step-2Click at
VPN Connections
Step-3Click at
Configure VPN...
Step-4Click at Import
8/6/2019 Openvpn Howto Ubuntu Using Network Manager
3/7
Step-5Select and open the file
$HOME/.openvpn/imsc_wan.conf
Step-6Verify all the all
the arrowmarked entries
are same as likethe figure
Step-7Click at
Ipv4 Settings
8/6/2019 Openvpn Howto Ubuntu Using Network Manager
4/7
Step-8Select Automatic (VPN)
Addtess Only
Step-9Add 172.16.1.71
Step-10Add imsc.res.in
Step-11Click at Routers
Step-12Put tick mark at Use the connection
only for resources on its network
Step-13Click Ok
8/6/2019 Openvpn Howto Ubuntu Using Network Manager
5/7
Now Your machine is ready to connect VPN ServerBefore that, it is better to re-login and use the VPN connection
Step-14Click Apply
Step-15Click Close
8/6/2019 Openvpn Howto Ubuntu Using Network Manager
6/7
Step 5 Starting the VPN Connection imsc_wan
Step-1Click at Network
Manager icon
Step-2Click at
VPN Connections
Step-3Click at imsc_wan
Step-4Give your Passprase
Step-5Click Ok
8/6/2019 Openvpn Howto Ubuntu Using Network Manager
7/7
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 imscNote:
Once you have disconnected the imsc_wan VPN Connection then you have to revoke back thebrowser proxy setting to old one.
Hint:for switching between multiple proxy, firefox providing many addons ( plugins ). You can try
any one of that
samplehttps://addons.mozilla.org/en-US/firefox/addon/125/
Step-6Verify that the Lock icon is added in
Network Manager icon