OpenVpn
Добавлено: 2013-07-24 23:15:49
Проблема следующего характера, OpenVpn настроен по той статье http://www.lissyara.su/articles/freebsd ... n+pkcs-12/
и все работает нормально в связке с FreeBsd (центральный офис+2 дополнительных), но появилась необходимость начальнику работать удаленно со своего Мака, сделал ему ключ, поставил на мак Viscosity, подключаюсь через обычный интернет - пишет, что подключение прошло и присвоен виртуальный IP из серии 10.*.* , но подсеть 192.* не пингуется, с билайновским модемом еще хуже - происходит попытка подключения и вот, что в логе
ul 24 23:50:32: Viscosity Mac 1.4.4 (1138)
Jul 24 23:50:32: Viscosity OpenVPN Engine Started
Jul 24 23:50:32: Running on Mac OS X 10.8.4
Jul 24 23:50:32: ---------
Jul 24 23:50:32: Проверка доступоности соединения...
Jul 24 23:50:32: Соединение доступно. Подключаюсь.
Jul 24 23:50:35: OpenVPN 2.3.2 i386-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Jun 7 2013
Jul 24 23:50:34: Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Jul 24 23:50:34: UDPv4 link local (bound): [undef]
Jul 24 23:50:34: UDPv4 link remote: [AF_INET] "внешний IP":1194
Jul 24 23:50:35: [server] Peer Connection Initiated with [AF_INET] "внешний IP":1194
Jul 24 23:50:37: viscosity_foreign_option_1=dhcp-option DNS 192.168.1.1
Jul 24 23:50:37: viscosity_foreign_option_2=dhcp-option DNS 192.168.1.10
Jul 24 23:50:37: viscosity_foreign_option_3=dhcp-option WINS 192.168.1.1
Jul 24 23:50:37: TUN/TAP device /dev/tun0 opened
Jul 24 23:50:37: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Jul 24 23:50:37: /sbin/ifconfig tun0 delete
Jul 24 23:50:37: NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
Jul 24 23:50:37: /sbin/ifconfig tun0 "виртуальный IP" mtu 1500 netmask 255.255.255.255 up
Jul 24 23:50:37: Initialization Sequence Completed
Jul 25 00:06:52: Viscosity Mac 1.4.4 (1138)
Jul 25 00:06:52: Viscosity OpenVPN Engine Started
Jul 25 00:06:52: Running on Mac OS X 10.8.4
Jul 25 00:06:52: ---------
Jul 25 00:06:52: Проверка доступоности соединения...
Jul 25 00:06:52: Соединение доступно. Подключаюсь.
Jul 25 00:06:54: OpenVPN 2.3.2 i386-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Jun 7 2013
Jul 25 00:06:54: Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Jul 25 00:06:54: UDPv4 link local (bound): [undef]
Jul 25 00:06:54: UDPv4 link remote: [AF_INET]"внешний IP":1194
Jul 25 00:07:54: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Jul 25 00:07:54: TLS Error: TLS handshake failed
Jul 25 00:07:54: SIGUSR1[soft,tls-error] received, process restarting
Jul 25 00:08:05: TCP/UDP: Preserving recently used remote address: [AF_INET]"внешний IP"
Jul 25 00:08:05: UDPv4 link local (bound): [undef]
Jul 25 00:08:05: UDPv4 link remote: [AF_INET]"внешний IP"
заранее спасибо
и все работает нормально в связке с FreeBsd (центральный офис+2 дополнительных), но появилась необходимость начальнику работать удаленно со своего Мака, сделал ему ключ, поставил на мак Viscosity, подключаюсь через обычный интернет - пишет, что подключение прошло и присвоен виртуальный IP из серии 10.*.* , но подсеть 192.* не пингуется, с билайновским модемом еще хуже - происходит попытка подключения и вот, что в логе
ul 24 23:50:32: Viscosity Mac 1.4.4 (1138)
Jul 24 23:50:32: Viscosity OpenVPN Engine Started
Jul 24 23:50:32: Running on Mac OS X 10.8.4
Jul 24 23:50:32: ---------
Jul 24 23:50:32: Проверка доступоности соединения...
Jul 24 23:50:32: Соединение доступно. Подключаюсь.
Jul 24 23:50:35: OpenVPN 2.3.2 i386-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Jun 7 2013
Jul 24 23:50:34: Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Jul 24 23:50:34: UDPv4 link local (bound): [undef]
Jul 24 23:50:34: UDPv4 link remote: [AF_INET] "внешний IP":1194
Jul 24 23:50:35: [server] Peer Connection Initiated with [AF_INET] "внешний IP":1194
Jul 24 23:50:37: viscosity_foreign_option_1=dhcp-option DNS 192.168.1.1
Jul 24 23:50:37: viscosity_foreign_option_2=dhcp-option DNS 192.168.1.10
Jul 24 23:50:37: viscosity_foreign_option_3=dhcp-option WINS 192.168.1.1
Jul 24 23:50:37: TUN/TAP device /dev/tun0 opened
Jul 24 23:50:37: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Jul 24 23:50:37: /sbin/ifconfig tun0 delete
Jul 24 23:50:37: NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
Jul 24 23:50:37: /sbin/ifconfig tun0 "виртуальный IP" mtu 1500 netmask 255.255.255.255 up
Jul 24 23:50:37: Initialization Sequence Completed
Jul 25 00:06:52: Viscosity Mac 1.4.4 (1138)
Jul 25 00:06:52: Viscosity OpenVPN Engine Started
Jul 25 00:06:52: Running on Mac OS X 10.8.4
Jul 25 00:06:52: ---------
Jul 25 00:06:52: Проверка доступоности соединения...
Jul 25 00:06:52: Соединение доступно. Подключаюсь.
Jul 25 00:06:54: OpenVPN 2.3.2 i386-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Jun 7 2013
Jul 25 00:06:54: Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Jul 25 00:06:54: UDPv4 link local (bound): [undef]
Jul 25 00:06:54: UDPv4 link remote: [AF_INET]"внешний IP":1194
Jul 25 00:07:54: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Jul 25 00:07:54: TLS Error: TLS handshake failed
Jul 25 00:07:54: SIGUSR1[soft,tls-error] received, process restarting
Jul 25 00:08:05: TCP/UDP: Preserving recently used remote address: [AF_INET]"внешний IP"
Jul 25 00:08:05: UDPv4 link local (bound): [undef]
Jul 25 00:08:05: UDPv4 link remote: [AF_INET]"внешний IP"
заранее спасибо