Code:Select all
Clients --> Mikrotik (NAT) --> ADSL provider --> VPN connection (external)
Code:Select all
/ip firewall nat add action=masquerade chain=srcnat disabled=no out-interface=my_vpn_interface src-address=my_lan_range
But i also need to use ADSL route (pppoe) for accessing some ip ranges with it. For example:
0.0.0.0/0 - VPN interface
but
192.168.24.0/24 and 10.10.10.0/24 - ADSL interface.
Setting routes in ip - routes does not work, of course.
And also i need packets that hit ADSL interface directly works. In my case, as i can understand, if i ping my ADSL ip reply packets goes thru VPN interface.
The main problem that i can't use mangle here and i does not see any other way how to do that.
Thanks!
UPD: now i can use static routes for ADSL - i just added second masquerade rule. But i still have problem with incoming traffic.