Настроил на сервере openvpn сервер. Запустил его как демон (через systemd не стартует засранец) Сделал ключи и отдал их клиенту.
Пытаюсь подключиться от клиента и получаю ошибку
Показать
Sun Sep 28 00:25:55 2014 us=458158 config = '/etc/openvpn/client.conf.bak'
Sun Sep 28 00:25:55 2014 us=458214 mode = 0
Sun Sep 28 00:25:55 2014 us=458261 persist_config = DISABLED
Sun Sep 28 00:25:55 2014 us=458322 persist_mode = 1
Sun Sep 28 00:25:55 2014 us=458420 show_ciphers = DISABLED
Sun Sep 28 00:25:55 2014 us=458465 show_digests = DISABLED
Sun Sep 28 00:25:55 2014 us=458506 show_engines = DISABLED
Sun Sep 28 00:25:55 2014 us=458560 genkey = DISABLED
Sun Sep 28 00:25:55 2014 us=458614 key_pass_file = '[UNDEF]'
Sun Sep 28 00:25:55 2014 us=458657 show_tls_ciphers = DISABLED
Sun Sep 28 00:25:55 2014 us=458696 Connection profiles [default]:
Sun Sep 28 00:25:55 2014 us=458737 proto = tcp-client
Sun Sep 28 00:25:55 2014 us=458788 local = '[UNDEF]'
Sun Sep 28 00:25:55 2014 us=458831 local_port = 0
Sun Sep 28 00:25:55 2014 us=458872 remote = '46.8.17.159'
Sun Sep 28 00:25:55 2014 us=458913 remote_port = 1723
Sun Sep 28 00:25:55 2014 us=458953 remote_float = DISABLED
Sun Sep 28 00:25:55 2014 us=458993 bind_defined = DISABLED
Sun Sep 28 00:25:55 2014 us=459032 bind_local = DISABLED
Sun Sep 28 00:25:55 2014 us=459072 NOTE: --mute triggered...
Sun Sep 28 00:25:55 2014 us=459154 204 variation(s) on previous 20 message(s) suppressed by --mute
Sun Sep 28 00:25:55 2014 us=459200 OpenVPN 2.3.2 x86_64-mageia-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [eurephia] [MH] [IPv6] built on Jan 27 2014
Sun Sep 28 00:25:55 2014 us=459481 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Sun Sep 28 00:25:55 2014 us=462604 Control Channel Authentication: using '/etc/openvpn/.tls/ta.key' as a OpenVPN static key file
Sun Sep 28 00:25:55 2014 us=462766 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Sun Sep 28 00:25:55 2014 us=462845 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Sun Sep 28 00:25:55 2014 us=462946 LZO compression initialized
Sun Sep 28 00:25:55 2014 us=463243 Control Channel MTU parms [ L:1604 D:212 EF:112 EB:0 ET:0 EL:0 ]
Sun Sep 28 00:25:55 2014 us=463407 Socket Buffers: R=[87380->131072] S=[16384->131072]
Sun Sep 28 00:25:55 2014 us=463508 Data Channel MTU parms [ L:1604 D:1450 EF:104 EB:135 ET:0 EL:0 AF:3/1 ]
Sun Sep 28 00:25:55 2014 us=463615 Local Options String: 'V4,dev-type tun,link-mtu 1604,tun-mtu 1500,proto TCPv4_CLIENT,comp-lzo,keydir 1,cipher AES-256-CBC,auth SHA512,keysize 256,tls-auth,key-method 2,tls-client'
Sun Sep 28 00:25:55 2014 us=463669 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1604,tun-mtu 1500,proto TCPv4_SERVER,comp-lzo,keydir 0,cipher AES-256-CBC,auth SHA512,keysize 256,tls-auth,key-method 2,tls-server'
Sun Sep 28 00:25:55 2014 us=463758 Local Options hash (VER=V4): 'c19f87b0'
Sun Sep 28 00:25:55 2014 us=463837 Expected Remote Options hash (VER=V4): 'eda38e81'
Sun Sep 28 00:25:55 2014 us=464862 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Sun Sep 28 00:25:55 2014 us=465055 Attempting to establish TCP connection with [AF_INET]46.8.17.159:1723 [nonblock]
Sun Sep 28 00:25:56 2014 us=465483 TCP: connect to [AF_INET]46.8.17.159:1723 failed, will try again in 5 seconds: No route to host
Sun Sep 28 00:26:02 2014 us=466169 TCP: connect to [AF_INET]46.8.17.159:1723 failed, will try again in 5 seconds: No route to host
Sun Sep 28 00:26:08 2014 us=466905 TCP: connect to [AF_INET]46.8.17.159:1723 failed, will try again in 5 seconds: No route to host[/console]
Конфиг клиента
[console]
client
tls-client
dev tun
proto tcp-client
remote 46.8.17.159 1723
resolv-retry infinite
nobind
persist-key
persist-tun
ca /etc/openvpn/.key/ca.crt
dh /etc/openvpn/.key/dh2048.pem
cert /etc/openvpn/.key/saikov.crt
key /etc/openvpn/.key/saikov.key
tls-auth /etc/openvpn/.tls/ta.key 1
cipher AES-256-CBC
auth SHA512
comp-lzo
verb 4
mute 20
user openvpn
group openvpn
log-append /var/log/openvpn/openvpn_client.log
status /var/log/openvpn/status_client.log
[/console]
Конфиг сервера
Показать
port 1723
proto tcp-server
dev tun0
tun-mtu 1500
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 10.10.20.0 255.255.255.0
daemon
mode server
tls-server
ifconfig-pool-persist /etc/openvpn/ip.sv
push "route 46.8.17.159 255.255.255.0"
;push "dhcp-option DNS 8.8.8.8"
keepalive 10 120
cipher AES-256-CBC
auth SHA512
comp-lzo
max-clients 20
user openvpn
group openvpn
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
log-append /var/log/openvpn/openvpn.log
verb 5
mute 20
[/console]