Recently I bought vps which have only ipv6. It’s obviously that I don’t have ipv6 home. So, here is question: how do you interact with such servers?

  • Marty_TF@lemmy.zip
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    1 month ago

    have you tried using a vpn, e.g. tailscale?

    extremely easy to set up, if you are a selfhost purist, there’s headscale as a direct alternative.

    only really good at doing stuff in a personal workspace, not really made for exposing to the public internet, still very possible tho

      • axzxc1236@lemm.ee
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 month ago

        Great, if you need to SSH into Ipv6 only machine, SSH has -J flag which can be used to specify “jump host” (basically run SSH through SSH)

          • axzxc1236@lemm.ee
            link
            fedilink
            English
            arrow-up
            3
            ·
            edit-2
            1 month ago

            Host a website that needs to be accessible from your own machine or public?

            Former situation: Can be solved by setup reverse proxy on the other VPS, or join machines to a VPN server (like tailscale, Zertoier or Wireguard server)

            Later situation: Cloudflare or other CDN, setup reverse proxy on the other VPS.

            Less accessible option but available for public: Tor or I2P

              • axzxc1236@lemm.ee
                link
                fedilink
                English
                arrow-up
                2
                ·
                edit-2
                1 month ago

                Personally have good experience with https://github.com/Nyr/wireguard-install, there are other script that are available by searching “wireguard setup script github”.

                Note: By default Wireguard config generated will route every bit of traffic through Wireguard (which will be slower and probably not wanted in this situation), to change that change AllowedIPs field in Wireguard config, lets say all your machines are assigned 1.2.3.xxx as IP address, to only access other 1.2.3.xxx IP through wireguard, change the config to AllowedIPs = 1.2.3.0/24.

                  • axzxc1236@lemm.ee
                    link
                    fedilink
                    English
                    arrow-up
                    2
                    ·
                    1 month ago

                    You setup Wireguard server on the VPS with both IPv4 and IPv6. Then you connect both your computer and IPv6-only server to the Wireguard server. After connection, you can connect to the VPN through IP address assigned by wireguard.