Hi Santo
ive always found that the gui in mageia of add vpn is good for getting you started.
so go into magia control center, and a new vpn, type openvpn and just put any old rubish in the dialog boxes to make it complete, it realy does not matter what you put in.
then open a terminal switch user to root and go to /etc/sysconfig/network-scripts/vpn.d/openvpn
in there you will find a file named after your config.
now edit that file as follows.
- Code: Select all
client
dev tun
tun-mtu 1500
remote VPNSERVERIPADDRESS PORTNUMBER(1194, usualy)
resolv-retry infinite
nobind
user openvpn
group openvpn
persist-key
persist-tun
ca /pathtoca/ca.crt
cert /pathtoca/device.crt
key /pathtoca/device.key
ns-cert-type server
cipher AES-256-CBC
auth sha512
comp-lzo
verb 3
for the pathtoca, your openvpn provider will give you 3 files, a ca.crt, a device.crt and a device.key
the name device might be different depending on your provider.
so locate those 3 files somewhere on your system, and change pathtoca to reflect that and the names to reflect the 3 files.
your vpn provider will also have given you an ipaddress and port number, update the line
remote VPNSERVERIPADDRESS PORTNUMBER(1194, usualy)
accordingly
go into magia control center and disable the outgoing firewall.
start the vpn, and make sure it has connected (this can be done via the netapplet, if you are using that for networking)
then go and re-enable the firewall, it will notice thats there is a new network connection and give you a chance to include that as a allowed outgoing service.
thats it.
i use this for my own vpn and for torguard
if you want to setup your own vpn server, i recommend not using your mageia box for that, not because its not good at doing that,
but simply because having a desktop pc running as a vpn server, is costly power wise, and a ddwrt or openwrt based wifi access point
can do this really easily out of the box and costs almost nothing to run 24x7.
regards peter