VPN using Mint 12

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read this

VPN using Mint 12

Postby travelinrob on Sat Dec 10, 2011 3:46 pm

Greetings. I cannot connect to my VPN in Mint 12. I set it up through network manager as I normally would. Had no issues in prior releases. Does anyone have an openvpn VPN connection working in Mint 12? I was unable to resolve this issue through the IRC.

Errors:
** (nm-applet:29735): WARNING **: _nm_object_get_property: Error getting 'VpnState' for /org/freedesktop/NetworkManager/ActiveConnection/28: (19) Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

Full nm-applet error via Pastebin:
http://pastebin.com/ghssdNAu
travelinrob
Level 1
Level 1
 
Posts: 26
Joined: Thu Mar 27, 2008 10:44 am

Linux Mint is funded by ads and donations.
 

Re: VPN using Mint 12

Postby idgforum on Mon Jan 30, 2012 1:41 pm

You cant use regular open vpn service in Linux. I have try with Ubuntu, Linux Mint, Lubuntu and Fedora 16. Succes to get in to my vpn but cant surf on Internet. On OpenVpn website you can read that openvpn my not work on Linux.

Here my settings:

Image

And the file:
Code: Select all
client

#connect to VPN server
remote 213...........
proto udp

#DNS server to use
dhcp-option DNS 8.8.8.8

#remove to use your ISP's gateway
redirect-gateway def1

#your access keys
ca ca.crt
cert hideme_9..........crt
key hideme_9...........key
ns-cert-type server

#use virtual interface 'tap'
dev tap

#keep trying indefinitely to resolve the host name of the OpenVPN server.
resolv-retry infinite

#most clients don't need to bind to a specific local port number.
nobind

#try to preserve some state across restarts
persist-key
persist-tun

#enable compression on the VPN link
comp-lzo

#set log file verbosity.
verb 4

#silence repeating messages
mute 20

#tell the server to immediately close its client instance object rather than waiting for a timeout
explicit-exit-notify


Perhaps you must use Windows because Windows 7 works.
idgforum
Level 1
Level 1
 
Posts: 10
Joined: Sat Nov 26, 2011 4:54 pm

Re: VPN using Mint 12

Postby idgforum on Tue Jan 31, 2012 2:54 pm

Someone ho have succes with vpn in Linux mint (no ppp0e)?

I get this:

With VPN and no Internet conection:

cat /etc/resolv.conf
Code: Select all
nameserver 192.168.1.2

netstat -arn
Code: Select all
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         0.0.0.0         0.0.0.0         U         0 0          0 tap0
10.112.0.0      0.0.0.0         255.248.0.0     U         0 0          0 tap0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
176.61.139.106  192.168.1.2     255.255.255.255 UGH       0 0          0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0


Without VPN and working internet

cat /etc/resolv.conf
Code: Select all
# Generated by NetworkManager
nameserver 192.168.1.2


netstat -arn
Code: Select all
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.1.2     0.0.0.0         UG        0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0


This is my Internet settings in Router:
Image

Routern sub-ip (no wan) is 192.168.1.x
idgforum
Level 1
Level 1
 
Posts: 10
Joined: Sat Nov 26, 2011 4:54 pm

Re: VPN using Mint 12

Postby doktornotor on Tue Jan 31, 2012 2:59 pm

idgforum wrote:You cant use regular open vpn service in Linux.


Yes you can.

idgforum wrote:Succes to get in to my vpn but cant surf on Internet.
Perhaps you must use Windows because Windows 7 works.


If you actually had read the configuration file, maybe you would have found this offending line:

Code: Select all
#remove to use your ISP's gateway
redirect-gateway def1


:P
doktornotor
Level 4
Level 4
 
Posts: 211
Joined: Mon Jan 23, 2012 6:28 pm

Re: VPN using Mint 12

Postby idgforum on Wed Feb 01, 2012 12:38 pm

Hope this easy step works, but no, its not working
idgforum
Level 1
Level 1
 
Posts: 10
Joined: Sat Nov 26, 2011 4:54 pm

Re: VPN using Mint 12

Postby idgforum on Thu Feb 02, 2012 12:10 pm

Nobody ho has a clue to get vpn works in Linux?
idgforum
Level 1
Level 1
 
Posts: 10
Joined: Sat Nov 26, 2011 4:54 pm

Re: VPN using Mint 12

Postby idgforum on Sat Feb 04, 2012 11:29 am

Here a clip of how I put my files but the last part how I fail to access the Internet, you can skip. The same thing I've tried with openvpn folder. 20 day now, I trye to get it work and stuck with the dam Windows.

http://youtu.be/tU7qaEYYeIM
idgforum
Level 1
Level 1
 
Posts: 10
Joined: Sat Nov 26, 2011 4:54 pm

Re: VPN using Mint 12

Postby idgforum on Wed Feb 08, 2012 2:59 am

Give up and deleted Linux Mint because OpenVpn is much easy-er on Windows.
idgforum
Level 1
Level 1
 
Posts: 10
Joined: Sat Nov 26, 2011 4:54 pm

Re: VPN using Mint 12

Postby Objekt on Mon Feb 13, 2012 4:19 pm

That's really too bad. I figured it out and got VPN working under Linux Mint 12 just yesterday.

All I did was:

1) Go to Software Manager and install both OpenVPN and the OpenVPN extension for NetworkManager (I can get specific package names later if it will help).

2) Pretty sure I had to restart for these to start working.

3) Found the "Network Connections" item from the system menu (it's easiest to just type that in the search box). Add my VPN connections to the list.

4) Now I can manually connect via VPN whenever I want. It's listed along with my usual wired connection.

What I'd like to know is, how I can have Mint connect via VPN automatically, every time I log in. For now, I have to do it manually, each time I log in.
Objekt
Level 1
Level 1
 
Posts: 27
Joined: Mon Dec 05, 2011 4:58 pm

Re: VPN using Mint 12

Postby pubmania on Tue Feb 14, 2012 9:48 am

OpenVPN not working on Linux is like saying Eskimos can't survive in cold. Here is the link to a good tutorial on how OpenVPN works in Linux Mint.

http://makegadgetswork.blogspot.com/201 ... .html#more

Must admit I have not tried on Mint 12 yet but am sure it will work.
pubmania
Level 1
Level 1
 
Posts: 4
Joined: Sat Jan 15, 2011 1:12 pm

Re: VPN using Mint 12

Postby Objekt on Tue Feb 14, 2012 10:20 am

That's pretty much how I did it, just using a different VPN provider.

I'd still like to know how to make NetworkManager make the VPN connection automatically, every time I log in. Probably there's some simple script that would do it, but I've never written such things.
Objekt
Level 1
Level 1
 
Posts: 27
Joined: Mon Dec 05, 2011 4:58 pm

Re: VPN using Mint 12

Postby scotte on Tue Feb 14, 2012 12:58 pm

I can confirm OpenVPN works perfectly fine on Linux Mint 12. I have been running it without any problems whatsoever on two different computers - one of which has the VPN nailed up 24x7.
scotte
Level 1
Level 1
 
Posts: 11
Joined: Wed Nov 02, 2011 7:15 pm

Linux Mint is funded by ads and donations.
 

Return to Other networking topics

Who is online

Users browsing this forum: No registered users and 5 guests