Failed to build on FreeBSD due to unconditional usage of splice() in sources
cc -g -O2 -I/usr/local/include -std=c99 -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE -D_GNU_SOURCE -Wall -c -o redsocks.o redsocks.c redsocks.c:441:25: warning: implicit declaration of function 'splice' is invalid in C99 [-Wimplicit-function-declaration] const ssize_t sent = splice(c->pisrc->read, NULL, out, NULL, avail, SPLICE_F_MOVE|SPLICE_F_NONBLOCK); ^ redsocks.c:441:72: error: use of undeclared identifier 'SPLICE_F_MOVE' const ssize_t sent = splice(c->pisrc->read, NULL, out, NULL, avail, SPLICE_F_MOVE|SPLICE_F_NONBLOCK); ^
Yep. Sorry, I have no permanent root access to machines running FreeBSD to test and develop for this platform. Was redsocks (e.g. v0.4) ever working for you? I've never tested it on FreeBSD and I'm unsure how to configure firewall for redsocks to receive TCP streams and UDP packets.
I could offer you a freebsd vm for playing about in to help get it working if required