Pages

Affichage des articles dont le libellé est [ubuntu] Ubuntu Server 16.04 Openvpn Connection Refused. Afficher tous les articles
Affichage des articles dont le libellé est [ubuntu] Ubuntu Server 16.04 Openvpn Connection Refused. Afficher tous les articles

[ubuntu] Ubuntu Server 16.04 Openvpn Connection Refused

dimanche 14 août 2016

Hi,

i am running a Openvpn server (Ubuntu 16.04) and Client (Ubuntu Server 14.04) but i suddendly could not connect to the tun after a reboot.
TCP: connect to [AF_INET]xxxx:1194 failed, will try again in 5 seconds: Connection refused
The openvpn server is running.
I did not chance any settings and thats why i am really confused. I always get the same error whitought any code like other people (verbose 6)

Server config:

Code:

 port 1194
 proto tcp
 dev tun2
 link-mtu 1420
 ca /etc/openvpn/keys/ca.crt
 cert /etc/openvpn/keys/server1.crt
 key /etc/openvpn/keys/server1.key
 dh /etc/openvpn/keys/dh1024.pem
 server 10.2.0.0 255.255.255.0
 ifconfig-pool-persist ipp.txt
 push "route 192.168.3.0 255.255.255.0"
 keepalive 10 120
 auth SHA1
 cipher AES-256-CBC
 user nobody
 group nogroup
 persist-key
 persist-tun 
 verb 3

Client Config:


Code:

client
 dev tun2
 link-mtu 1420
 remote xxxxx 1194
 resolv-retry infinite
 nobind
 persist-key
 persist-tun
 ca /etc/openvpn/keys3/ca.crt
 cert /etc/openvpn/keys3/client2.crt
 key /etc/openvpn/keys3/client2.key
 cipher AES-256-CBC
 verb 6

IP-Forwarding is activ and Port is open

Code:

tcp        0      0 0.0.0.0:1194            0.0.0.0:*               LISTEN      5759/openvpn

iptables:

Code:


vergrößern

Chain INPUT (policy ACCEPT 2873 packets, 294K bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 147 packets, 29891 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  enp2s0 tun0    10.1.0.0/24          192.168.3.0/24       ctstate NEW
    0     0 ACCEPT     all  --  enp2s0 tun2    10.2.0.0/24          192.168.3.0/24       ctstate NEW
    0     0 ACCEPT     all  --  tun2   enp2s0  10.2.0.0/24          0.0.0.0/0            ctstate NEW
30471 5461K ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
    0     0 ACCEPT     all  --  tun0   enp2s0  10.1.0.0/24          0.0.0.0/0            ctstate NEW

Chain OUTPUT (policy ACCEPT 1938 packets, 346K bytes)
 pkts bytes target     prot opt in     out     source               destination

btw i am running 2 different tun and tun2 is not working (10.2.0.0)
Did i miss something?

Let's block ads! (Why?)



[ubuntu] Ubuntu Server 16.04 Openvpn Connection Refused
Read more ...