Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openvpn and create ovpn
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rout3rx
n00b
n00b


Joined: 02 Mar 2014
Posts: 3

PostPosted: Sun Mar 02, 2014 5:08 pm    Post subject: openvpn and create ovpn Reply with quote

Hi everyones,
i have some problems with creating and configuring openvpn on gentoo,
i create a openvpn.conf and start it in /etc/init.d after start, it created a new tap/tun interface in ifconfig command.

now how can i create a file as client.ovpn for clients to connect to gentoo?

thanks
Back to top
View user's profile Send private message
user
Tux's lil' helper
Tux's lil' helper


Joined: 08 Feb 2004
Posts: 145

PostPosted: Sun Mar 02, 2014 8:37 pm    Post subject: Reply with quote

Hi,
you want a server/client config separation, right?

On client side, duplicate normal openvpn init.d script like:
Code:
ln -s /etc/init.d/openvpn /etc/init.d/openvpn.client

This symlinked init.d script will use /etc/openvpn/client.conf for now, because suffix client is automatic extracted from filename.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3374

PostPosted: Mon Mar 03, 2014 1:02 pm    Post subject: Reply with quote

I suspect the real question here is about connnecting a non-Linux / non-Gentoo client, which I had to do recently when I got an Android phone.

It was a bit of a pain. I once found directions for creating a "monolithic" .ovpn file, which included certs and everything, then lost the link. My other problem was that when "adding a connection" (or whatever it was called) OpenVPN wanted to look in a certain directory for the.ovpn file, but was looking elsewhere for the certs and such.

I put "vpnName.ovpn" in "/sdcard/Downloads", then put the rest of the files, certs, etc. in "/sdcard". Then when I went to add a connection, it was looking in "/sdcard/Downloads" for an ovpn file, and found it. As it imported the ovpn file it was looking in "/sdcard" for certs and stuff, and found them, too. The big question is if it copied those things to its own space, and now I can delete them from "/sdcard", or is it just pointing to them and I need to keep them there.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum