Community discussions

MikroTik App
 
humlhr
newbie
Topic Author
Posts: 38
Joined: Thu Feb 24, 2011 10:44 am

Need help to route PPTP client from specific WAN

Sun Jul 28, 2013 3:29 am

Hi All,

I purchased a pptp connection and want to configure it in Mikrotik, I add a interface of pptp client on my router and give user and password and it will be connected. But I have two WAN connections on my router and I want to use one of them for pptp client.

Plz help me to route my pptp from specific WAN link.
 
User avatar
joshaven
Member
Member
Posts: 439
Joined: Fri May 06, 2011 1:50 am
Location: USA
Contact:

Re: Need help to route PPTP client from specific WAN

Sun Jul 28, 2013 5:36 am

Create a mangle rule in the prerouting chain that matches the traffic that you want to go through the pptp with an action of adding a routing mark. Then create a route for 0.0.0.0/0 with the same routing mark that has the pptp interface as the gateway.
Joshaven Potter
Consulting and Business Services Available http://joshaven.com
 
humlhr
newbie
Topic Author
Posts: 38
Joined: Thu Feb 24, 2011 10:44 am

Re: Need help to route PPTP client from specific WAN

Sun Jul 28, 2013 7:59 am

Hi joshaven

thanks for your replay. but i need to route my pptp from one of my WAN connection (i have 2 WAN). so that i use 1 WAN for pptp and use other as simple use.

i hope you understand my problem.
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 558
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Need help to route PPTP client from specific WAN

Sun Jul 28, 2013 9:07 am

add a static route for the server pptp.

ip route add dst-address=x.x.x.x gategay=y.y.y.y disable=no

x.x.x.x is the server pptp and y.y.y.y is the gateway for your dedicate pptp wan.
nothing
 
humlhr
newbie
Topic Author
Posts: 38
Joined: Thu Feb 24, 2011 10:44 am

Re: Need help to route PPTP client from specific WAN

Sun Jul 28, 2013 9:24 am

thanks

but i did not want to configure pptp server. i am a user of pptp like i buy vpnbook client to connect with it and want to use my WAN 2 connection for this purpose but when i add pptp client it did not give any option to chose interface to route.
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 558
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Need help to route PPTP client from specific WAN

Sun Jul 28, 2013 9:48 am

add a static route for the server pptp (address from vpnbook).

ip route add dst-address=x.x.x.x gategay=y.y.y.y disable=no

x.x.x.x is the server pptp (vpnbook pptp server) and y.y.y.y is the gateway from wan2.
nothing
 
User avatar
joshaven
Member
Member
Posts: 439
Joined: Fri May 06, 2011 1:50 am
Location: USA
Contact:

Re: Need help to route PPTP client from specific WAN

Mon Jul 29, 2013 1:27 am

Hi joshaven

thanks for your replay. but i need to route my pptp from one of my WAN connection (i have 2 WAN). so that i use 1 WAN for pptp and use other as simple use.

i hope you understand my problem.
You still need to add a route mark to the traffic that you want to go through the pptp connection then have a route that points any traffic that has that mark to the pptp as a gateway.
Joshaven Potter
Consulting and Business Services Available http://joshaven.com

Who is online

Users browsing this forum: Baidu [Spider], mikeeg02, spr41178, sunshuvo and 188 guests