Community discussions

MikroTik App
 
cyb3erg
just joined
Topic Author
Posts: 1
Joined: Thu May 04, 2023 12:02 am

Routing devices/sources through wireguard vpn V7.8

Thu May 04, 2023 12:22 am

Hello, maybe there is someone who can help.. :)

In the past I have used a L2TP client to establish a vpn connection to the L2TP server and routed all traffic through that vpn. Now I want to use wireguard and route specific devices/sources through the vpn. Since (I think) RouterOS v7.x there are routing tables so my old setup does not work anymore and I can't figure it out with routing tables.

Setup:
- I have the default clean mikrotik setup with DHCP on 192.168.88.10-192.168.88.254 etc..
- I have successfully setup the wireguard peer to connect to the wireguard server.. it's called "vpn-wg" in the interfaces

Goal:
- route all wireless devices through the "vpn-wg" (called "wifi1" and "wifi2" in interfaces)
- route "ether2" through the "vpn-wg"
- the devices should also use DNS through the vpn-wg.. it should "completely" look like that the devices are at the location of the wireguard server
- when the "vpn-wg" is not available/connected.. the devices shall not have internet through ether1/wan at client-side
- using as less config as possible =)

Thanks in advance.

Who is online

Users browsing this forum: Ahrefs [Bot], CodeAlpha, Energizer and 88 guests