Accessing Insti Network using OpenVPN in Ubuntu 14.04

268 views
Skip to first unread message

Gururaj S

unread,
Jun 20, 2014, 6:31:37 AM6/20/14
to wncc...@googlegroups.com
Hi,

I tried following the steps outlined at http://www.cc.iitb.ac.in/engservices/engaccessingiitffromoutside/19-vpn :

  1. Login as root user. Click on System->Administrator->Synaptic Package Manager.

  2. Install 'openvpn' from Synaptic Package Manager.
    OR You can manually install by typing the command 'sudo apt-get install openvpn ' in the console

  3. After successful Installation download the settings file ubuntu_openvpn_client_student.tgz The following are the contents of the file
    	client.conf
    	client.up
    	client.down
    	keys/
    
  4. Copy that file ubuntu_openvpn_client_student.tgz to '/etc/openvpn/' directory.
  1. Now follow instructions as below from point "6".


    -------------------------------------------
6. Exract the file in the same directory, overwriting all existing default config files. If you are using the console then the following command extracts the contents.
	tar xzf xxxx_openvpn_client_student.tgz (XXXX --> fedora/ubuntu)
7. To connect to the VPN server, Insert tun module by typing command ' modprobe tun' and start the openvpn daemon by typing command ' service openvpn start'in console [command prompt] and use your "Ldap username & Password for authentication.
 
	[root@frdora ~]# modprobe tun
 
	[root@frdora ~]# service openvpn start
	Starting openvpn:                                           
	Enter Auth Username: "USE YOUR LDAP ID"
	Enter Auth Password:
							[  OK  ]
	[root@fedora ~]#

--------------------------------------------------------------------------------------

The issue is that when I say service openvpn start , I dont get the Enter authorisation messages at all. All I get is :

 * Starting virtual private network daemon(s)...                                 *   Autostarting VPN 'client'    


Anyone faced similar issues? I can seem to get it working perfectly well in Windows with the OpenVPN GUI.

Regards,
Gururaj

Ashwin Kachhara

unread,
Jun 20, 2014, 6:41:10 AM6/20/14
to wncc...@googlegroups.com
umm to start a service, you'll have to run with sudo.

I have openvpn configured on windows 8 and it works perfectly. You have to start the client with a 'run as administrator'


--
--
The website for the club is http://wncc-iitb.org/
To post to this group, send email to wncc...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "Web and Coding Club IIT Bombay" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wncc_iitb+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Ashwin Kachhara
Senior Undergraduate
Electrical Engineering Dept.
IIT Bombay

Gururaj S

unread,
Jun 20, 2014, 7:54:23 AM6/20/14
to wncc...@googlegroups.com
I ran the command with Sudo only. Still not requesting for username, password. Is it working for others in Ubuntu?

Gururaj

Pritam Baral

unread,
Jun 20, 2014, 7:54:53 AM6/20/14
to wncc...@googlegroups.com
@Ashwin: You don't need sudo if you're already root.

 

Regards,
Chhatoi Pritam Baral



On Fri, Jun 20, 2014 at 4:07 PM, Ashwin Kachhara <kachhar...@gmail.com> wrote:

Ashwin Kachhara

unread,
Jun 20, 2014, 8:07:39 AM6/20/14
to wncc...@googlegroups.com
^ Yeah i know.

Arkopal Dutt

unread,
Jun 20, 2014, 3:47:51 PM6/20/14
to wncc...@googlegroups.com
I don't know if it helps but I am facing the same problem. :(

Prannoy M

unread,
Jun 20, 2014, 3:47:52 PM6/20/14
to wncc...@googlegroups.com
Hi,
It didn't work for me too and I had to manually configure the vpn settings. Click on the network icon and then VPN connections => configure VPN.
Now click on 'Add' and then select OpenVPN under VPN in the dropdown menu, click 'Create' and select the required files as in the screenshot attached.

If you don't get the OpenVPN option in the dropdown menu, then do:
sudo apt-get install network-manager-openvpn network-manager-openvpn-gnome
and it should work.
 
M.Prannoy

Undergraduate | Mechanical Engineering | IIT Bombay


Tel +91-9167649592

Screenshot from 2014-06-20 19:15:45.png

Gururaj S

unread,
Jun 23, 2014, 2:55:50 PM6/23/14
to wncc...@googlegroups.com
Hi Prannoy,

I tried using the GUI as you suggested. After I enter the same details as said by you, when I try to connect, I get the following message:

"VPN connection failed because connection timed out." 

Any help?

Regards,

Gururaj

Sumeet Fefar

unread,
Jun 26, 2014, 4:52:09 AM6/26/14
to wncc...@googlegroups.com
Yes I faced the same problem. And I solved by it by following method:

1) open /etc/client.conf with root access

2) Replace following lines

#plugin
plugin /usr/lib/openvpn/openvpn-down-root.so "/etc/openvpn/client.down"

by

#plugin
plugin /usr/lib/openvpn/openvpn-plugin-down-root.so "/etc/openvpn/client.down"

3) And try 'sudo modprobe tun' + 'sudo service openvpn start'

It should work. It works for me


Sumeet Fefar
Electrical Engineering
IIT Bombay
Reply all
Reply to author
Forward
0 new messages