M
M
Maxim2014-08-27 22:36:34
openvpn
Maxim, 2014-08-27 22:36:34

Why is there no tun0 interface in ifconfig?

I install OpenVPN on CentOS 6.5.
I do everything according to this instruction
www.unixmen.com/setup-openvpn-server-client-centos-6-5
but in ifconfig there is no tun0 interface, there are no
logs at all. nowhere. I can't find them.
did so.
openvpn --config /etc/openvpn/server.ovpn
config

port 1723 
proto tcp-server 
dev tun0 
tun-mtu 1450
ca /etc/openvpn/.key/ca.crt 
cert /etc/openvpn/.key/server.crt 
key /etc/openvpn/.key/server.key 
dh /etc/openvpn/.key/dh2048.pem 
server 192.168.3.0 255.255.255.0 
daemon 
mode server 
tls-server 
ifconfig-pool-persist /etc/openvpn/ip.sv
push "route 192.168.1.0 255.255.255.0"
push "route 10.14.2.0 255.255.255.0"
push "route 10.214.2.128 255.255.255.128"
keepalive 10 120 
tls-auth /etc/openvpn/.keys/ta.key 0 
cipher AES-256-CBC 
auth SHA512 
comp-lzo 
max-clients 20 
persist-key 
persist-tun 
status /var/log/openvpn/openvpn-status.log 
log-append /var/log/openvpn/openvpn.log 
verb 5 
mute 20

Start up without error
# service openvpn restart
Останавливается openvpn:                                   [  OK  ]
Запускается openvpn:                                       [  OK  ]

ifconfig -a output
# ifconfig -a
eth0      Link encap:Ethernet  HWaddr D6:A6:10:6E:5B:CD
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:247

eth1      Link encap:Ethernet  HWaddr 22:08:20:6B:A8:4F
          inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::2008:20ff:fe6b:a84f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:99393 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48198 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:106972885 (102.0 MiB)  TX bytes:4147054 (3.9 MiB)
          Interrupt:246

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

netstat -nlp | grep 1723
does not display anything => the port does not want to listen.
Help me to understand.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2014-08-27
@maxpointn2point

Rename /etc/openvpn/server.ovpn to /etc/openvpn/server.conf
And restart the service.

C
Cool Admin, 2014-08-27
@ifaustrue

I'm not sure, but there seems to be no such option in the config
There is either dev tun - l3 mode, or dev tap - l2 mode.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question