Hi, I want to activate a VPN on another route table, and mangle some IPs to that table, but if I add automatically the new VPN connection as default fateway it will go to main. How can I specify another table?
Actually to solve that I don’t add to default route and I create a statc one, using the temporary IP assigned. Next time will be another IP..
Another approach is to give the SSTP server a static destination and not get it from pool, but doing that I can’t make a second connection to SSTP server, and on pool I can’t create assing a particula IP to one particular connection.
Actaully I can’t also create a second SSTP server wit a static destination only, specified on another profile. How can I run SSTP server with different profiles?
Thank you
Any route in a routing table has to exist ALSO in main. That is just the rules.
You can however always the distance= on static routers or some “default-route-distance=” option on tunnels/DHCP-client/LTE/etc to control which is used. Using higher “distance=” means even if a default route is main is will not be used if it’s distance= is higher than other default gateways.
If you want more separation, you need to use a VRF but that’s another can of worms.
Thank you for clearing me that!
It’s a pity Mikrotik doesn’t let us specify on which routing table add the gateway.. I hope they will implement this function in the future.
Yes I’ve tested the chance to add a specific IP on specific host using a new profile (another user/password), I was thinking that wasn’t possible because on server we specify which profile to use, but really it doesn’t matter much what we select there, other profiles will work too (if secret is associaded).
So to solve my problem I’ve created another profile/password with a static IP for host, on host I don’t select “add to default route” but I specify the server SSTP IP, and on server SSTP I can destnat to that specific host static IP (if I need), while the server SSTP provide other devices a random IP from pool