0
0
mirror of https://github.com/darkk/redsocks.git synced 2025-08-29 13:15:30 +00:00
Commit Graph

148 Commits

Author SHA1 Message Date
Bryan Bishop
c7513aafc6 typo fix in README (Andoird -> Android) 2012-09-20 01:33:46 -05:00
Leonid Evdokimov
18e2b5ed1f Fix compilation on Ubuntu 10.04 LTS and (hopefully) Debian squeeze[1]
fixes #28, fixes #22, fixes #24
[1] current "stable" release
2012-09-12 02:05:39 +04:00
Leonid Evdokimov
9352d659ba conf.example: comments about UDP redirection 2012-09-10 22:36:01 +04:00
Leonid Evdokimov
d8d521c4b5 Merge pull request #29 from tlvince/systemd
Add systemd service unit
2012-09-10 01:44:15 -07:00
Leonid Evdokimov
d57e56f2fa README: links to packages 2012-09-10 12:18:04 +04:00
Tom Vincent
f9a3431265 Add systemd service unit 2012-09-09 21:03:29 +08:00
Leonid Evdokimov
070bd77c29 Script to auto-repack releases into better tarballs. fixes #27 2012-09-01 01:33:13 +04:00
Leonid Evdokimov
a9cfd09011 Merge pull request #21 from jmesmon/master
Fix transposition of memset arguments.
2012-04-24 02:49:53 -07:00
Cody Schafer
b60b492602 Fix transposition of memset parameters. 2012-04-24 04:33:13 -05:00
Leonid Evdokimov
709646d59d Initial support for UDP + TPROXY redirection. No more dest_ip in redudp.
* TPROXY requires Linux 2.6.29+ (see man 7 ip[1]).
 * all redsocks code is running as root to bind to arbitrary port.
 * Non-Linux and old-Linux builds are broken at the moment.

[1] http://www.kernel.org/doc/man-pages/online/pages/man7/ip.7.html
2012-04-13 02:06:02 +04:00
Leonid Evdokimov
6015b3a6f2 inet_ntop -> red_inet_ntop 2012-04-10 01:43:22 +04:00
Leonid Evdokimov
290f19972e Fix bug in DNS resolution - results were ignored (since 8179a1ff). 2012-04-10 00:57:26 +04:00
Leonid Evdokimov
e0b284d7e0 Version bump - v0.4 2012-03-26 00:04:34 +04:00
Leonid Evdokimov
4d2e10df17 Implement better exponential backoff in case of accept() failure.
This commit implements two more features:
 * min_accept_backoff configuration option
 * retry accept() after some close() calls

See also https://github.com/darkk/redsocks/issues/19
2012-03-25 23:58:40 +04:00
Leonid Evdokimov
dd089f09bd Proper accept_backoff event cleanup. 2012-03-25 23:14:27 +04:00
Leonid Evdokimov
d1d5b70b2b README: document socksifying router setup.
Note: I don't know source of doc/iptables-packet-flow.png and
doc/iptables-packet-flow-ng.png files, their license is unknown.
As far as I remember, it's something CC-like and they're quite old:
-rw-r--r-- 1 darkk darkk  99799 2007-09-16 07:00 iptables-packet-flow.png
-rw-r--r-- 1 darkk darkk 287299 2009-10-09 10:42 iptables-packet-flow-ng.png
2012-03-25 14:51:34 +04:00
Leonid Evdokimov
93073cec40 README: typo fixes. 2012-02-05 16:04:10 +04:00
Leonid Evdokimov
f0949e86e7 README: note about GID-based redirection 2012-02-05 16:01:29 +04:00
Leonid Evdokimov
52b936a56c README: add socksified firefox example. 2012-02-05 15:50:59 +04:00
Leonid Evdokimov
5ac05d5b77 Fix typo. Thanks to Apollon Oikonomopoulos. 2012-01-30 14:01:30 +04:00
Leonid Evdokimov
bc57cf8c1b Fix gen/version.c generation: clean git build was broken. 2012-01-28 00:09:24 +04:00
Leonid Evdokimov
128d730583 Implement exponential backoff in case of accept() failure.
Busy-loop strikes the daemon without backoff and log flood fills disks.

See also https://github.com/darkk/redsocks/issues/19
2012-01-28 00:00:09 +04:00
Leonid Evdokimov
6f8312b21f Refactor: replace struct event with tracked_event to track EVLIST_INSERTED state. 2012-01-28 00:00:09 +04:00
Leonid Evdokimov
8156e442c2 Add option to specify listen() queue length. 2012-01-28 00:00:09 +04:00
Leonid Evdokimov
8839230b63 Version bump. 2012-01-03 22:35:46 +04:00
Leonid Evdokimov
f9b207a21b Fix gen/version.c generation for non-git builds. 2012-01-03 22:33:39 +04:00
Leonid Evdokimov
08f9460702 Update redsocks.conf samples. 2012-01-03 22:09:04 +04:00
Apollon Oikonomopoulos
10544feb3c redsocks is now at debian/unstable
debian/* files from redsocks_0.2-1.debian.tar.gz are uploaded to
upstream to ease maintenance.
MD5(redsocks_0.2-1.debian.tar.gz) = 1d4fe1c98520ffe683a55220c80df193

Signed-off-by: Leonid Evdokimov <leon@darkk.net.ru>
2012-01-03 22:07:02 +04:00
Leonid Evdokimov
8179a1ff7d Query DNS during configuration parsing. 2012-01-03 21:50:06 +04:00
Bin Jin
dcbdcae943 Libevent2 fix: bad default line-extracting strategy
Libevent 2 deprecates evbuffer_readline() function, where any sequence
of any number of carriage return and linefeed characters is treated like
end of line, and introduces better evbuffer_readln(), where termination
format can be explicitly set to: \n, [\r]\n, \r\n or already mentioned
old behaviour.

Change past evbuffer_readline() calls to new
redsocks_evbuffer_readline() function. If libevent 2 is present, use
there evbuffer_readln() with eol_style set to an optional carriage
return, followed by a linefeed (EVBUFFER_EOL_CRLF) instead of obsolete
evbuffer_readln().

  Important note:
Consuming all CR and LF characters in one go (behaviour of
evbuffer_readline(), nowadays aliasing to evbuffer_readln() with
eol_style set to EVBUFFER_EOL_ANY) hangs up parsing of HTTP request
header ending with "\r\n\r\n", because it misses the empty line.

Conflicts (resolved):

	utils.c
	utils.h
2011-11-27 03:54:23 +04:00
Leonid Evdokimov
457c5eb79a Added -h, -? CLI options for help & -v for redsocks-version. 2011-11-27 03:30:43 +04:00
Leonid Evdokimov
9fce864ae0 Update README.html as well. 2011-11-14 04:07:01 +04:00
Leonid Evdokimov
27dd0243dc Added references to android tools: ProxyDroid and sshtunnel. 2011-11-14 03:52:48 +04:00
Leonid Evdokimov
2985413627 README: comment about UDP via OpenSSH & README.html 2011-10-14 00:12:44 +04:00
Leonid Evdokimov
57a1cab32d Some more comments regarding DNS via TCP. 2011-10-13 23:51:11 +04:00
Leonid Evdokimov
2f00cf44c5 Added dnstc service that serves any UDP DNS-like request with TC flag.
TC flag means `truncated`, so it actually means "ask me via TCP" for
compliant resolver.
2011-09-22 03:25:26 +04:00
Leonid Evdokimov
ec61ed130e Hey, redsocks has its own mailing list now :) 2011-08-10 19:32:13 +04:00
Leonid Evdokimov
d517e650ef redsocks now compiles with libevent-2.0 2011-08-01 13:28:38 +04:00
Leonid Evdokimov
79e22a67fa Change license to Apache 2.0 to ensure compatibility with android stack. 2011-04-20 20:17:09 +03:00
Leonid Evdokimov
2b6dcc83d6 Another s/strcpy/memcpy/ to fix another OpenBSD warning. 2011-02-11 01:43:47 +02:00
Leonid Evdokimov
e24b29abf8 Fix a bug in cnounce generation in http-connect.c & s/sprintf/snprintf/. 2011-02-11 01:36:07 +02:00
Leonid Evdokimov
d58db7f9a3 Replace strcpy with memcpy to eliminate warning (and improve speed a tiny bit). 2011-02-11 01:31:19 +02:00
Leonid Evdokimov
ebaeedead1 Improve nonce generation: srand() should be called only during startup. 2011-02-11 01:28:51 +02:00
Leonid Evdokimov
8b0a9dcc6c Make redsocks working with OpenBSD pf (at least sometimes). 2011-02-11 00:52:47 +02:00
Leonid Evdokimov
3224b3719d Fix typo: s/pw/pf/ 2011-02-10 22:50:51 +02:00
Leonid Evdokimov
67f5928d05 Fix one compiler warning occuring at OpenBSD. 2011-02-10 00:06:56 +02:00
Leonid Evdokimov
9bcb4dcc7e Fix compilation at OpenBSD 4.9. 2011-02-10 00:02:05 +02:00
Leonid Evdokimov
486431bb70 Update comment to be a bit less confusing. 2011-01-31 22:52:48 +02:00
Przemyslaw Pawelczyk
c97a9e0c77 Properly handle unsupported qops in digest_authentication_encode().
Auth-int is not supported yet, so the function should return early.
2011-01-28 02:06:17 +01:00
Przemyslaw Pawelczyk
cf3dc2c4f0 Hide warnings on unused variables if asserts are off.
redsocks.c: In function 'redsocks_read_expected':
redsocks.c:407: warning: unused variable 'read'

http-relay.c: In function 'httpr_client_read_cb':
http-relay.c:520: warning: unused variable 'written_wo_null'

These variables are used in asserts and if asserts are not compiled,
e.g. by defining NDEBUG (usually in CFLAGS via -DNDEBUG), then we have
misleading warnings.

Add in utils.h UNUSED() macro for creating null statement with result
casted to void. Use it to fix above warnings.
2011-01-27 23:22:09 +01:00