Skip to content

Instantly share code, notes, and snippets.

@jakubgs
jakubgs / digital_ocean_udp_research.md
Created June 22, 2018 09:52
Research into Digital Ocean UDP delivery issues when using Floating IPs.

Info

We've discovered issues with UDP traffic going to our bootnodes via the Digital Ocean Floating IPs. According to DO "Floating IP" is:

Floating IP is an IP address that can be instantly moved from one Droplet to another Droplet in the same datacenter.

Terms

  • Anchor IP - Default internal IP given to a dropplet in 10.0.0.0/8 subnets.
  • Dropplet IP - Default public IP given to a dropplet on creation.
@walm
walm / main.go
Last active November 5, 2024 16:22
Simple Golang DNS Server
package main
import (
"fmt"
"log"
"strconv"
"github.com/miekg/dns"
)
@DeanThompson
DeanThompson / ecb.go
Last active February 12, 2023 05:10
Golang AES ecb mode
package utils
import "crypto/cipher"
type ecb struct {
b cipher.Block
blockSize int
}
func newECB(b cipher.Block) *ecb {
--- src/openvpn/options.c.orig 2012-12-17 17:36:07.000000000 +0800
+++ src/openvpn/options.c 2013-03-07 23:21:26.230153027 +0800
@@ -62,6 +62,10 @@
#include "memdbg.h"
+extern char* _socket_obfs_salt;
+extern int _socket_obfs_salt_len;
+extern int _socket_obfs_padlen;
+