A
A
Anton2015-03-24 16:25:59
openvpn
Anton, 2015-03-24 16:25:59

Why doesn't the tun device come up on an openvpn connection?

Hello.
I'm trying to connect 2 servers using openvpn, for some reason the network interface does not rise in ifconfig does not show. There is no ping. I checked the config and everything is fine.
1- Server OS Ubuntu 12.04 (SERVER OpenVPN)
2- Server OS Centos 6.6 (Client OpenVPN) Server config
:
port 83
proto tcp
#proto udp
dev tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key
dh /etc/openvpn/dh1024.pem
server 10.8.0.0 255.255.255.0
route 10.0.0.0 255.255.0.0
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8. 8.8"
push "dhcp-option DNS 8.8.4.4"
ifconfig-pool-persist ipp.txt
persist-key
#persist-tun
keepalive 10 120
comp-lzo
cipher none
client-cert-not-required
username-as-common-name
auth-user-pass-verify /etc/openvpn/verify .sh via-file
tmp-dir /etc/openvpn/tmp
script-security 2
management localhost 7777 Client config
:
auth-user-pass /etc/openvpn/login.txt
client
proto tcp
remote 88.XX.XX.XX #ip just hid from strangers
port 83
dev tun
route-method exe
route-delay 3
client
tls-client
persist-key
ns-cert-type server
ca /etc/openvpn/88.204.148.98.crt
cert /etc/openvpn/88.204.148.98.crt
key /etc/openvpn/88.204.148.98.key
redirect-gateway def1 bypass-dhcp
comp-lzo
mssfix 1450
verb 5
If using tap
then the connection seems to be there but does not receive ip, if I understand correctly.
status
OpenVPN CLIENT LIST
Updated,Tue Mar 24 17:32:00 2015
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
UNDEF,2.132.108.74:19032,377,1572,Tue Mar 24 17:31:58 2015
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
GLOBAL STATS
Max bcast/mcast queue length,1
END

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2015-03-24
@gbg

Configurations "not normal" - on one side should be "proto tcp-client", on the second "proto tcp-server"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question