mirror of
https://git.dn42.dev/dn42/pingfinder.git
synced 2025-07-11 15:24:29 -07:00
101 lines
2.8 KiB
Smarty
101 lines
2.8 KiB
Smarty
{extends file='layout.tpl'}
|
|
|
|
{block name=meta}
|
|
<meta http-equiv="refresh" content="300; url=/peers/free">
|
|
{/block}
|
|
|
|
{block name=container}
|
|
<div class=container-fluid>
|
|
{block name=content}{/block}
|
|
</div>
|
|
{/block}
|
|
|
|
{block name=content}
|
|
<h1>Find open dn42 prefixes!</h1>
|
|
|
|
{if $o.err|default:'' != ''}
|
|
<div class='alert alert-danger'><b>ERROR:</b> {$o.err} </div>
|
|
{else if $o.msg|default:'' != ''}
|
|
<div class='alert alert-success'><b>Success:</b> {$o.msg} </div>
|
|
<h3>Peer ID: {$rq->id|default:$o.peer_id:''}</h3>
|
|
{else}
|
|
<div class=row>
|
|
<div class="col-lg-2 col-lg-offset-1 col-md-4">
|
|
|
|
<table class="table table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th align="right">Size</th>
|
|
<th align="left">Comment</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td align="right">/29</td>
|
|
<td align="left">starter pack</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="right">/28</td>
|
|
<td align="left">usually enough</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="right"><strong>/27</strong></td>
|
|
<td align="left"><strong>default allocation</strong></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="right">/26</td>
|
|
<td align="left">usually enough</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="right">/25</td>
|
|
<td align="left">still a lot of IPs!</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="right">/24</td>
|
|
<td align="left">are you an organization?</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<p>The current guideline is to allocate a /27 or smaller by default, keeping space for up to a /26 if possible. Don't allocate more than a /25 worth of addresses and please <strong>think before you allocate</strong>: If you are going to have 2-3 servers and two VPN-spaces, a /28 is enough to suit your needs. Same will go for most home-networks. This is not public internet, but our IPv4-space is valuable too! If you need a /24 or larger, please ask in the IRC chan or on the mailing list.</p>
|
|
|
|
<p>For example, if there is no /27 free, you can split up a /26 into two /27. If you are looking for a /27 but there are none showing in the Open Netblocks tool, instead pick one of the /26 and click Take it!
|
|
When registering your inetnum, instead of writing 172.2x.xxx.0-172.2x.xxx.63 then you can write 172.2x.xxx.0-172.2x.xxx.31. This will get you a /27 and save our IP space for others.</p>
|
|
|
|
<p>To register for example 172.20.150.0/27, you need to fill in 172.20.150.0-172.20.150.31.</p>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-12 col-md-8 col-lg-8">
|
|
{foreach $o.prefixes as $mask => $nets}
|
|
{if !empty($nets)}
|
|
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<b id="prefix-{$mask}" >Prefix /{$mask}</b>
|
|
</div>
|
|
|
|
<div class="list-group">
|
|
{foreach $nets|@array_slice:0:10 as $net}
|
|
<a class="list-group-item" href="https://registry.dn42.us/registry/net/{$net|replace:'/':'_'}">{$net}</a>
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
{/foreach}
|
|
<i>Last updated: {$o.mtime|date_format}</i>
|
|
</div>
|
|
</div>
|
|
|
|
{/if}
|
|
{/block}
|