• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Main Menu

Additional API utilities

Started by kcochran, February 14, 2014, 05:56:46 AM

Previous topic - Next topic

kcochran

An additional tool for reporting available tunnels is available for application programmers/embedded systems folks.  This has actually been around for a while, but not well documented.

https://USERNAME:PASSWORD@tunnelbroker.net/tunnelInfo.php[?tid=TUNNELID]

This returns the configuration information in XML format.  One tunnel block per tunnel if no ID specified, or one tunnel block for the specified tunnel id.


<?xml version="1.0" encoding="UTF-8"?>
<tunnels>
<tunnel id="TID">
 <description>DESCRIPTION</description> (as defined in the site)
 <serverv4>SERVER_IPv4</serverv4>
 <clientv4>CLIENT_IPv4</clientv4>
 <serverv6>SERVER_IPv6</serverv6>
 <clientv6>CLIENT_IPv6</clientv6>
 <routed64>ROUTED_64_PREFIX/64</routed64>
 <routed48>ROUTED_48_PREFIX/48</routed48> (exists if one assigned)
 <rdns1>DNS1</rdns1> (exists if assigned)
 <rdns2>DNS2</rdns2> (exists if assigned)
 <rdns3>DNS3</rdns3> (exists if assigned)
 <rdns4>DNS4</rdns4> (exists if assigned)
 <rdns5>DNS5</rdns5> (exists if assigned)
</tunnel>
</tunnels>