Comments (6)
You have to use GNU make, invoked by gmake
on FreeBSD. Mind that AFAIR bleeding-edge redsocks from master branch is not working on non-Linux OSes atm, so you should possibly go with version 0.4 then.
from redsocks.
FreeBSD 10:
Currently:
make: "/root/redsocks/Makefile" line 3: Missing dependency operator
make: "/root/redsocks/Makefile" line 5: Need an operator
make: "/root/redsocks/Makefile" line 17: Need an operator
make: "/root/redsocks/Makefile" line 39: Missing dependency operator
make: "/root/redsocks/Makefile" line 41: Need an operator
make: Fatal errors encountered -- cannot continue
make: stopped in /root/redsocks
version.h
#ifndef VERSION_H_SUN_NOV_27_03_22_30_2011
#define VERSION_H_SUN_NOV_27_03_22_30_2011
extern const char* redsocks_version;
#endif // VERSION_H_SUN_NOV_27_03_22_30_2011
from redsocks.
I have other problems on FreeBSD
- need to specify -I/usr/local/include
- by some reason it did not found INADDR_LOOPBACK macro while build redsocks.h (easy to w/a)
- it requires splice() to build and in some places (under if use_splice) it can be just ifdefed, in others it looks hard wired
- If I go to revision before splice used (af46180^) - it fails on firewall and nat code
base.c:103:22: error: use of undeclared identifier 'IPL_NAME' const char *fname = IPL_NAME; base.c:111:19: error: variable has incomplete type 'struct natlookup' struct natlookup natLookup;
while no firewall specific in config:
$ cat config.h
/* Unknown system, only generic firewall code is compiled */
$
Looks like code below assumes IPF - with no PF or default IPFW support
#ifdef __FreeBSD__ static int redir_init_ipf() { #ifdef IPNAT_NAME const char *fname = IPNAT_NAME; #else const char *fname = IPL_NAME; #endif return redir_open_private(fname, O_RDONLY); ...
from redsocks.
FreeBSD is not currently explicitly supported and it's unclear if the code ever worked for FreeBSD. I'm closing this issue as a duplicate of #110 that describes pre-conditions for FreeBSD support.
from redsocks.
Well, looks like redsocks no more required to make transparent proxying to tor daemon on FreeBSD:
- add transparent proxy rule to ipfw:
ipfw add 127.0.0.1,9099 tcp from any to any out via
- setup tor daemon to handle transparent proxy connections:
cat >> /usr/local/etc/tor/torrc
TransPort 127.0.0.1:9099
TransProxyType ipfw
^D
from redsocks.
transparent proxying to tor daemon ...
TransPort
Yep. I've added a paragraph to README saying that piping traffic to tor
via redsocks was never a goal and, moreover, may be bad idea in terms of privacy :)
from redsocks.
Related Issues (20)
- Use redsocks to achieve the p2p live video streaming for remote driverless vehicle surveillance. HOT 1
- send a HTTP Post in https to get an access token oauth server return an error HOT 1
- File descriptors never closed?? HOT 1
- redsocks not forwarding proxy requests in RHEL 8 HOT 8
- My redsocks proxy connection has stopped working - new security somewhere?
- Software will not compile on OpenBSD 7.0
- Log file permission denied HOT 2
- Broken pipe and dropping client messages in the log file HOT 2
- Configuration issue HOT 9
- Kill switch feature
- Kill switch feature
- Kill switch feature
- Redirect all traffic HOT 1
- Is redsocks able to redirect udp traffic by tproxy (not only for dns )? HOT 1
- Not fully working as a socksifying router HOT 1
- Compiling Redsocks on M1 MacOS Monterey 12.5 HOT 1
- [Bug] Two UAF related to redsocks_shutdown
- [Bug] UAF in http-relay.c
- Redirect does not seem to happen on my IPv6 only server. HOT 1
- Redsocks on Kubernetes?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redsocks.