Jump to content
Калькуляторы

Микротик понимает только IP?

Господа! Ткните носом. Создаю pptp клиента на микротике, но он понимает только ip адреса сервера, а у меня сервер ddns, т.е. надо прописать имя. Не дает((

Edited by a3lex

Share this post


Link to post
Share on other sites

Еще можно белый адрес заиметь в одном месте и все проблемы сразу снимаются. Это лучше чем с ddns мучиться.

Тут самое место ТП-Линк. LOL

Share this post


Link to post
Share on other sites

# Define User Variables   
:global dnshost "DNS имя нашего сервера"   
:global pptpiface "имя нашего PPTP интерфейса" 	
:if ([interface pptp-client get $pptpiface running] = false) do={  
/ip dns cache flush   
:local currentip [:resolve $dnshost]  
/interface pptp-client set [/interface pptp-client find name="$pptpiface"] connect-to=$currentip   
:log info "PPTP_CHG_IP: IP changed new $currentip"   }   

Edited by Nick_name

Share this post


Link to post
Share on other sites

# Define User Variables   
:global dnshost "DNS имя нашего сервера"   
:global pptpiface "имя нашего PPTP интерфейса" 	
:if ([interface pptp-client get $pptpiface running] = false) do={  
/ip dns cache flush   
:local currentip [:resolve $dnshost]  
/interface pptp-client set [/interface pptp-client find name="$pptpiface"] connect-to=$currentip   
:log info "PPTP_CHG_IP: IP changed new $currentip"   }   

 

 

 

Спасибо большущее! Все работает! )))

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.