route issue problem

Hi all,

I have 4 pptp vpn running on my and one pppoe.
vpn 1: 192.168.89.x
vpn 2: 192.168.90.x
vpn 3: 192.168.91.x
vpn 4: 192.168.92.x

And my pppoe session is for my internet connection.

Now i want to route everything from my internal lan witch begins with the 192.168.xx to the specific vpn.
My own internal lan is a 192.168.88.x

I have try it with nat and with rules but nothing works.
can someone help me with this setup?

Kind regards,

Michaël

It depends on you whole config, it looks like you have quite a lot there, anything is possible. But you should need something like this:

/ip route
add dst-address=0.0.0.0/0 gateway=192.168.89.1 routing-mark=to-vpn-1
/ip firewall mangle
add action=mark-routing chain=prerouting new-routing-mark=to-vpn-1 src-address=192.168.88.0/24

Maybe some additional NAT might be required too, but it’s hard to tell with just this info.

Hello,

I have al ready that and that doenst fix the issue.
What for more information do you need?

Kind regards.

Michaël

As usual, as much information as possible. Full config export can’t hurt, although if it’s too long, it’s easy to miss something. And to be honest, it’s no fun going through hundereds of lines of text. It’s different when it’s on router, because there are live counters and such. The fact is, you’re in much better position to find anything than anyone here on forum.

Try to find out what’s going on. Does the marking rule get any hits? Do you see packets going the right way? It’s very easy to test it on live system. Try to connect to some unique address or port (it can be made up, it’s just for easy filtering) and use Torch to see where packets go. Or add logging rules to prerouting/postrouting/forward to see where the packet may get lost. If you see the packet going the right way, make sure that addresses are correct, e.g. you might need to use srcnat, because remote server might not have route to your LAN. Try stuff like that, it’s not too hard.