Skip to content

Instantly share code, notes, and snippets.

View alpominth's full-sized avatar

Hamilton P. alpominth

  • A city in Spain
  • 13:46 (UTC +01:00)
View GitHub Profile
@stbuehler
stbuehler / .gitignore
Last active July 22, 2024 00:35 — forked from markusfisch/README.md
Force any binary to use a specific network interface in Linux
*.so
@jiahuif
jiahuif / main.go
Created October 16, 2017 06:00
golang: tunnel tcp over socks5
package main
import (
"flag"
"io"
"net"
"time"
log "github.com/sirupsen/logrus"
"golang.org/x/net/proxy"
@markusfisch
markusfisch / README.md
Last active July 22, 2024 00:35
Force any binary to use a specific network interface in Linux

setnif

Force any binary to use a specific network interface.

Requires gcc and bash. Linux only.

Usage:

$ sudo ./setnif.sh eth1 curl www.google.com