Skip to content

Instantly share code, notes, and snippets.

View unixfox's full-sized avatar

Émilien (perso) unixfox

View GitHub Profile
@unixfox
unixfox / readme.md
Last active May 20, 2024 21:02
How to get IPv4 connectivity on an IPv6 only VPS

Some hosting providers like scaleway allows to remove the IPv4 from the VPS in order to save 1€/month but doing this will result in losing connectivity to the "IPv4 world".
Or you may have ordered a VPS that only has IPv6 connectivity and you want to access to a resource only accessible from the "IPv4 world".
Here is how to gain your access back to the "IPv4 world".

Change your name servers(s) to DNS64 name servers(s)

Note: You may deploy your own DNS64 & NAT64 server on a separate server by following this tutorial (untested): https://packetpushers.net/nat64-setup-using-tayga/.
Note²: You may find a explanation of what is NAT64 and DNS64 on Wikipedia.

  1. Choose a/multiple DNS64 public server(s) that has/have its own NAT64 public service from this list:
@unixfox
unixfox / index.js
Last active May 15, 2020 16:40
get random skins from namemc
const got = require('got');
const fs = require("fs");
const Queue = require('better-queue');
const prompts = require('prompts');
const cheerio = require('cheerio');
if (!fs.existsSync("skins")) {
fs.mkdirSync("skins");
}
@unixfox
unixfox / index.js
Last active May 15, 2020 15:29
get skins of the minecraft players that liked a server on namemc
const got = require('got');
const fs = require("fs");
const Queue = require('better-queue');
const prompts = require('prompts');
const APIs = Array("https://crafatar.com/skins/", "https://visage.surgeplay.com/skin/", "https://crafatar.com/skins/");
(async () => {
const response = await prompts({
type: 'text',
@unixfox
unixfox / apk-autoupdate.conf
Last active May 12, 2020 18:12
alpine config files
# Configuration for apk-autoupdate.
# List of packages that should not be automatically upgraded.
# Note: Case patterns (shell "case") may be used.
#packages_blacklist="linux-*"
# List of services that may be automatically restarted.
# Note: Case patterns (shell "case") may be used.
#services_whitelist=""
@unixfox
unixfox / ipv6fix.conf
Created March 10, 2020 13:44
fix IPv6 with Alpine and Docker
net.ipv6.conf.default.accept_ra=0
net.ipv6.conf.default.autoconf=0
net.ipv6.conf.all.accept_ra=0
net.ipv6.conf.all.autoconf=0
net.ipv6.conf.eth0.accept_ra=0
net.ipv6.conf.eth0.autoconf=0
death.cactus = {0} tried to hug a cactus
death.drown = {0} forgot to breathe
death.lightning = {0} was struck by lightning
death.starve = {0} starved to death
death.suffocate = {0} suffocated
death.poison = {0} died of poisoning
death.wither = {0} withered away
death.unknown = {0} died from unknown causes
death.generic = {0} died
{
"torrentgalaxy": {
"name": "TorrentGalaxy",
"url": "https://torrentgalaxy.to/torrents.php?search={{query}}&sort=id&order=desc&page={{page:0}}",
"list": "div.tgxtablerow",
"result": {
"name": ["div:nth-of-type(4) div a", "@title"],
"url": ["div:nth-of-type(4) div a", "@href"],
"size": "div:nth-of-type(8)",
"seeds": "div:nth-of-type(10)"
@unixfox
unixfox / jool.conf
Last active June 5, 2023 14:29
IPv6 only NAT64 (Jool) with RA (radvd) + DNS64 (bind9)
{
"comment": "Sample configuration for the NAT64 Jool service.",
"instance": "default",
"framework": "netfilter",
"global": {
"comment": "Sample pool6 prefix",
"pool6": "64:ff9b::/96"
}
@unixfox
unixfox / azureipv6linux.json
Last active November 6, 2019 20:04
azure ipv6 linux
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": {
"type": "string",
"metadata": {
"description": "The name of the administrator of the new VM. Exclusion list: 'admin','administrator'"
}
},
@unixfox
unixfox / azurewinipv6.json
Last active November 6, 2019 16:02
azure windows ipv6 template
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": {
"type": "string",
"metadata": {
"description": "The name of the administrator of the new VM. Exclusion list: 'admin','administrator'"
}
},