server.conf Issues (Ubuntu)

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
sagahon
OpenVpn Newbie
Posts: 2
Joined: Tue Apr 15, 2014 4:11 pm

server.conf Issues (Ubuntu)

Post by sagahon » Tue Apr 15, 2014 4:37 pm

Hi everybody,
I'm very newbie in this technology the thing is I'm trying to create the VPN but I'm having some Issues with the server.conf file.

I used this video for all the installation: https://www.youtube.com/watch?v=_4I8W-jpWg0
I was able to complete everything, but I have doubt when I have to configure the server.conf file.

The setup is in Ubunto 12.04lts in virtual machine (VMware)
The thing that I have doubts is how can I configure this file, I only have put:

Code: Select all

ca ca.crt
cert MobiCServer.crt
key MobiCServer.key
dh dh1024.pem
Because I have seen a lot of information but this only confuse me:

But I'm not sure who else need to be in this configuration:
http://www.f15ijp.com/2010/08/installin ... ntu-10-04/
http://www.slsmk.com/installing-openvpn ... using-tun/
https://help.ubuntu.com/12.04/serverguide/openvpn.html
http://www.deigher.com/2012/07/instalar ... 12-04-lts/

And now I don't have idea about what I need to set., In the video that I used for the installation the guy says you can only put the certs. But when I try to run the server this messages appears:
root@ubuntu:/etc/init.d# ./openvpn start
* Starting virtual private network daemon(s)... * Autostarting VPN 'server'

root@ubuntu:/etc/init.d# ifconfig tun0
tun0: error fetching interface information: Device not found
This is my ifconfig:
Image

Thanks for your time, geetings.

sagahon
OpenVpn Newbie
Posts: 2
Joined: Tue Apr 15, 2014 4:11 pm

Re: server.conf Issues (Ubuntu)

Post by sagahon » Tue Apr 15, 2014 11:11 pm

Thanks debbie10t,

I read the info and I set this config:

Code: Select all

dev tun
proto udp
port 1194

ca ca.crt
cert MobiCServer.crt
key MobiCServer.key
dh dh1024.pem

user nobody
group nogroup

server 10.8.0.0 255.255.255.0

persist-key
persist-tun

status /var/log/openvpn-status.log
verb 3
client-to-client

push "redirect-gateway def1 bypass-dhcp"

push "dhcp-option DNS 10.0.0.2"
push "dhcp-option DNS 10.1.0.2"

log-append /var/log/openvpn
comp-lzo
Now I can see the internal IP: 10.8.0.1
Image

It's possible connect devices with that IP? or is necessary use a routed or bridged VPN because I have all the setup in a virtual machine. Thanks for your time.

Post Reply