openvpn not start

This forum is for admins who are looking to build or expand their OpenVPN setup.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
psevdo
OpenVpn Newbie
Posts: 4
Joined: Sun Aug 04, 2013 8:31 am

openvpn not start

Post by psevdo » Mon Aug 05, 2013 9:08 am

my os centos 5

if i start with

service openvpn start


its ok!

but where config? /etc/openvpn is empty directory

if i start openvpn --config server.conf

Code: Select all

Mon Aug  5 13:00:55 2013 OpenVPN 2.2.2 i686-redhat-linux-gnu [SSL] [LZO2] [EPOLL                                                                                                 ] [PKCS11] [eurephia] built on Apr  5 2012
Mon Aug  5 13:00:55 2013 NOTE: the current --script-security setting may allow t                                                                                                 his configuration to call user-defined scripts
Mon Aug  5 13:00:55 2013 Diffie-Hellman initialized with 1024 bit key
Mon Aug  5 13:00:55 2013 TLS-Auth MTU parms [ L:1544 D:140 EF:40 EB:0 ET:0 EL:0                                                                                                  ]
Mon Aug  5 13:00:55 2013 Socket Buffers: R=[87380->131072] S=[16384->131072]
Mon Aug  5 13:00:55 2013 ROUTE: default_gateway=UNDEF
Mon Aug  5 13:00:55 2013 Note: Cannot open TUN/TAP dev /dev/net/tun: Operation n                                                                                                 ot permitted (errno=1)
Mon Aug  5 13:00:55 2013 /sbin/ip link set dev  up mtu 1500
Usage: ip link set DEVICE { up | down |
                             arp { on | off } |
                             dynamic { on | off } |
                             multicast { on | off } |
                             allmulticast { on | off } |
                             promisc { on | off } |
                             trailers { on | off } |
                             txqueuelen PACKETS |
                             name NEWNAME |
                             address LLADDR | broadcast LLADDR |
                             mtu MTU }
       ip link show [ DEVICE ]
Mon Aug  5 13:00:55 2013 Linux ip link set failed: external program exited with                                                                                                  error status: 255
Mon Aug  5 13:00:55 2013 Exiting

psevdo
OpenVpn Newbie
Posts: 4
Joined: Sun Aug 04, 2013 8:31 am

Re: openvpn not start

Post by psevdo » Mon Aug 05, 2013 9:12 am

server.conf

Code: Select all

script-security 2
local x.x.x.x
port 5667
proto tcp
dev tun
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/changeme.crt
key /etc/openvpn/easy-rsa/2.0/keys/changeme.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
server 10.9.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 4.2.2.1"
keepalive 5 30
comp-lzo
persist-key
persist-tun
verb 3

Post Reply