Community discussions

MikroTik App
 
ehabtanta
just joined
Topic Author
Posts: 7
Joined: Sat Mar 07, 2015 4:54 am

pptp questions

Sat Mar 07, 2015 5:12 am

1st i want to know how to edit the keepalives time out of the pptp-client on mikrotik 5.20

i searched a lot but in vain the os doesn't have this option neither gui nor terminal

but in the log it keeps disconnected about once every day i dont want this at all

here is my profile

/ppp profile
add change-tcp-mss=yes name=evan use-compression=no use-encryption=no \
use-vj-compression=no

and my client config

/interface pptp-client
add comment=ehab pptp connect-to=192.168.1.254 disabled=no name=ehab \
password=xxxxxx profile=evan user=yyyyyy

some one said n another thread that it was about the encryption but the other op tried it with no use


the second and more important thing that i want to conf the pptp-client that i select the ip i get from my isp
if it get an ip from a specific range it should disable and enable to reconnect to get another random ip
i am thinking of this script and want some one to assure that it is operational and good to go with and to tel me how to make it a scheduler to start with the system boot and keep checking every 3 seconds
take a look at my script and fix it please

:local newIP [/ip address get [find interface="ehab"] address];

:if (newIP !=xxx.xxx.xxx.xxx-yyy.yyy.yyy.yyy)
{/interface pptp-client disable ehab;
:delay 3s;
/interface pptp-client enable ehab};

the completion is the part of( if esle exit) or something like this

and i want it to chek every thime the ip get changed after this if possible or every 3 seconds to make sure it is accurate

tnx alot
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: pptp questions

Tue Mar 10, 2015 4:44 pm

1) PPTP keepalive timeout is configured at PPTP server,
/interface pptp-server server> print 
            enabled: no
            max-mtu: 1450
            max-mru: 1450
               mrru: disabled
     authentication: mschap1,mschap2
  keepalive-timeout: 30
2) Just add your commands to scheduler. However you can use ip-cloud and DNS name of PPTP server, if address is changed frequently.
http://wiki.mikrotik.com/wiki/Manual:IP/Cloud
 
ehabtanta
just joined
Topic Author
Posts: 7
Joined: Sat Mar 07, 2015 4:54 am

Re: pptp questions

Wed Mar 11, 2015 4:55 am

tnx for replying
i am talking about the pptp clent not server

and i am a noob so i cannot write the right script that i should put in scheduler would u help me plz?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: pptp questions

Wed Mar 11, 2015 10:51 am

1) Yes, that's why I highlighted for you that keepalive is configured on server.

2) Use DNS name for PPTP connections, ip-clound is great way to assign DNS name for dynamic address. It will free you from scripting configuration.

Who is online

Users browsing this forum: No registered users and 27 guests