News for hackers. Stuff that matters.
Re:IPv6 support for cloning Git repositories? by osivertsson on Thursday September 29, 2022 @02:09PM (#33024823)
I have a dedicated server on Hetzner where I choose not to pay for IPv4 connectivity.

Using only IPv6 works fine most of the time but in 2022 there are still some services that are available only through IPv4, like GitHub.

However, I have both IPv4 and IPv6 connectivity from the places I connect to my server. Could I use that to get IPv4 connectivity on the server when I need it?

The answer is yes of course, and here is one way to do just that.

Replace dedicated-server-hostname with your server hostname or IP.

  laptop> cat ~/.ssh/config
  Host dedicated-server-hostname
    RemoteForward 1080

  laptop> ssh username@dedicated-server-hostname

  server> cat ~/.gitconfig
  ...
  # Using git on an IPv6 only machine that needs to access git repos only
  # available through IPv4, e.g. github.com. The workaround is to use the
  # network on the machine we connect from.
  #
  # This can be done by setting up a SOCKS proxy when connecting to the IPv6 only
  # machine over ssh, see RemoteForward in ssh_config(5).
  [http "https://github.com"]
      proxy = socks5h://localhost:1080
Re:IPv6 support for cloning Git repositories? by albru123 on Thursday September 29, 2022 @02:16PM (#33024935)
We just ended up buying /28 subnet, because the whole v6 to v4 experience was too frustrating and would've probably cost more to solve all the issues (or hire someone who knew how to set it up properly) than to buy the subnet.
Re:IPv6 support for cloning Git repositories? by staringback on Thursday September 29, 2022 @02:31PM (#33025121)
As time progresses the cost will flip to the other direction
Re:IPv6 support for cloning Git repositories? by ses1984 on Thursday September 29, 2022 @02:33PM (#33025145)
Some time between now and the heat death of the universe.
Re:IPv6 support for cloning Git repositories? by blibble on Thursday September 29, 2022 @04:02PM (#33026315)
apparently they have a nat64 gateway... so it should work if you configure it properly

check their help docs