Answer the question
In order to leave comments, you need to log in
How to set up a VPN client on Mikrotik, for only one port and at the same time have a VPN server on Mikrotik itself?
Hello. There is a mikrotik rb-951 There is a task to configure the OS Routerboard in such a way that when inserting a cable into the laptop, the traffic going via ether3 goes through the VPN and at the same time is isolated from the local network from which the connection is made.
Those. there is a corporate network, which sometimes you have to connect to from home (from different devices via cable or Wi-Fi, but you only need to do it via cable and through one port). Now openvpn is launched on the target machine for this. In ovpn file settings:
auth-user-pass
dev tun
remote ovpn.xxx.ru 1195 udp
remote ovpn.xxx.ru 443 tcp
client
resolv-retry infinite
comp-lzo no
persist-key
persist-tun
verb 3
setenv CLIENT_CERT 0
-----BEGIN CERTIFICATE -----
certificate data here
-----END CERTIFICATE-----
Answer the question
In order to leave comments, you need to log in
1. First, raise the VPN from Mikrotik to the corp network.
2. Then separate eth3 from your local mesh (most likely by correcting the master port property in the port settings).
3. Then, through routing and NAT, wrap the necessary traffic into the tunnel from step 1.
These settings do not conflict with the raised l2tp server covered with IPSec encryption at all. Set it up according to this detailed documentation: blog.f1mikrotik.com/2014/08/18/l2tp-ipsec-vpn
I would like to add that on junior Mikrotiks, the processor is not very powerful and there is no support for hardware encryption, as a result, the vpn speed will be 2-5 Mbps, depending on the encryption and model.
Maybe it will help someone:
Connect two Mikrotiks using the EoIP Tunnel protocol, create a separate bridge on the client Mikrotik for the tunnel and port that you need. Checked personally, the computer is completely located in the office LAN and receives IP from the office. If you wish, you can add encryption.
But this option is only if there are white IPs on both sides.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question