<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux 360° &#124; Italia &#187; noip</title>
	<atom:link href="http://www.linux360.it/tag/noip/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linux360.it</link>
	<description>Notizie, guide e tutorial per il mondo Linux a 360°</description>
	<lastBuildDate>Tue, 16 Dec 2014 14:03:33 +0000</lastBuildDate>
	<language>it-IT</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>Dynamic DNS Update Script for NO-IP behind NAT on Mikrotik Router V2</title>
		<link>http://www.linux360.it/2013/07/13/dynamic-dns-update-script-for-no-ip-behind-nat-on-mikrotik-router-v2/</link>
		<comments>http://www.linux360.it/2013/07/13/dynamic-dns-update-script-for-no-ip-behind-nat-on-mikrotik-router-v2/#comments</comments>
		<pubDate>Sat, 13 Jul 2013 14:40:58 +0000</pubDate>
		<dc:creator><![CDATA[Francesco Gabriele]]></dc:creator>
				<category><![CDATA[Mikrotik]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[mikrotik]]></category>
		<category><![CDATA[noip]]></category>

		<guid isPermaLink="false">http://www.ubuntuserver.it/?p=394</guid>
		<description><![CDATA[<p>Googlando ho trovato questa versione che sembra essere piu completo del mio precedente script #Dynamic DNS Update Script for No-IP DNS behind nat # Set needed variables :local username "your no-ip user login" :local password "your no-ip password" :local host "your no-ip host name" :global previousIP # print some debug info :log info ("Update No-IP ...</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2013/07/13/dynamic-dns-update-script-for-no-ip-behind-nat-on-mikrotik-router-v2/">Dynamic DNS Update Script for NO-IP behind NAT on Mikrotik Router V2</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Googlando ho trovato questa versione che sembra essere piu completo del mio precedente script <img src="http://www.linux360.it/wp-includes/images/smilies/icon_razz.gif" alt=":P" class="wp-smiley" /> </p>
<pre class="bbcode_code" style="height: 372px;">#Dynamic DNS Update Script for No-IP DNS behind nat
# Set needed variables
:local username "your no-ip user login"
:local password "your no-ip password"
:local host "your no-ip host name"
:global previousIP
# print some debug info
:log info ("Update No-IP DNS: username = $username")
:log info ("Update No-IP DNS: hostname = $host")
:log info ("Update No-IP DNS: previousIP = $previousIP")
#
# behind nat - get the public address using dyndns url http://checkip.dyndns.org
/tool fetch mode=http address="checkip.dyndns.org" src-path="/" dst-path="/dyndns.checkip.html"
:delay 2
:local result [/file get dyndns.checkip.html contents]
:log info "dyndns result = $result"
# parse the current IP result
:local resultLen [:len $result]
:local startLoc [:find $result ": " -1]
:set startLoc ($startLoc + 2)
:local endLoc [:find $result "&lt;/body&gt;" -1]
:local currentIP [pick $result $startLoc $endLoc]
:log info "No-IP DNS: currentIP = $currentIP"
:if ($currentIP != $previousIP) do={
:log info "No-IP: Current IP $currentIP is not equal to previous IP, update needed"
:set previousIP $currentIP
:local url "http://dynupdate.no-ip.com/nic/update/?myip=$currentIP&amp;hostname=$host"
:log info "No-IP DNS: Sending update for $host"
/tool fetch url=$url user=$username password=$password mode=http dst-path=("no-ip_ddns_update.txt")
:log info "No-IP DNS: Host $host updated on No-IP with IP $currentIP"
:delay 2
:local result [/file get "no-ip_ddns_update.txt" contents]
:log info "Update Result = $result"
} else={
:log info "No-IP: update not needed "
}
# end</pre>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2013/07/13/dynamic-dns-update-script-for-no-ip-behind-nat-on-mikrotik-router-v2/">Dynamic DNS Update Script for NO-IP behind NAT on Mikrotik Router V2</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2013/07/13/dynamic-dns-update-script-for-no-ip-behind-nat-on-mikrotik-router-v2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic DNS Update Script for NO-IP behind NAT on Mikrotik Router</title>
		<link>http://www.linux360.it/2013/06/22/dynamic-dns-update-script-for-no-ip-behind-nat-on-mikrotik-router-2/</link>
		<comments>http://www.linux360.it/2013/06/22/dynamic-dns-update-script-for-no-ip-behind-nat-on-mikrotik-router-2/#comments</comments>
		<pubDate>Sat, 22 Jun 2013 17:22:09 +0000</pubDate>
		<dc:creator><![CDATA[Francesco Gabriele]]></dc:creator>
				<category><![CDATA[Mikrotik]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[mikrotik]]></category>
		<category><![CDATA[nat]]></category>
		<category><![CDATA[no-ip]]></category>
		<category><![CDATA[noip]]></category>

		<guid isPermaLink="false">http://www.ubuntuserver.it/?p=378</guid>
		<description><![CDATA[<p>Basandomi sul mio precedente script  p ho effettuate alcune modifiche prendendo esempio da un esempio di script che utilizza DynDNS sempre dietro nat  p Eccolo: # No-IP automatic Dynamic DNS update Behind Nat By Frank #&#8212;&#8212;&#8212;&#8212;&#8212; Change Values in this section to match your setup &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; # No-IP User account info :local noipuser &#8220;noip_user&#8221; :local noippass ...</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2013/06/22/dynamic-dns-update-script-for-no-ip-behind-nat-on-mikrotik-router-2/">Dynamic DNS Update Script for NO-IP behind NAT on Mikrotik Router</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><strong>Basandomi sul mio precedente script  <a title="Dynamic DNS Update Script for No-IP DNS on Mikrotik Router" href="http://www.ubuntuserver.it/?p=372" target="_blank">p</a> ho effettuate alcune modifiche prendendo esempio da un esempio di script che utilizza DynDNS sempre dietro nat  <a title="Dynamic DNS Update Script for dynDNS behind NAT" href="http://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_dynDNS_behind_NAT" target="_blank">p</a></strong><a href="http://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_dynDNS_behind_NAT" target="_blank"><br />
</a></p>
<p><strong>Eccolo:</strong></p>
<p># No-IP automatic Dynamic DNS update Behind Nat By Frank</p>
<p>#&#8212;&#8212;&#8212;&#8212;&#8212; Change Values in this section to match your setup &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p># No-IP User account info<br />
:local noipuser &#8220;noip_user&#8221;<br />
:local noippass &#8220;noip_password&#8221;</p>
<p># Set the hostname or label of network to be updated.<br />
# Hostnames with spaces are unsupported. Replace the value in the quotations below with your host names.<br />
# To specify multiple hosts, separate them with commas.<br />
:local noiphost &#8220;noip_domain&#8221;</p>
<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>:global previousIP</p>
<p># get the current IP address from the internet (in case of double-nat)<br />
/tool fetch mode=http address=&#8221;checkip.dyndns.org&#8221; src-path=&#8221;/&#8221; dst-path=&#8221;/nat.checkip.html&#8221;<br />
:local result [/file get nat.checkip.html contents]
<p># parse the current IP result<br />
:local resultLen [:len $result]
:local startLoc [:find $result ": " -1]
:set startLoc ($startLoc + 2)<br />
:local endLoc [:find $result "&lt;/body&gt;" -1]
:local currentIP [:pick $result $startLoc $endLoc]
:log info &#8220;UpdateNatNoipDNS: currentIP = $currentIP&#8221;</p>
<p># The update URL. Note the &#8220;3F&#8221; is hex for question mark (?). Required since ? is a special character in commands.<br />
:local url &#8220;http://dynupdate.no-ip.com/nic/update3Fmyip=$currentIP&#8221;<br />
:local noiphostarray<br />
:set noiphostarray [:toarray $noiphost]
:foreach host in=$noiphostarray do={<br />
:log info &#8220;No-IP: Sending update for $host&#8221;<br />
/tool fetch url=($url . &#8220;&amp;hostname=$host&#8221;) user=$noipuser password=$noippass mode=http dst-path=(&#8220;no-ip_ddns_update-&#8221; . $host . &#8220;.txt&#8221;)<br />
:log info &#8220;No-IP: Host $host updated on No-IP with IP $currentIP&#8221;<br />
}</p>
<p><strong>Di seguito la solita schedulazione:</strong></p>
<p>/system scheduler</p>
<p>add disabled=no interval=5m name=no-ip_ddns_update on-event=no-ip_ddns_update policy=ftp,read,write,test,winbox,api start-date=apr/21/2013 start-time=18:46:4</p>
<p>&nbsp;</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2013/06/22/dynamic-dns-update-script-for-no-ip-behind-nat-on-mikrotik-router-2/">Dynamic DNS Update Script for NO-IP behind NAT on Mikrotik Router</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2013/06/22/dynamic-dns-update-script-for-no-ip-behind-nat-on-mikrotik-router-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic DNS Update Script for No-IP DNS on Mikrotik Router</title>
		<link>http://www.linux360.it/2013/06/22/dynamic-dns-update-script-for-no-ip-dns-on-mikrotik-router/</link>
		<comments>http://www.linux360.it/2013/06/22/dynamic-dns-update-script-for-no-ip-dns-on-mikrotik-router/#comments</comments>
		<pubDate>Sat, 22 Jun 2013 17:00:29 +0000</pubDate>
		<dc:creator><![CDATA[Francesco Gabriele]]></dc:creator>
				<category><![CDATA[Mikrotik]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[mikrotik]]></category>
		<category><![CDATA[nat]]></category>
		<category><![CDATA[no-ip]]></category>
		<category><![CDATA[noip]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://www.ubuntuserver.it/?p=372</guid>
		<description><![CDATA[<p>Googlando ne ho provati molti ma questo è quello che funziona meglio: # No-IP automatic Dynamic DNS update #&#8212;&#8212;&#8212;&#8212;&#8212; Change Values in this section to match your setup &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; # No-IP User account info :local noipuser &#8220;noip_username&#8221; :local noippass &#8220;noip_password&#8221; # Set the hostname or label of network to be updated. # Hostnames with spaces ...</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2013/06/22/dynamic-dns-update-script-for-no-ip-dns-on-mikrotik-router/">Dynamic DNS Update Script for No-IP DNS on Mikrotik Router</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><strong>Googlando ne ho provati molti ma questo è quello che funziona meglio:</strong></p>
<p># No-IP automatic Dynamic DNS update</p>
<p>#&#8212;&#8212;&#8212;&#8212;&#8212; Change Values in this section to match your setup &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p># No-IP User account info<br />
:local noipuser &#8220;noip_username&#8221;<br />
:local noippass &#8220;noip_password&#8221;</p>
<p># Set the hostname or label of network to be updated.<br />
# Hostnames with spaces are unsupported. Replace the value in the quotations below with your host names.<br />
# To specify multiple hosts, separate them with commas.<br />
:local noiphost &#8220;noip_domain&#8221;</p>
<p># Change to the name of interface that gets the dynamic IP address<br />
:local inetinterface &#8220;pppoe-out&#8221;</p>
<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
# No more changes need</p>
<p>:global previousIP</p>
<p>:if ([/interface get $inetinterface value-name=running]) do={<br />
# Get the current IP on the interface<br />
:local currentIP [/ip address get [find interface="$inetinterface" disabled=no] address]
<p># Strip the net mask off the IP address<br />
:for i from=( [:len $currentIP] &#8211; 1) to=0 do={<br />
:if ( [:pick $currentIP $i] = &#8220;/&#8221;) do={<br />
:set currentIP [:pick $currentIP 0 $i]
}<br />
}</p>
<p>:if ($currentIP != $previousIP) do={<br />
:log info &#8220;No-IP: Current IP $currentIP is not equal to previous IP, update needed&#8221;<br />
:set previousIP $currentIP</p>
<p># The update URL. Note the &#8220;3F&#8221; is hex for question mark (?). Required since ? is a special character in commands.<br />
:local url &#8220;http://dynupdate.no-ip.com/nic/update3Fmyip=$currentIP&#8221;<br />
:local noiphostarray<br />
:set noiphostarray [:toarray $noiphost]
:foreach host in=$noiphostarray do={<br />
:log info &#8220;No-IP: Sending update for $host&#8221;<br />
/tool fetch url=($url . &#8220;&amp;hostname=$host&#8221;) user=$noipuser password=$noippass mode=http dst-path=(&#8220;no-ip_ddns_update-&#8221; . $host . &#8220;.txt&#8221;)<br />
:log info &#8220;No-IP: Host $host updated on No-IP with IP $currentIP&#8221;<br />
}<br />
} else={<br />
:log info &#8220;No-IP: Previous IP $previousIP is equal to current IP, no update needed&#8221;<br />
}<br />
} else={<br />
:log info &#8220;No-IP: $inetinterface is not currently running, so therefore will not update.&#8221;<br />
}</p>
<p>Poi ovviamente lo scheduliamo:</p>
<p><strong>/system scheduler</strong></p>
<p>add disabled=no interval=5m name=no-ip_ddns_update on-event=no-ip_ddns_update policy=ftp,read,write,test,winbox,api start-date=apr/21/2013 start-time=18:46:4</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2013/06/22/dynamic-dns-update-script-for-no-ip-dns-on-mikrotik-router/">Dynamic DNS Update Script for No-IP DNS on Mikrotik Router</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2013/06/22/dynamic-dns-update-script-for-no-ip-dns-on-mikrotik-router/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
