I'm trying to route some traffic via L2TP tonnel.
Code: Select all
/ip firewall address-list
add address=ifconfig.me list=list_for_vpn
/ip firewall mangle
add action=mark-routing chain=prerouting dst-address-list=list_for_vpn new-routing-mark=mark_vpn passthrough=yes
/ip firewall nat
add action=masquerade chain=srcnat out-interface=l2tp-out
add action=masquerade chain=srcnat out-interface=ether1
/ip route
add distance=1 gateway=l2tp-out routing-mark=mark_vpn
It seems to work ok, but when I curl the host
Code: Select all
curl https://ifconfig.me
Something unexpected happens with counters. Mangle rule increments by 10, and that is expected, Wireshark shows exactly 10 outgoing packets. But masquerade rule increments by 1 only. I expect it increments by 10. Why is that?