D
D
dminster942021-01-06 00:45:06
openvpn
dminster94, 2021-01-06 00:45:06

Openvpn config doesn't work, what's wrong with it?

server.conf

local 127.0.0.1
port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem

openvpn --config <путь к конфигу>
ERORR
[email protected]:~# openvpn --config /etc/openvpn/server
Mon Jan  4 18:42:41 2021 disabling NCP mode (--ncp-disable) because not in P2MP client or server mode
Options error: You must define TUN/TAP device (--dev)
Use --help for more information.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Vasilyev, 2021-01-06
@vasilyevmn

Add to config:
dev tun0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question