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

Automatic setup IPv6 tunnel for dynamic IP

Started by Sus, June 22, 2011, 06:01:54 AM

Previous topic - Next topic

Sus

Automatic setup IPv6 tunnel for dynamic IP4
PHP file needed to put on IP4 hosting.

<?php
// We'll be outputting a cmd
header('Content-type: application/cmd');
// It will be called tunnelbroker.cmd
header('Content-Disposition: attachment; filename="tunnelbroker.cmd"');
// The CMD source is in tunnelbroker.cmd
readfile('tunnelbroker.cmd');
// Automatic setup IPv6 tunnel for dynamic IP4
// Enter your information in the box below &pass=MD5XXX&apikey=XXX&tid=XXX 
echo '"C:\Program Files\Internet Explorer\iexplore.exe" "https://ipv4.tunnelbroker.net/ipv4_end.php?ip='$_SERVER["REMOTE_ADDR"] ,'&pass=&apikey=&tid="
'
;

echo 
'netsh interface ipv6 delete interface IP6Tunnel
'
;
echo 
'netsh interface ipv6 add v6v4tunnel IP6Tunnel '$_SERVER["REMOTE_ADDR"] ,' 216.66.84.46';
//216.66.84.46 - Select the IP that nearest to you.

?>



Help.
https://ipv4.tunnelbroker.net/ipv4_end.php
MD5 _http://lj.onas.ru/md5/

tunnelbroker.cmd run as Administrator .
It works in Windows 7 !