仗剑只为她

仗剑只为她

Fearless IPV6 Supremacy: Exploring the Mysterious Connection Between IPV6-Free Environments and Pure IPV6 Servers

Preface#

In recent years, most server vendors have launched servers with only IPV6, and the prices are relatively lower compared to servers with IPV4. However, after purchasing, due to the lack of support for IPV6 in the local network environment, it becomes impossible to connect to the purchased server via SSH, leading to a failure before success.
There are two methods to connect to a server with only IPV6 using SSH: the first method is to use a jump server (a device used to securely access internal networks), of course, this jump server needs to have both IPV6 and IPV4. You need to SSH into the jump server first, and then connect to the target server through the jump server. The second method is to use software like Warp to add an IPV6 node to your local computer, and then directly connect to the target server (which is the server with only IPV6).
There are three main types of connections:

  • Terminal network natively supports IPV6
    • Home broadband network: requires router support and IPV6 enabled in the modem's backend.
    • Mobile network: APN access point enables IPV6, which requires support from the network operator. Corresponds to the second method in this article.
  • Add IPV6 tunnel to local computer, corresponding to the third method in this article.
  • Add IPV6 to VPS as a jump server
    • Dual-stack VPS: VPS with both IPV4 and IPV6. Corresponds to the first method in this article.
    • Add IPV6 using Warp: similar to the third method in this article, but can be done using a script.

Method 1: Using the tunnel function of FinalShell or other SSH clients#

Create a tunnel#

To create a tunnel, you need to first connect to the jump server, go to the settings of that server, select "Tunnel", add a tunnel, name it as you like, choose "SOCKS5" as the type, set a listening port that is not in use, and set the bind IP to 127.0.0.1. Click "OK" and the tunnel will be established.
image

Use the tunnel#

Go back to the settings page of the target server, click "New Proxy", click "Add", name it as you like, choose "SOCKS5" as the type, set the listening port to the one you filled in the jump server, and set the host to 127.0.0.1. Click "OK" and the proxy will be established, check the proxy.
image
At this point, congratulations on completing all the steps, you can now connect to the target server.
Note: This method requires keeping the jump server connected in FinalShell.

Method 2: Using mobile data for login#

Check if your mobile data has IPV6#

Access test-ipv6 using your mobile data and determine if you have IPV6 based on the prompt.

Use SSH tools on mobile devices#

  • termius: supports iOS and Android
  • DaRemote: supports Android
  • ServerCat: supports iOS
  • Juice: supports Android
    There are also other SSH tools for mobile devices, which are not listed here.

Method 3: Using WireGuard#

WireGuard download link: WireGuard Download.
You can also use the Warp client from 方: TunSafe Download.

  1. Generate Warp configuration file
    The method of generating the configuration file is provided by YouTube UP - 甬哥侃侃侃.
    Click here: Replit platform one-click unlimited generation of WARP-Wireguard configuration, click "RUN", then enter 1, choose a regular account, and you will get the configuration.
    image.png
    Configuration example:
[Interface]
PrivateKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Address    = xxxxxxxxxxxxxx/32
Address    = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/128
DNS        = 1.1.1.1
MTU        = 1280

[Peer]
PublicKey  = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
AllowedIPs = 0.0.0.0/0
AllowedIPs = ::/0
Endpoint   = xxxxxxxxxxxxxxxxxxxx:2408
  1. After installation, open the client, click the triangle next to "Create Tunnel", click "Create Empty Tunnel".
    image.png
  2. Select the entire configuration file, directly replace the area where the new tunnel is created, and enter a tunnel name (any name), click "Save", and then choose "Connect".
  3. Test again by visiting test-ipv6, if it looks the same as the image below, it means the configuration is successful.
    image.png

Finally#

If you feel that you don't understand it very well, you can also watch the following tutorials:

甬哥侃侃侃 Warp series tutorials
Cloud Native Lab - Detailed explanation of WireGuard setup and configuration

A moment of spring night is worth a thousand dollars, with fragrant flowers and a shady moon.
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.