Hi, this is me again, I read that I must give log's too.
I changed server's config file. and it looks similar like in dd-wrt topic here
http://www.dd-wrt.com/wiki/index.php/VPN_(the_easy_way)_v24%2B
Config file of server:
mode server
dev tap0
daemon
port 1194
proto tcp-server
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
server-bridge 192.168.3.1 255.255.255.0 192.168.3.180 192.168.3.220
verb 6
mute 5
persist-key
persist-tun
keepalive 10 60
inactive 3600
comp-lzo[/code]
The server log file:
192.168.3.82:50978 TCPv4_SERVER READ [114] from 192.168.3.82:50978: P_CONTROL_V1 kid=0 [ ] pid=2 DATA len=100
192.168.3.82:50978 NOTE: --mute triggered...
192.168.3.82:50978 131 variation(s) on previous 5 message(s) suppressed by --mute
192.168.3.82:50978 VERIFY ERROR: depth=1, error=certificate is not yet valid: /C=PL/ST=Lubelskie/L=Swidnik/O=smf_germany/OU=smf_germany/CN=server/name=server_smf_germany/emailAddress=b.banczerowski@smfgmh.com
192.168.3.82:50978 TLS_ERROR: BIO read tls_read_plaintext error: error:140890B2:lib(20):func(137):reason(178)
192.168.3.82:50978 TLS Error: TLS object -> incoming plaintext read error
192.168.3.82:50978 TLS Error: TLS handshake failed
192.168.3.82:50978 Fatal TLS error (check_tls_errors_co), restarting
192.168.3.82:50978 SIGUSR1[soft,tls-error] received, client-instance restarting
TCP/UDP: Closing socket
MULTI: multi_create_instance called
Re-using SSL/TLS context
LZO compression initialized
Control Channel MTU parms [ L:1576 D:140 EF:40 EB:0 ET:0 EL:0 ]
Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:135 ET:32 EL:0 AF:3/1 ]
Local Options String: 'V4,dev-type tap,link-mtu 1576,tun-mtu 1532,proto TCPv4_SERVER,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Expected Remote Options String: 'V4,dev-type tap,link-mtu 1576,tun-mtu 1532,proto TCPv4_CLIENT,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Local Options hash (VER=V4): '3e6d1056'
Expected Remote Options hash (VER=V4): '31fdf004'
TCP connection established with 192.168.3.82:50999
TCPv4_SERVER link local: [undef]
192.168.3.82:50999 TCPv4_SERVER READ [22] from 192.168.3.82:50999: P_ACK_V1 kid=0 [ 0 ]
192.168.3.82:50999 TCPv4_SERVER READ [114] from 192.168.3.82:50999: P_CONTROL_V1 kid=0 [ ] pid=1 DATA len=100
192.168.3.82:50999 TCPv4_SERVER WRITE [22] to 192.168.3.82:50999: P_ACK_V1 kid=0 [ 1 ]
192.168.3.82:50999 TCPv4_SERVER READ [114] from 192.168.3.82:50999: P_CONTROL_V1 kid=0 [ ] pid=2 DATA len=100
192.168.3.82:50999 NOTE: --mute triggered...
192.168.3.82:50999 131 variation(s) on previous 5 message(s) suppressed by --mute
192.168.3.82:50999 VERIFY ERROR: depth=1, error=certificate is not yet valid: /C=PL/ST=Lubelskie/L=Swidnik/O=smf_germany/OU=smf_germany/CN=server/name=server_smf_germany/emailAddress=b.banczerowski@smfgmh.com
192.168.3.82:50999 TLS_ERROR: BIO read tls_read_plaintext error: error:140890B2:lib(20):func(137):reason(178)
192.168.3.82:50999 TLS Error: TLS object -> incoming plaintext read error
192.168.3.82:50999 TLS Error: TLS handshake failed
192.168.3.82:50999 Fatal TLS error (check_tls_errors_co), restarting
192.168.3.82:50999 SIGUSR1[soft,tls-error] received, client-instance restarting
TCP/UDP: Closing socket
MULTI: multi_create_instance called
Re-using SSL/TLS context
LZO compression initialized
Control Channel MTU parms [ L:1576 D:140 EF:40 EB:0 ET:0 EL:0 ]
Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:135 ET:32 EL:0 AF:3/1 ]
Local Options String: 'V4,dev-type tap,link-mtu 1576,tun-mtu 1532,proto TCPv4_SERVER,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Expected Remote Options String: 'V4,dev-type tap,link-mtu 1576,tun-mtu 1532,proto TCPv4_CLIENT,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Local Options hash (VER=V4): '3e6d1056'
Expected Remote Options hash (VER=V4): '31fdf004'
TCP connection established with 192.168.3.82:51002
TCPv4_SERVER link local: [undef]
192.168.3.82:51002 TCPv4_SERVER READ [14] from 192.168.3.82:51002: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
192.168.3.82:51002 TLS: Initial packet from 192.168.3.82:51002, sid=ac8a9558 6735f294
192.168.3.82:51002 TCPv4_SERVER WRITE [26] to 192.168.3.82:51002: P_CONTROL_HARD_RESET_SERVER_V2 kid=0 [ 0 ] pid=0 DATA len=0
192.168.3.82:51002 TCPv4_SERVER READ [22] from 192.168.3.82:51002: P_ACK_V1 kid=0 [ 0 ]
192.168.3.82:51002 TCPv4_SERVER READ [114] from 192.168.3.82:51002: P_CONTROL_V1 kid=0 [ ] pid=1 DATA len=100
192.168.3.82:51002 TCPv4_SERVER WRITE [22] to 192.168.3.82:51002: P_ACK_V1 kid=0 [ 1 ]
192.168.3.82:51002 TCPv4_SERVER READ [114] from 192.168.3.82:51002: P_CONTROL_V1 kid=0 [ ] pid=2 DATA len=100
192.168.3.82:51002 NOTE: --mute triggered...
192.168.3.82:51002 131 variation(s) on previous 5 message(s) suppressed by --mute
192.168.3.82:51002 VERIFY ERROR: depth=1, error=certificate is not yet valid: /C=PL/ST=Lubelskie/L=Swidnik/O=smf_germany/OU=smf_germany/CN=server/name=server_smf_germany/emailAddress=b.banczerowski@smfgm
h.com
192.168.3.82:51002 TLS_ERROR: BIO read tls_read_plaintext error: error:140890B2:lib(20):func(137):reason(178)
192.168.3.82:51002 TLS Error: TLS object -> incoming plaintext read error
192.168.3.82:51002 TLS Error: TLS handshake failed
192.168.3.82:51002 Fatal TLS error (check_tls_errors_co), restarting
192.168.3.82:51002 SIGUSR1[soft,tls-error] received, client-instance restarting
TCP/UDP: Closing socket
The Client config file on Windows 7:
client
dev tap
dev-node server
proto tcp-client
port 1194
remote 192.168.3.1
resolv-retry infinite
ip-win32 dynamic
ca ca.crt
cert klient_001.crt
key klient_001.key
ping 10
ping-restart 60
verb 5
mute 3
comp-lzo
The client log look like this:
Current Parameter Settings:
= 'klient_001.ovpn'
mode = 0
NOTE: --mute triggered...
282 variation(s) on previous 3 message(s) suppressed by --mute
OpenVPN 2.3.2 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Aug 22 2013
Enter Management Password:
MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Need hold release from management interface, waiting...
MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
MANAGEMENT: CMD 'state on'
MANAGEMENT: CMD 'log all on'
MANAGEMENT: CMD 'hold off'
NOTE: --mute triggered...
1 variation(s) on previous 3 message(s) suppressed by --mute
WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
LZO compression initialized
Control Channel MTU parms [ L:1576 D:140 EF:40 EB:0 ET:0 EL:0 ]
Socket Buffers: R=[8192->8192] S=[8192->8192]
Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:135 ET:32 EL:0 AF:3/1 ]
Local Options String: 'V4,dev-type tap,link-mtu 1576,tun-mtu 1532,proto TCPv4_CLIENT,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Expected Remote Options String: 'V4,dev-type tap,link-mtu 1576,tun-mtu 1532,proto TCPv4_SERVER,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Local Options hash (VER=V4): '31fdf004'
Expected Remote Options hash (VER=V4): '3e6d1056'
Attempting to establish TCP connection with [AF_INET]192.168.3.1:1194
MANAGEMENT: >STATE:1381225582,TCP_CONNECT,,,
TCP connection established with [AF_INET]192.168.3.1:1194
TCPv4_CLIENT link local: [undef]
TCPv4_CLIENT link remote: [AF_INET]192.168.3.1:1194
MANAGEMENT: >STATE:1381225585,WAIT,,,
MANAGEMENT: >STATE:1381225585,AUTH,,,
TLS: Initial packet from [AF_INET]192.168.3.1:1194, sid=52b6e4de 210b1f65
VERIFY OK: depth=1, C=PL, ST=Lubelskie, L=Swidnik, O=smf_germany, OU=smf_germany, CN=server, name=server_smf_germany, emailAddress=b.banczerowski@smfgmbh.com
VERIFY OK: depth=0, C=PL, ST=Lubelskie, L=Swidnik, O=smf_germany, OU=smf_germany, CN=server, name=server_smf_germany, emailAddress=b.banczerowski@smfgmbh.com
Connection reset, restarting [-1]
TCP/UDP: Closing socket
SIGUSR1[soft,connection-reset] received, process restarting
MANAGEMENT: >STATE:1381225585,RECONNECTING,connection-reset,,
Restart pause, 5 second(s)
WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
LZO compression initialized
Control Channel MTU parms [ L:1576 D:140 EF:40 EB:0 ET:0 EL:0 ]
Socket Buffers: R=[8192->8192] S=[8192->8192]
Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:135 ET:32 EL:0 AF:3/1 ]
Local Options String: 'V4,dev-type tap,link-mtu 1576,tun-mtu 1532,proto TCPv4_CLIENT,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Expected Remote Options String: 'V4,dev-type tap,link-mtu 1576,tun-mtu 1532,proto TCPv4_SERVER,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Local Options hash (VER=V4): '31fdf004'
Expected Remote Options hash (VER=V4): '3e6d1056'
Attempting to establish TCP connection with [AF_INET]192.168.3.1:1194
MANAGEMENT: >STATE:1381225590,TCP_CONNECT,,,
TCP connection established with [AF_INET]192.168.3.1:1194
TCPv4_CLIENT link local: [undef]
TCPv4_CLIENT link remote: [AF_INET]192.168.3.1:1194
MANAGEMENT: >STATE:1381225590,WAIT,,,
MANAGEMENT: >STATE:1381225590,AUTH,,,
TLS: Initial packet from [AF_INET]192.168.3.1:1194, sid=9ef2f43e eea43586
VERIFY OK: depth=1, C=PL, ST=Lubelskie, L=Swidnik, O=smf_germany, OU=smf_germany, CN=server, name=server_smf_germany, emailAddress=b.banczerowski@smfgmbh.com
Connection reset, restarting [-1]
TCP/UDP: Closing socket
Like I said in first post of this topic, I want to make remote connection to my PLC and I think that I need bridging.
The Buffalo router has DD-WRT with OpenVPN, I can give some pictures if it will help.