Hello Community, I hope you are doing great.
On my RB I have an up and running WG connection. I did follow this guide and it works perfectlyhttps://protonvpn.com/support/wireguard-mikrotik-routers/
But I do not want to route ALL the traffic through the VPN.
I want to route certain traffic based on URLs to the VPN. For example, if I want to visit youtube.com I want it to use the VPN
I have tried using with address list or layer 7 filter but probably I did something wrong so I started over, here is my conf
/interface ethernet
set [ find default-name=ether2 ] disabled=yes
/interface wireguard
add listen-port=13231 mtu=1420 name=wireguard1
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=default-dhcp interface=bridge lease-time=10m name=defconf
/ip smb users
set [ find default=yes ] disabled=yes
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
add interface=ether2 list=WAN
add interface=wireguard1 list=WAN
/interface wireguard peers
add allowed-address=0.0.0.0/0 endpoint-address=37.19.221.198 endpoint-port=\
51820 interface=wireguard1 name=wireguardpeer persistent-keepalive=25s \
public-key="xxxx"
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=\
192.168.88.0
add address=10.2.0.2/30 interface=wireguard1 network=10.2.0.0
/ip dhcp-client
add add-default-route=no comment=defconf interface=ether1 use-peer-dns=no
/ip dhcp-server lease
add address=192.168.88.2 client-id=1:d8:32:14:e4:1c:88 mac-address=\
D8:32:14:E4:1C:88 server=defconf
add address=192.168.88.10 client-id=1:0:1d:92:ee:6d:38 mac-address=\
00:1D:92:EE:6D:38 server=defconf
add address=192.168.88.254 client-id=1:5e:b:17:99:8b:55 mac-address=\
5E:0B:17:99:8B:55 server=defconf
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf dns-server=192.168.88.1 gateway=\
192.168.88.1
/ip dns
set allow-remote-requests=yes cache-size=32768KiB servers=\
208.67.222.222,10.2.0.1
/ip dns adlist
add file=sblack-adlist ssl-verify=no
add file=wblock ssl-verify=no
/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=accept chain=input comment=\
"defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
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,related disabled=yes hw-offload=yes
add action=accept chain=forward comment=\
"defconf: accept established,related, untracked" connection-state=\
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=!dstnat \
connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface-list=WAN
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 \
pref-src="" routing-table=main suppress-hw-offload=no
add disabled=yes distance=1 dst-address=0.0.0.0/1 gateway=10.2.0.1 pref-src=\
"" routing-table=main scope=30 suppress-hw-offload=no target-scope=10
add disabled=yes distance=1 dst-address=128.0.0.0/1 gateway=10.2.0.1 \
pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
target-scope=10
add disabled=yes distance=1 dst-address=37.19.221.198/32 gateway=192.168.1.1 \
routing-table=main scope=30 suppress-hw-offload=no target-scope=10