Me and my brother both have a Synology NAS, since a recent move.
Now we want to establish a VPN connection so we can access both NAS as if they are both in our own LAN. We both have an Asus RT-AC66U router with firmware version 3.0.0.4.354.28 Beta1 (Merlin build). We also both have a stable glass fiber internet connection.
These are our current settings:
At home(openvpn server)
Router: 192.168.1.1
IP's: 192.168.1.1 - 192.168.1.149
At my brothers(openvpn client)
Router: 192.168.1.150
IP's: 192.168.1.150 - 192.168.1.254
OpenVPN server and client settings are in the attachments. Chosen for TAP interface because we want to see all clients in both LANs.
I created keys using this manual: http://openvpn.net/index.php/open-source/documentation/howto.html#pki
The problem is that the OpenVPN Client keeps turning off after some time and wont turn on again automatically. Before it turns off everything works fine. It turns off after some minutes or some hours. It can be seen in the VPN Status but also the ON/OFF switch is at OFF. Also I have to click twice to get it back ON again(so I guess it thinks its still ON the first click). There is no clear error message, but some things I got in the system log:
(server side)
openvpn[721]: event_wait : Interrupted system call (code=4)
openvpn[721]: TITLE,OpenVPN 2.3.0 mipsel-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Apr 19 2013
openvpn[721]: TIME,Fri May 3 10:34:37 2013,1367570077
openvpn[721]: HEADER,CLIENT_LIST,Common Name,Real Address,Virtual Address,Bytes Received,Bytes Sent,Connected Since,Connected Since (time_t),Username
openvpn[721]: HEADER,ROUTING_TABLE,Virtual Address,Common Name,Real Address,Last Ref,Last Ref (time_t)
openvpn[721]: GLOBAL_STATS,Max bcast/mcast queue length,0
openvpn[721]: END
and
nmbd[533]: [2013/05/03 10:28:07, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(392)
nmbd[533]: Samba name server RT-AC66U-V is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.1
and client side
(right before it turns off)
openvpn[807]: Extracted DHCP router address: 192.168.1.1
and also
nmbd[537]: [2013/05/02 20:48:45, 0] nmbd/nmbd_incomingdgrams.c
rocess_local_master_announce(309)
nmbd[537]: process_local_master_announce: Server RT-AC66U-V at IP 192.168.1.1 is announcing itself as a local master browser for workgroup WORKGROUP and we think we are master. Forcing election.
nmbd[537]: [2013/05/02 20:48:45, 0] nmbd/nmbd_become_lmb.c:unbecome_local_master_success(149)
nmbd[537]: Samba name server RT-AC66U has stopped being a local master browser for workgroup WORKGROUP on subnet 192.168.1.150
What I have tried so far:
- Switch server-client side(ofcourse also switched the keys...).
- Switch from UDP to TCP.
- I found the keepalive option on a forum and it looked like it worked longer but after half a day the client is turned off again.
- I have port 1194 forwarded to the routers IP but I'm not sure if this is necassary?
- Also I'm not sure if our IP's are correct this way? We thought this was the best option because we want to see all clients in "one" LAN.
Right now I'm pretty much clueless on what to do so I hope someone here can help.
Thanks in advance!
Now we want to establish a VPN connection so we can access both NAS as if they are both in our own LAN. We both have an Asus RT-AC66U router with firmware version 3.0.0.4.354.28 Beta1 (Merlin build). We also both have a stable glass fiber internet connection.
These are our current settings:
At home(openvpn server)
Router: 192.168.1.1
IP's: 192.168.1.1 - 192.168.1.149
At my brothers(openvpn client)
Router: 192.168.1.150
IP's: 192.168.1.150 - 192.168.1.254
OpenVPN server and client settings are in the attachments. Chosen for TAP interface because we want to see all clients in both LANs.
I created keys using this manual: http://openvpn.net/index.php/open-source/documentation/howto.html#pki
The problem is that the OpenVPN Client keeps turning off after some time and wont turn on again automatically. Before it turns off everything works fine. It turns off after some minutes or some hours. It can be seen in the VPN Status but also the ON/OFF switch is at OFF. Also I have to click twice to get it back ON again(so I guess it thinks its still ON the first click). There is no clear error message, but some things I got in the system log:
(server side)
openvpn[721]: event_wait : Interrupted system call (code=4)
openvpn[721]: TITLE,OpenVPN 2.3.0 mipsel-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Apr 19 2013
openvpn[721]: TIME,Fri May 3 10:34:37 2013,1367570077
openvpn[721]: HEADER,CLIENT_LIST,Common Name,Real Address,Virtual Address,Bytes Received,Bytes Sent,Connected Since,Connected Since (time_t),Username
openvpn[721]: HEADER,ROUTING_TABLE,Virtual Address,Common Name,Real Address,Last Ref,Last Ref (time_t)
openvpn[721]: GLOBAL_STATS,Max bcast/mcast queue length,0
openvpn[721]: END
and
nmbd[533]: [2013/05/03 10:28:07, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(392)
nmbd[533]: Samba name server RT-AC66U-V is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.1
and client side
(right before it turns off)
openvpn[807]: Extracted DHCP router address: 192.168.1.1
and also
nmbd[537]: [2013/05/02 20:48:45, 0] nmbd/nmbd_incomingdgrams.c

nmbd[537]: process_local_master_announce: Server RT-AC66U-V at IP 192.168.1.1 is announcing itself as a local master browser for workgroup WORKGROUP and we think we are master. Forcing election.
nmbd[537]: [2013/05/02 20:48:45, 0] nmbd/nmbd_become_lmb.c:unbecome_local_master_success(149)
nmbd[537]: Samba name server RT-AC66U has stopped being a local master browser for workgroup WORKGROUP on subnet 192.168.1.150
What I have tried so far:
- Switch server-client side(ofcourse also switched the keys...).
- Switch from UDP to TCP.
- I found the keepalive option on a forum and it looked like it worked longer but after half a day the client is turned off again.
- I have port 1194 forwarded to the routers IP but I'm not sure if this is necassary?
- Also I'm not sure if our IP's are correct this way? We thought this was the best option because we want to see all clients in "one" LAN.
Right now I'm pretty much clueless on what to do so I hope someone here can help.
Thanks in advance!