Page 1 of 1
Openvpn connection established but no tun interface created
Posted: Wed Apr 15, 2015 11:20 am
by ruser
Hi,
The openvpn log for client shows 'Initialization Sequence Complete', but there is no tun interface seen using 'ifconfig'. Have anyone observed this behaviour ? Under what scenarios can we see this behaviour ?
Please help in this regard.
Re: Openvpn connection established but no tun interface crea
Posted: Wed Apr 15, 2015 11:44 am
by maikcat
post your configs/logs please
Michael.
Re: Openvpn connection established but no tun interface crea
Posted: Wed Apr 15, 2015 12:06 pm
by ruser
Below are the server and the client configurations used,
server.conf
Code: Select all
dev tun0
proto tcp
port 1194
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
management localhost 5001
script-security 2
server 10.8.0.0 255.255.255.0
cipher AES-192-CBC
persist-key
persist-tun
reneg-sec 0
status /var/log/openvpn-status.log
verb 4
client-to-client
push "redirect-gateway def1"
#set the dns servers
push "dhcp-option DNS 10.8.0.1"
duplicate-cn
comp-lzo
client.conf
Code: Select all
dev tun
client
proto tcp
remote server 1194
ca ca.crt
cert client1.crt
key client1.key
resolv-retry infinite
persist-key
persist-tun
cipher AES-128-CBC
comp-lzo
verb 3
Re: Openvpn connection established but no tun interface crea
Posted: Wed Apr 15, 2015 12:27 pm
by maikcat
please post your logs also,
for now you must correct your configs since they mismatch...
server
cipher AES-192-CBC
client
cipher AES-128-CBC
you MUST use the SAME cipher on both ends.
Michael.