[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: At my wit's end with openvpn



On Mon, 24 Jun 2013 18:37:38 -0700
Aubrey Raech <aubreyraech@gmail.com> wrote:

> 
> > Put those settings into a file in /etc/openvpn/<nameofservice>.conf
> > 
> > Put your key, crt and ca into that same directory.
> > 
> > run :
> > 
> > $/etc/init.d/openvpn restart
> > 
> > ta da!
> > 
> > Done.
> > 
> > This will automatically start on boot unless you change your
> > startup scripts.
> 
> I did this, and I lose the ability to connect. Domains no longer
> resolve, which I found out from ping.
> 
> I put the user/pass in a text file in the same directory and pointed
> my .conf to that, which I know is less than ideal but it's the option
> I'm stuck with for now. Where are the logs for openvpn, I can't seem
> to find them?
> 

Have you looked at the openvpn documentation on their site? It
specifically recommends using the command line to test initially, for
simplicity, and the necessary debug information should appear directly.

http://openvpn.net/index.php/open-source/documentation/howto.html#start

"To simplify troubleshooting, it's best to initially start the OpenVPN
server from the command line (or right-click on the .ovpn file on
Windows), rather than start it as a daemon or service:

    openvpn [server config file] 

A normal server startup should look like this (output will vary across
platforms):



    Sun Feb  6 20:46:38 2005 OpenVPN 2.0_rc12 i686-suse-linux [SSL] [LZO] [EPOLL] built on Feb  5 2005
    Sun Feb  6 20:46:38 2005 Diffie-Hellman initialized with 1024 bit key
    Sun Feb  6 20:46:38 2005 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
    Sun Feb  6 20:46:38 2005 TUN/TAP device tun1 opened
    Sun Feb  6 20:46:38 2005 /sbin/ifconfig tun1 10.8.0.1 pointopoint 10.8.0.2 mtu 1500
    Sun Feb  6 20:46:38 2005 /sbin/route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.2
    Sun Feb  6 20:46:38 2005 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:23 ET:0 EL:0 AF:3/1 ]
    Sun Feb  6 20:46:38 2005 UDPv4 link local (bound): [undef]:1194
    Sun Feb  6 20:46:38 2005 UDPv4 link remote: [undef]
    Sun Feb  6 20:46:38 2005 MULTI: multi_init called, r=256 v=256
    Sun Feb  6 20:46:38 2005 IFCONFIG POOL: base=10.8.0.4 size=62
    Sun Feb  6 20:46:38 2005 IFCONFIG POOL LIST
    Sun Feb  6 20:46:38 2005 Initialization Sequence Completed"


The use of keys is very strongly recommended, and the documentation
does assume this to be the case.

-- 
Joe


Reply to: