Route over VPN not working

Hi guys,

here’s what I want to do: I have a FritzBox for all the network tasks and added a Mikrotik Hex S to connect to an IPVanish VPN. Now I like to connect only specific devices to the VPN, in this example the device with the IP 192.168.2.114. The VPN connection to IPVanish is up and running but the external IP of the device is not changing, no matter if the VPN is toggled on or off. As a Mikrotik noob I tried everything google could help me with but still can’t get it to work. I attach my settings export, maybe some expert here is able to help? Thanx!

(FritzBox Gateway: 192.169.2.1, 255.255.255.0, DHCP 192.168.2.20 - 192.168.2.200)

/interface bridge
add admin-mac=xx:xx:xx:xx:xx:xx auto-mac=no comment=defconf name=bridge
/interface l2tp-client
add connect-to=xxx-xxx.ipvanish.com disabled=no ipsec-secret=ipvanish name=IPVanish password=xxxxx use-ipsec=yes
user=xxxxx
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=dhcp ranges=192.168.2.37-192.168.2.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge name=defconf
/ppp profile
set *FFFFFFFE dns-server=8.8.8.8,8.8.4.4
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=sfp1
add bridge=bridge interface=ether1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=ether1 list=WAN
add interface=ether2 list=LAN
add interface=ether3 list=LAN
add interface=ether4 list=LAN
add interface=ether5 list=LAN
add interface=sfp1 list=LAN
/ip address
add address=192.168.2.36/24 interface=ether1 network=192.168.2.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=bridge use-peer-dns=no
/ip dhcp-server network
add address=192.168.2.0/24 comment=defconf gateway=192.168.2.36 netmask=24
/ip dns
set servers=8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.2.36 name=router.lan
add address=8.8.8.8 name=google
add address=8.8.4.4 name=google
/ip firewall filter
add action=accept chain=input comment=“defconf: accept established,related,untracked” connection-state=
established,related,untracked
add action=drop chain=input comment=“defconf: drop invalid” connection-state=invalid
add action=accept chain=input comment=“defconf: accept ICMP” protocol=icmp
add action=drop chain=input comment=“defconf: drop all not coming from LAN” in-interface-list=!LAN
add action=accept chain=forward comment=“defconf: accept in ipsec policy” ipsec-policy=in,ipsec
add action=accept chain=forward comment=“defconf: accept out ipsec policy” ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment=“defconf: fasttrack” connection-state=established
add action=accept chain=forward comment=“defconf: accept established,related, untracked” connection-sta
established,related,untracked
add action=drop chain=forward comment=“defconf: drop invalid” connection-state=invalid
add action=drop chain=forward comment=“defconf: drop all from WAN not DSTNATed” connection-nat-state=!
connection-state=new in-interface-list=WAN
/ip firewall mangle
add action=mark-routing chain=prerouting new-routing-mark=IPVanish passthrough=yes src-address=192.168.
/ip firewall nat
add action=masquerade chain=srcnat comment=“defconf: masquerade” ipsec-policy=out,none out-interface-li
add action=masquerade chain=srcnat out-interface=bridge
add action=masquerade chain=srcnat out-interface=IPVanish
/ip route
add distance=1 gateway=IPVanish routing-mark=IPVanish
add disabled=yes distance=1 gateway=192.168.2.1
/system clock
set time-zone-autodetect=no time-zone-name=Europe/Berlin
/system routerboard settings
set silent-boot=no
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN

some thoughts:

  • You use the Mikrotik as router or switch?
  • I can’t see which Interface is actually WAN? There is no mentioning, all ETH ports incl SFP are part of bridge and LAN?
  • In NAT: SourceNat on out interface “bridge” ? I would think you put something else there like ETH1 or so?