Wed Jun 02, 2021 8:04 am
needs:
a) Route a a PPTP Client to Central PPTP Server over specified WAN.
b) The Central PPTP Server has a public IP Address that regulary changues.
c) Divide traffic between 2 wan. (I'd like to discuss this one later if you want cause its more advanced)
b) You need a way to constantly feetch your public IP from your pptp server, Thats easy, all you have to do is get a NO-IP domain for free, or use theIP>CLOUD DDNS SERVICEits free, and it keeps good track of your public IP from your central pptp server.
b) Now, that you got a domain name that keeps track of the public ip from your router, all you have to do is translate that public ip from a domain name to a ip address that you can actually use on your pptp client.
b) For that all you have to do is add it on your pptp client onIP>FIREWALL>ADDRESS LIST
b) What you gonna have to do is, add that weird domain name you got from DDNS Service (Previously obtained from your PPTP Server) to a new rule on your pptp client.
You can name it whatever you want, Just make sure that you fill with your domain name on the "Adress" space on the rule, it will automatically fetch from the ddns service the public ip from your PPTP Server.
With This we can proceed to;
Make sure the pptp client will always connect to the correct pptp server public ip address.
Make sure that the pptp interface always Dials over your specified desired rute.
a) First, we need to create a rule that routes specified destination traffic.
for this you gonna have to go on your PPTP Client toIP>FIREWALL>MANGLEand create a new rule.
Its gonna be on the prerouting chain, then you gonna go to navigate to the "Advanced" tab, and on the second option "dst Adress List" you gonna have to select the name of the "Adress" you already colected before. hint; (You can name it whatever you want, Just make sure that you fill with your domain name on the "Adress" space on the rule, it will automatically fetch from the ddns service the public ip from your PPTP Server.
and then you gonna have to select the "Action tab" and and select "Mark routing", now it is going to promp you to add a name to it, again you can name it whatever you want.
Lastly all you gonna have to do is add this new routing mark to a specified route on your PPTP Client Routerboard, for this just go toIP>ROUTEand add the gateway you want our new rule to follow, make sure to add the routing mark from the blank on the bottom of the rule, with a distance of 1 (Don't worry this won't change your default routes).
This will make sure, that wenever your public ip changues, your PPTP client will always follow a specific path to your pptp server.
and lastly you'll have to add the pptp client interfase on your PPTP Client, Just do it regulary as you usually do, just instead of typing a public ip adress on the addesspace, just add the ddns domain name you got from the cloud service on your PPTP SERVER.
Now, if you want to route your private LAN or CIDR, to specific routes (ak the pptp client or whatever wan you want)
Thats more complex, I can still help you trought here, I'd just need more information to work with.
ps: Sorry for my jibbery english i'll improve it over time.