Hello everybody,
We have a rb450g and we have created two ovpn client interfaces:
ovpn1
ovpn2
we have also two wan interfaces:
wan1
wan2
we need ovpn1 to connect to the ovpnserver through wan1, and ovpn2 through wan2.
Thank you.
Hello everybody,
We have a rb450g and we have created two ovpn client interfaces:
ovpn1
ovpn2
we have also two wan interfaces:
wan1
wan2
we need ovpn1 to connect to the ovpnserver through wan1, and ovpn2 through wan2.
Thank you.
You need to route OpenVPN server address over the required gateway, the easiest way to configure, add two static routes with dst-address (openVPN server address) and appropriate gateway.
Thank you for the reply,
The problem is that the ovpn Servers run on the same machine (they have the same public ip address, but listen to different ports).
The idea is that ovpn client1 in rb450g to connect to openvpn server1 through wan1 and also ovpn client2 to connect to ovpn server2 through wan2
Both of my ovpn client connect through the same wan to the ovpn server.
this is ovpn client1
add add-default-route=no auth=sha1 certificate=199client1 cipher=aes256
connect-to=10.1.1.1 disabled=no mac-address=02:D7:E3:FF:1D:43 max-mtu=1500
mode=ip name=ovpn-out-199client1 password=“” port=1198 profile=default
and ovpn client2
add add-default-route=no auth=sha1 certificate=199client2 cipher=aes256
connect-to=10.1.1.1 disabled=no mac-address=02:4F:41:01:F9:F1 max-mtu=1500
mode=ip name=ovpn-out-199client2 password=“” port=1200 profile=default
Thank you for your time sergejs.
Hello again,
to make it more understandable i need to tell my mikrotik router that if ovpn client1 tries to connect to the public ip 10.1.1.1 with port 1198 to take it through the gateway of wan1
if ovpn client2 tries to connect to the same public ip 10.1.1.1 with port 1200 to take it through the gateway of wan2
can you please help me..
thank you.