Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 21367

General • Re: Wireguard and mark routing

$
0
0
I think I figured it out. I modified the rules:
Code:
add action=mark-routing chain=prerouting dst-address-type=!local \    new-routing-mark=to_ISP1 passthrough=yes src-address-list=WAN_1_local_ipsadd action=mark-routing chain=prerouting dst-address-type=!local \    new-routing-mark=to_ISP2 passthrough=yes src-address-list=WAN_2_local_ipsadd action=mark-routing chain=prerouting dst-address-type=!local \    new-routing-mark=to_ISP3 passthrough=yes src-address-list=WAN_3_local_ipsadd action=mark-routing chain=prerouting dst-address-type=!local \    new-routing-mark=to_ISP4 passthrough=yes src-address-list=WAN_4_local_ipsadd action=mark-routing chain=prerouting dst-address-type=!local \    new-routing-mark=to_STARLINK passthrough=yes src-address-list=\    WAN_5_local_ips
to
Code:
add action=mark-routing chain=prerouting dst-address-list=!LAN \    dst-address-type=!local new-routing-mark=to_ISP1 passthrough=yes \    src-address-list=WAN_1_local_ipsadd action=mark-routing chain=prerouting dst-address-list=!LAN \    dst-address-type=!local new-routing-mark=to_ISP2 passthrough=yes \    src-address-list=WAN_2_local_ipsadd action=mark-routing chain=prerouting dst-address-list=!LAN \    dst-address-type=!local new-routing-mark=to_ISP3 passthrough=yes \    src-address-list=WAN_3_local_ipsadd action=mark-routing chain=prerouting dst-address-list=!LAN \    dst-address-type=!local new-routing-mark=to_ISP4 passthrough=yes \    src-address-list=WAN_4_local_ipsadd action=mark-routing chain=prerouting dst-address-type=!local \    new-routing-mark=to_STARLINK passthrough=yes src-address-list=\    WAN_5_local_ips
LAN address list contains the wireguard subnet and now I can access devices in the 192.168.0.0/24.
Do you see a problem with this implementation?

Statistics: Posted by damdim — Wed Dec 20, 2023 1:00 pm



Viewing all articles
Browse latest Browse all 21367

Trending Articles