Hello everyone,
I have made a VPN tunnel between two routers with TAP interface. It worked fine, but with DNS and DHCP servers (two Synology NAS with DCHP and DNS servers on both networks), I decided to change to TUN. The reason was that the DCHP server of the server network was the one that gave the ip addresses in the client's network and redirected me to the server dns of the server's network and I did not like that.
I describe the hardware:
2 RT-AC3200 routers
Merlin Firmware: 380.68.4
The lans:
Server lan: 192.168.5.0/24 255.255.255.0
Router server lan: 192.168.5.1
DHCP & DNS server lan: 192.168.5.3
Client lan: 192.168.4.0/24 255.255.255.0
Router client lan: 192.168.4.1
DCHP & DNS client lan: 192.168.4.3
I create client file in /jffs/configs/openvpn/ccd1 with this line:
iroute 192.168.4.0 255.255.255.0
Custom configuration VPN Server:
route 192.168.4.0 255.255.255.0
push "route 192.168.5.0 255.255.255.0"
push "route 192.168.4.0 255.255.255.0"
client-to-client
Custom configuration VPN Client:
float
keepalive 15 60
remote-cert-tls server
route 192.168.5.0 255.255.255.0
push "route 192.168.5.0 255.255.255.0"
I attached jpg file of the Server config, Client config, VPN Status Server and VPN Status Client.
From client network I can access to the server network machines (nas, routers, rdp), but from the server network is not possible to access the clients networks (nas, routers, rdp)
I appreciate your help, I'm not a programmer and making this configuration has required many hours. I read many posts, I've done everything he says, but I can not get the vpn working in both directions.
Thank you very much.
I have made a VPN tunnel between two routers with TAP interface. It worked fine, but with DNS and DHCP servers (two Synology NAS with DCHP and DNS servers on both networks), I decided to change to TUN. The reason was that the DCHP server of the server network was the one that gave the ip addresses in the client's network and redirected me to the server dns of the server's network and I did not like that.
I describe the hardware:
2 RT-AC3200 routers
Merlin Firmware: 380.68.4
The lans:
Server lan: 192.168.5.0/24 255.255.255.0
Router server lan: 192.168.5.1
DHCP & DNS server lan: 192.168.5.3
Client lan: 192.168.4.0/24 255.255.255.0
Router client lan: 192.168.4.1
DCHP & DNS client lan: 192.168.4.3
I create client file in /jffs/configs/openvpn/ccd1 with this line:
iroute 192.168.4.0 255.255.255.0
Custom configuration VPN Server:
route 192.168.4.0 255.255.255.0
push "route 192.168.5.0 255.255.255.0"
push "route 192.168.4.0 255.255.255.0"
client-to-client
Custom configuration VPN Client:
float
keepalive 15 60
remote-cert-tls server
route 192.168.5.0 255.255.255.0
push "route 192.168.5.0 255.255.255.0"
I attached jpg file of the Server config, Client config, VPN Status Server and VPN Status Client.
From client network I can access to the server network machines (nas, routers, rdp), but from the server network is not possible to access the clients networks (nas, routers, rdp)
I appreciate your help, I'm not a programmer and making this configuration has required many hours. I read many posts, I've done everything he says, but I can not get the vpn working in both directions.
Thank you very much.