One-click forwarding to migrate your IPV6 segments
Similar to https://tunnelbroker.net/ Build your own "Hurricane Electric Free IPv6 Tunnel Broker"
- Self-built IPv6 tunnel for sit/gre/ipip protocols
- Support to customize the IPV6 subnet size to be cut out, and the appropriate IPV6 subnet information in CIDR format will be calculated automatically.
- Automatically recognizes the IPV6 subnet size of the server side
- will automatically set up the tunnel server and print the commands that the client needs to execute
- Setting up the IPV6 tunnel is easy to understand and easy to remove
| VPS(A) | VPS(B) |
|---|---|
| one IPV4 address (server_ipv4) | one IPV4 address (clinet_ipv4) |
| one IPV6 subnet | no IPV6 address |
| Hereafter referred to as server | Hereafter referred to as client |
Download Script
curl -L https://raw.githubusercontent.com/oneclickvirt/6in4/main/6in4.sh -o 6in4.sh && chmod +x 6in4.sh
Execute it
./6in4.sh client_ipv4 <mode_type> <subnet_size>
| Options | Optional Option 1 | Optional Option 2 | Optional Option 3 |
|---|---|---|---|
| <mode_type> | gre | sit | ipip |
| <subnet_size> | 64 | 80 | 112 |
<mode_type> only support those three protocols for now, the more advanced the more recommended, no fill in the default is sit protocol
<subnet_size> as long as it is larger than the original system subnet mask, and is a multiple of 2, if you don't fill it in, it defaults to 80.
Remember to replace client_ipv4 with the IPV4 address of the machine you want to attach IPV6 to, and the command you need to execute on the client side will be sent back to you after execution, see the instructions after execution for details.
To prevent you from forgetting to copy the commands, the commands themselves will be written to the 6in4.log file under the current path, you can use cat 6in4.log to query the commands that need to be executed on the client side
systemctl status ndpresponder
ip addr show
ip addr show
curl ipv6.ip.sb
server
ip link set server-ipv6 down
ip tunnel del server-ipv6
client
ip link set user-ipv6 down
ip tunnel del user-ipv6
See https://www.spiritlhl.net/en_US/guide/lxd_custom.html#usage for more details