Ir ao conteúdo

Atualizar End Point, TunnelBroker.

Bom dia!

Estou utilizando IPv6 aqui na minha rede local, porém sempre que eu iniciava o servidor tinha que acessar o site tunnelbroker e atualizar o End Point, então tive a idéia de fazer um script que atualizasse sozinho. Enviei um e-mail para o suporte deles e recebi a seguinte url como resposta: http://ipv4.tunnelbroker.net/ipv4_end.php

ipv4b = Novo endereço de IP
pass = md5 da sua senha (http://hash-it.net/)
user_id = O “UserID” da página principal no tunnelbroker (não é seu usuário)
tunnel_id = O “Global Tunnel ID” da página de detalhes do tunnel

Adicionei o seguinte comando no /etc/rc.local para pegar o IP atual da interface eth0 (externa):

IP=`ifconfig eth0 | grep “inet addr” | cut -d : -f 2 | cut -d B -f 1 | sed ‘s/^ *//;s/ *$//’`

Após isso adicionei a seguinte linha para fazer a requisição e atualizar o End Point:

wget https://ipv4.tunnelbroker.net/ipv4_end.php?ipv4b=$IP&pass=senha&user_id=USERID&tunnel_id=TUNNELID

Abraço,
Matheus

Publicado emAprendendoipv6Linux

52 Comentários

  1. Hi my family member! I wish to say that this post is awesome, nice written and include almost all vital infos. I would like to peer more posts like this .

  2. I cherished up to you will receive performed proper here. The caricature is attractive, your authored subject matter stylish. however, you command get got an impatience over that you would like be handing over the following. ill definitely come more before once more as exactly the similar nearly a lot ceaselessly inside of case you defend this increase.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *