This forum is dedicated to testing early releases and cauldron : Howtos, tips, tricks and user global feedback and thoughts...

Helpful tip :
For bugs tracking we use : = The Mageia Bug Tracker
In this bug tracker you'll find already reported bugs and you'll be able to report those you have found....


Postby neophyte » Feb 13th, '13, 16:19

4 différentes maniéres de configurer une connexion vpn dans mageia 3.
Ai tout tenté, mais sans succés.
Merci de vos solutions
Posts: 2
Joined: Feb 13th, '13, 16:17

Re: opennpv

Postby isadora » Feb 13th, '13, 16:56

Neophyte, first welcome to the Mageia forum!!! :)

It would be wise posting in English, for this is the international forum.
For Mageia in the French language i could point you at:

Then, i changed your title to what it is now. ;)

Have good times around!!!
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
Posts: 2680
Joined: Mar 25th, '11, 16:03
Location: Amsterdam, the Netherlands

Re: openvpn

Postby oj » Feb 13th, '13, 17:55

I refer to this when openvpn isn't working as expected: ... erver/1873

It always works if I follow those instructions.
Posts: 232
Joined: Aug 23rd, '12, 00:22

Re: openvpn

Postby wintpe » Feb 15th, '13, 17:19

ok you asked via a crosspost how to configure openvpn.

in mageia 2 all i can say, is follow the prompts in the gui tool, and it works.

in mageia 1 it was problematic so i set it up manualy.

when ive finished setting it up, with the gui the resulting config is stored in a file

/etc/sysconfig/network-scripts/vpn.d/openvpn/name.conf where name is the name you gave this instance in the gui.

the contents of this file is as follows obscured for my own security.

i use this command to display this to remove the comments , and commented out lines.

cat name.conf |grep -v ^#|grep -v ^\;

Code: Select all
dev tun
remote my.ip.address.vpn portnumber
resolv-retry infinite
ca /keystorage/ca.crt
cert /keystorage/peternc10.crt
key /keystorage/peternc10.key
verb 3

the files in /keystorage are created when setting up the openvpn server and should be provided by your provider

once your normal lan is online, you start your vpn, via the gui if you wish and you can assosiate a vpn config with a lan config wireless or wired so that it starts

when you start it this is the sort of thing you should see.

Code: Select all
[root@localhost ~]# ifconfig -a

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:  P-t-P:  Mask:
          RX packets:15030 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15333 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:19764181 (18.8 MiB)  TX bytes:1000021 (976.5 KiB)

wlan0     Link encap:Ethernet  HWaddr C4:85:08:49:3B:30
          inet addr:  Bcast:  Mask:
          RX packets:118894 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42000 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:36073805 (34.4 MiB)  TX bytes:7485892 (7.1 MiB)

the tun0 is an ssh like tunnel that goes out over your wlan or lan, and connects with the port on your REMOTE server.

traffic is routed down this tunnel presented as another route for your data

so your routing tables should look something like

ive messed with all those 199.199 values for privacy reasons

Code: Select all
[root@localhost ~]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface         UG        0 0          0 wlan0   UG        0 0          0 tun0 UH        0 0          0 tun0   U         0 0          0 wlan0     U         0 0          0 wlan0   UG        0 0          0 tun0   UG        0 0          0 tun0

hope that helps

regards peter
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.
Posts: 1204
Joined: May 22nd, '11, 17:08
Location: Rayleigh,, Essex , UK

Return to Testing : Alpha, Beta, RC and Cauldron

Who is online

Users browsing this forum: No registered users and 1 guest