Hello!
I have two networks: 192.168.1.0/24 and 192.168.50.0/24. Both networks are behind Asus routers with the latest Merlin firmware installed. A router with 192.168.1.1 connects to the Internet via L2TP (static IP), 192.168.50.1 via USB-modem (DHCP). The task is to connect two networks 192.168.1.0/24 and 192.168.50.0/24. How to build bi-directional OpenVPN between two networks?
I've tried building like this:
Run OpenVPN server (TUN) on a router with 192.168.1.1
Run OpenVPN client (TUN) on a router with 192.168.50.1
A 10.8.0.0/24 network has formed between the client and the server
traceroute from 192.168.50.2 to 192.168.1.2 Ok
traceroute from 192.168.1.2 to 192.168.50.2 problem
It's the same from routers.
traceroute from 192.168.50.1 to 192.168.1.1 Ok
traceroute from 192.168.1.1 to 192.168.50.1 problem
Help me please.
OpenVPN Server:
OpenVPN Client:
I have two networks: 192.168.1.0/24 and 192.168.50.0/24. Both networks are behind Asus routers with the latest Merlin firmware installed. A router with 192.168.1.1 connects to the Internet via L2TP (static IP), 192.168.50.1 via USB-modem (DHCP). The task is to connect two networks 192.168.1.0/24 and 192.168.50.0/24. How to build bi-directional OpenVPN between two networks?
I've tried building like this:
Run OpenVPN server (TUN) on a router with 192.168.1.1
Run OpenVPN client (TUN) on a router with 192.168.50.1
A 10.8.0.0/24 network has formed between the client and the server
traceroute from 192.168.50.2 to 192.168.1.2 Ok
traceroute from 192.168.1.2 to 192.168.50.2 problem
It's the same from routers.
traceroute from 192.168.50.1 to 192.168.1.1 Ok
traceroute from 192.168.1.1 to 192.168.50.1 problem
Help me please.
OpenVPN Server:
server@RT-AC68U:/tmp/home/root# cat /etc/openvpn/server1/config.ovpn
daemon ovpn-server1
topology subnet
server 10.8.0.0 255.255.255.0
proto tcp-server
port 1194
dev tun21
txqueuelen 1000
data-ciphers AES-128-GCM:AES-256-GCM:AES-128-CBC:AES-256-CBC
comp-lzo adaptive
keepalive 15 60
verb 3
push "route 192.168.1.0 255.255.255.0 vpn_gateway 500"
duplicate-cn
ca ca.crt
dh dh.pem
cert server.crt
key server.key
script-security 2
up 'ovpn-up 1 server'
down 'ovpn-down 1 server'
status-version 2
status status 5
OpenVPN Client:
client@RT-AX68U:/tmp/home/root# cat /etc/openvpn/client1/config.ovpn
daemon ovpn-client1
client
dev tun11
txqueuelen 1000
proto tcp-client
remote xxx.xxx.xxx.xxx 1194
connect-retry-max 15
nobind
persist-key
persist-tun
comp-lzo adaptive
data-ciphers AES-128-GCM:AES-256-GCM:AES-128-CBC:AES-256-CBC
route-noexec
ca ca.crt
cert client.crt
key client.key
up 'ovpn-up 1 client'
down 'ovpn-down 1 client'
route-up 'ovpn-route-up'
route-pre-down 'ovpn-route-pre-down'
script-security 2
route-delay 2
verb 3
status-version 2
status status 5
# Custom Configuration
resolv-retry infinite
float
keepalive 15 60
remote-cert-tls server