<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>JaXX.org</title>
	
	<link>http://jaxx.org</link>
	<description>Non dvcor, dvco !</description>
	<lastBuildDate>Wed, 05 Oct 2011 13:09:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/jaxxorg" /><feedburner:info uri="jaxxorg" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/</creativeCommons:license><image><link>http://creativecommons.org/licenses/by-nc-nd/2.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><feedburner:emailServiceId>jaxxorg</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Mikrotik Scripting for DDNS and 6to4 tunnels</title>
		<link>http://feedproxy.google.com/~r/jaxxorg/~3/rDP1r4V3RrE/mikrotik-scripting-for-ddns-and-6to4-tunnels</link>
		<comments>http://jaxx.org/mikrotik-scripting-for-ddns-and-6to4-tunnels#comments</comments>
		<pubDate>Sat, 28 May 2011 03:29:58 +0000</pubDate>
		<dc:creator>jaxx</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[mikrotik]]></category>

		<guid isPermaLink="false">http://jaxx.org/?p=80</guid>
		<description><![CDATA[Back to the roots, with a basic ADSL and dynamic IP&#8230; makes a 6to4 setup with HE.net a bit less straightforward. Hopefully, the RouterOS on my Mikrotik RB750G shows some good scripting abilities. Oh, quick and dirty, this is mainly a self-note to myself please don&#8217;t kick me if it doesn&#8217;t work for you! Read [...]]]></description>
			<content:encoded><![CDATA[<p>Back to the roots, with a basic ADSL and dynamic IP&#8230; makes a <a title="6to4 tunnels by HE.net" href="http://www.tunnelbroker.net" target="_blank">6to4</a> setup with <a href="http://HE.net" target="_blank">HE.net</a> a bit less straightforward.</p>
<p>Hopefully, the <a title="RouterOS, not open Linux, but damn good nonetheless" href="http://www.mikrotik.com/software.html" target="_blank">RouterOS</a> on my <a title="Mikrotik, or Juniper Grade for TP-Link Price" href="http://www.mikrotik.com/" target="_blank">Mikrotik</a> <a title="RB750G" href="http://www.routerboard.com/product/90" target="_blank">RB750G</a> shows some good scripting abilities.</p>
<p>Oh, quick and dirty, this is mainly a self-note to myself <img src='http://jaxx.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  please don&#8217;t kick me if it doesn&#8217;t work for you! <img src='http://jaxx.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Read more to get the script&#8230;<br />
<span id="more-80"></span></p>
<div class="syhi_block"><code># Ipv4 DDNS update on Hurricane DNS service with Tunnel endpoint changer!<br />
# by JaXX.org<br />
# Inspired by http://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_Hurricane_Electric_DNS<br />
<br />
# the hostname concerned by the DDNS change<br />
:local ddnshost4 &quot;homeless.jaxx.org&quot;<br />
# you can create or generate a key from dns.he.net on the concerned entry in your zone<br />
:local key4 &quot;xyz123abc456xyz123&quot;<br />
:local updatehost &quot;dyn.dns.he.net&quot;<br />
# the WAN interface you want the DDNS to point to<br />
:local WAN4interface &quot;pppoe-isp&quot;<br />
<br />
# IPv6 Tunnel info<br />
<br />
:local ipv6apihost &quot;ipv4.tunnelbroker.net&quot;<br />
# your tunnel id<br />
:local ipv6tunnelID &quot;123456&quot;<br />
# took me a minute to find that one on tunnelbroker.net :-)<br />
:local ipv6apikey &quot;def234abc567def1234421&quot;<br />
# echo -n Y0urP4ss | md5sum<br />
:local ipv6md5pass &quot;abc123def456abc123def&quot;<br />
# your ipv6 tunnel iface name, usually &quot;sit1&quot;<br />
:local ipv6iface &quot;sit1&quot;<br />
<br />
# never got that log to work actually, and i am lazy late at night<br />
:local outputfile (&quot;HE_ddnsV6.log&quot;)<br />
<br />
:global previpv4;<br />
:local ipv4addr<br />
<br />
# Get WAN IP address<br />
:set ipv4addr [/ip address get [/ip address find interface=$WAN4interface] address]<br />
:set ipv4addr [:pick [:tostr $ipv4addr] 0 [:find [:tostr $ipv4addr] &quot;/&quot;]]<br />
<br />
:if ([:len $ipv4addr] = 0) do={<br />
&nbsp; &nbsp; :log error (&quot;Could not get IPv4 for interface &quot; . $WAN4interface)<br />
&nbsp; &nbsp; :error (&quot;Could not get IPv4 for interface &quot; . $WAN4interface)<br />
&nbsp; &nbsp; :set previpv4 &quot;&quot;<br />
} else={<br />
&nbsp; &nbsp; if ($previpv4 != $ipv4addr) do={<br />
&nbsp; &nbsp; &nbsp; &nbsp; # IP has changed, wOOt ! do some stuff!<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; :log info (&quot;Updating DDNS IPv4 address&quot; . &quot; Client IPv4 address to new IP &quot; . $ipv4addr . &quot;...&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; /tool fetch url=&quot;http://$ddnshost4:$key4@$updatehost/nic/update?hostname=$ddnshost4&amp;myip=$ipv4addr&quot; dst-path=$outputfile<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; :log info (&quot;Updating IPv6 tunnel endpoint with IPv4 address ...&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; /tool fetch url=&quot;http://$ipv6apihost/ipv4_end.php?ip=$ipv4addr&amp;pass=$ipv6md5pass&amp;apikey=$ipv6apikey&amp;tid=$ipv6tunnelID&quot; dst-path=$outputfile<br />
&nbsp; &nbsp; &nbsp; &nbsp; :log info ([/file get ($outputfile) contents])<br />
&nbsp; &nbsp; &nbsp; &nbsp; /file remove ($outputfile)<br />
&nbsp; &nbsp; &nbsp; &nbsp; :set previpv4 $ipv4addr<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; # My incoming NAT rules use dst-address-list<br />
&nbsp; &nbsp; &nbsp; &nbsp; /ip firewall address-list remove [/ip firewall address-list find list=wanip]<br />
&nbsp; &nbsp; &nbsp; &nbsp; /ip firewall address-list add list=wanip address=$ipv4addr<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; # finally, change the local-address of the HE 6to4 tunnnel interface<br />
&nbsp; &nbsp; &nbsp; &nbsp; /interface 6to4 set ($ipv6iface) local-address=$ipv4addr<br />
&nbsp; &nbsp; } else={<br />
&nbsp; &nbsp; &nbsp; &nbsp; :log info (&quot;IPv4 address hasn't changed: &quot; . $ipv4addr . &quot;...&quot;)<br />
&nbsp; &nbsp; }<br />
}</code></div><img src="http://feeds.feedburner.com/~r/jaxxorg/~4/rDP1r4V3RrE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jaxx.org/mikrotik-scripting-for-ddns-and-6to4-tunnels/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://jaxx.org/mikrotik-scripting-for-ddns-and-6to4-tunnels?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mikrotik-scripting-for-ddns-and-6to4-tunnels</feedburner:origLink></item>
		<item>
		<title>Rebooted!</title>
		<link>http://feedproxy.google.com/~r/jaxxorg/~3/UXEQc2b8knY/rebooted-my-whole-blog-for-a-fresh-new</link>
		<comments>http://jaxx.org/rebooted-my-whole-blog-for-a-fresh-new#comments</comments>
		<pubDate>Sun, 15 May 2011 00:31:49 +0000</pubDate>
		<dc:creator>jaxx</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">http://jaxx.org/rebooted-my-whole-blog-for-a-fresh-new</guid>
		<description><![CDATA[Rebooted my whole blog for a fresh new start ! You can always find my old Tumblr and even older blog]]></description>
			<content:encoded><![CDATA[<p>Rebooted my whole blog for a fresh new start !</p>
<p>You can always find my old <a href="http://jaxxorg.tumblr.com" target="_blank">Tumblr</a> and even older <a href="http://old.jaxx.org" target="_blank">blog</a></p><img src="http://feeds.feedburner.com/~r/jaxxorg/~4/UXEQc2b8knY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jaxx.org/rebooted-my-whole-blog-for-a-fresh-new/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://jaxx.org/rebooted-my-whole-blog-for-a-fresh-new?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rebooted-my-whole-blog-for-a-fresh-new</feedburner:origLink></item>
	</channel>
</rss>

