Milí majitelé routerů Turris,
toto fórum bylo 9. 12. 2016 zmrazeno a nahrazeno naším novým Turris fórem. Ještě chvíli bude dostupné k prohlížení, ale již zde není možné přispívat. Více informací naleznete v oznámení o uzavření fóra.
Dear Turris routers users,
this forum has been frozen on Dec 9th, 2016 and replaced by our new Turris forum. It will be read-only accessible for some time after. For more information, read the announcement about closing the forum.
Wed Apr 23 20:10:53 2014 Initialization Sequence Completed With Errors ( see http://openvpn.net/faq.html#dhcpclientserv )
Wed Apr 23 20:10:53 2014 MANAGEMENT: >STATE:1398276653,CONNECTED,ERROR,10.8.0.6,moje přidělená IP
Wed Apr 23 19:40:23 2014 OpenVPN 2.3.2 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Aug 22 2013
Enter Management Password:
Wed Apr 23 19:40:23 2014 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Wed Apr 23 19:40:23 2014 Need hold release from management interface, waiting...
Wed Apr 23 19:40:23 2014 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Wed Apr 23 19:40:23 2014 MANAGEMENT: CMD 'state on'
Wed Apr 23 19:40:23 2014 MANAGEMENT: CMD 'log all on'
Wed Apr 23 19:40:23 2014 MANAGEMENT: CMD 'hold off'
Wed Apr 23 19:40:23 2014 MANAGEMENT: CMD 'hold release'
Wed Apr 23 19:40:23 2014 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Wed Apr 23 19:40:23 2014 Socket Buffers: R=[65536->65536] S=[65536->65536]
Wed Apr 23 19:40:23 2014 MANAGEMENT: >STATE:1398274823,RESOLVE,,,
Wed Apr 23 19:40:24 2014 UDPv4 link local: [undef]
Wed Apr 23 19:40:24 2014 UDPv4 link remote: [AF_INET]moje statická ip:1194
Wed Apr 23 19:40:24 2014 MANAGEMENT: >STATE:1398274824,WAIT,,,
Wed Apr 23 19:41:24 2014 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Wed Apr 23 19:41:24 2014 TLS Error: TLS handshake failed
Wed Apr 23 19:41:24 2014 SIGUSR1[soft,tls-error] received, process restarting
Wed Apr 23 19:41:24 2014 MANAGEMENT: >STATE:1398274884,RECONNECTING,tls-error,,
Wed Apr 23 19:41:24 2014 Restart pause, 2 second(s)
Wed Apr 23 19:41:26 2014 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Wed Apr 23 19:41:26 2014 Socket Buffers: R=[65536->65536] S=[65536->65536]
Wed Apr 23 19:41:26 2014 MANAGEMENT: >STATE:1398274886,RESOLVE,,,
Wed Apr 23 19:41:26 2014 UDPv4 link local: [undef]
Wed Apr 23 19:41:26 2014 UDPv4 link remote: [AF_INET]moje staticka ip:1194
Wed Apr 23 19:41:26 2014 MANAGEMENT: >STATE:1398274886,WAIT,,,
Wed Apr 23 19:42:01 2014 SIGTERM[hard,] received, process exiting
Wed Apr 23 19:42:01 2014 MANAGEMENT: >STATE:1398274921,EXITING,SIGTERM,,
config openvpn custom_config
option enabled 1
option config /etc/openvpn/vpn.conf
option port 1194
option proto udp
option dev tun
option ca /etc/openvpn/ca.crt
option cert /etc/openvpn/server.crt
option key /etc/openvpn/server.key
option dh /etc/openvpn/dh1024.pem
option server "10.8.0.0 255.255.255.0"
option keepalive "10 1200"
option comp_lzo yes
option verb 3
dev tun
proto udp
remote moje.doména 1194
keepalive 10 1200
nobind
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key
ns-cert-type server
comp-lzo yes
verb 3
config interface 'vpn'
option proto none
option ifname 'tun0'
option auto 1
config zone
option name lan
list network 'lan'
list network 'vpn'
option input ACCEPT
option output ACCEPT
option forward ACCEPT
/etc/config/openvpn
config openvpn custom_config
option enabled 1
option config /etc/openvpn/vpn.conf
option port 1194
option proto udp
option dev tun
option ca /etc/openvpn/ca.crt
option cert /etc/openvpn/server.crt
option key /etc/openvpn/server.key
option dh /etc/openvpn/dh1024.pem
option server "10.8.0.0 255.255.255.0"
option keepalive "10 1200"
option comp_lzo yes
option verb 3
/etc/openvpn/vpn.conf
dev tun
proto udp
remote moje.doména 1194
keepalive 10 1200
nobind
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key
ns-cert-type server
comp-lzo yes
verb 3
/etc/config/network
config interface 'vpn'
option proto none
option ifname 'tun0'
option auto 1
/etc/config/firewall
config zone
option name lan
list network 'lan'
list network 'vpn'
option input ACCEPT
option output ACCEPT
option forward ACCEPT
client
dev tun
proto udp
remote moje.domena 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
comp-lzo
verb 3
config redirect
option target 'DNAT'
option src 'wan'
option dest 'lan'
option proto 'tcp udp'
option src_dport '1194'
option dest_ip '192.168.1.1'
option dest_port '1194'
option name 'OpenVPN'
config rule
option src 'wan'
option dest_port '1194'
option target 'ACCEPT'
option proto 'tcp udp'
One of the most common problems in setting up OpenVPN is that the two OpenVPN daemons on either side of the connection are unable to establish a TCP or UDP connection with each other.
This is almost a result of:
A perimeter firewall on the server's network is filtering out incoming OpenVPN packets (by default OpenVPN uses UDP or TCP port number 1194).
A software firewall running on the OpenVPN server machine itself is filtering incoming connections on port 1194. Be aware that many OSes will block incoming connections by default, unless configured otherwise.
A NAT gateway on the server's network does not have a port forward rule for TCP/UDP 1194 to the internal address of the OpenVPN server machine.
The OpenVPN client config does not have the correct server address in its config file. The remote directive in the client config file must point to either the server itself or the public IP address of the server network's gateway.
Another possible cause is that the windows firewall is blocking access for the openvpn.exe binary. You may need to whitelist (add it to the "Exceptions" list) it for OpenVPN to work.
config rule
option target 'ACCEPT'
option src 'wan'
option proto 'udp'
option name 'OpenVPN'
option family 'ipv4'
option dest_port '1194'
config zone
option name lan
list network 'lan'
list network 'vpn'
option input ACCEPT
option output ACCEPT
option forward ACCEPT
config interface 'vpn'
option proto none
option ifname 'tun0'
option auto 1
config zone
option name lan
list network 'lan'
list network 'vpn'
option input ACCEPT
option output ACCEPT
option forward ACCEPT
/etc/config/network
. Jinak to je věštění z křišťálové koule.
server
zvolíte nekonfliktní IP rozsah a v souboru /etc/config/network
zavedete další sekci, např. takto:
config interface 'vpn'
option ifname 'tun0'
option proto 'static'
option ipaddr '192.168.179.1'
option netmask '255.255.255.0'
option ip6assign '64'
option network 'lan vpn'
Powered by mwForum 2.29.3 © 1999-2013 Markus Wichitill