D
D
Dana2018-05-10 12:34:08
openvpn
Dana, 2018-05-10 12:34:08

How to start openvpn via config?

Now I start Openvpn via: service openvpn start.
Everything works, but I have a server on which there are two configs: a server and an Openvpn client. Service restarts both the server and the Openvpn client at once. Therefore, to restart only the client or only the server, I decided to use the command: openvpn server.conf
But it does not work. After starting the console hangs and nothing happens.
At the same time, it is written in the logs that the client has connected. And openvpn server does work.
When you press ctrl + c, the console works again, the connection disappears and it is written in the logs

Thu May 10 02:20:02 2018 LC-50/192.168.255.130:44175 SENT CONTROL [LC-50]: 'PUSH_REPLY,route 10.8.70.0 255.255.255.0,route 10.8.70.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.70.6 10.8.70.5' (status=1)
Thu May 10 02:25:47 2018 event_wait : Interrupted system call (code=4)
Thu May 10 02:25:47 2018 /sbin/ip route del 10.8.70.0/24
RTNETLINK answers: Operation not permitted
Thu May 10 02:25:47 2018 ERROR: Linux route delete command failed: external program exited with error status: 2
Thu May 10 02:25:47 2018 Closing TUN/TAP interface
Thu May 10 02:25:47 2018 /sbin/ip addr del dev tun0 local 10.8.70.1 peer 10.8.70.2
RTNETLINK answers: Operation not permitted
Thu May 10 02:25:47 2018 Linux ip addr del failed: external program exited with error status: 2
Thu May 10 02:25:47 2018 SIGINT[hard,] received, process exiting

The same goes for launching the client.
How to solve this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
Ziptar, 2018-05-10
@danacn

Look here .

D
Denis Sechin, 2018-05-11
@tamogavk

openvpn --config config.conf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question