Force any binary to use a specific network interface.
Requires gcc and bash. Linux only.
Usage:
$ sudo ./setnif.sh eth1 curl www.google.com
| *.so |
| package main | |
| import ( | |
| "flag" | |
| "io" | |
| "net" | |
| "time" | |
| log "github.com/sirupsen/logrus" | |
| "golang.org/x/net/proxy" |